Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribution/Compilation Option #46

Open
dbready opened this issue Feb 23, 2023 · 1 comment
Open

Distribution/Compilation Option #46

dbready opened this issue Feb 23, 2023 · 1 comment

Comments

@dbready
Copy link

dbready commented Feb 23, 2023

Will there be a first-party way or producing a single binary for distributing code? With the focus on embeddibility, I assume it should be easy enough to make a minimal wrapping application, but would love to see this available from the native tooling.

As a Python programmer, distributing code is still needlessly painful with a multitude of partially working options. Would love if Cyber had a solid story here, even if it only worked with pure Cyber code.

@fubark
Copy link
Owner

fubark commented Feb 23, 2023

Definitely, Cyber will do this. For desktop, it'll do just as you said, which is wrapping the scripts inside a copy of the VM which is incredibly small (under 2MB). To skip compilation, the bytecode could be embedded as well into the binary.

For Web/WASM, it can do something similar and package it into one .wasm file. We could also target WASM directly more easily than other GC languages, since Cyber uses ARC.

There's also the possibility that Cyber could target a native language in the future... Maybe C or Zig.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants