Closed giann closed 2 months ago
Are there any plans for compiling buzz to wasm directly? Assuming this ticket is to just allow the buzz interpreter to run within wasm?
Not sure what you mean? buzz can only run within wasm if built for wasm.
Ah sorry, I meant creating something like a new RunFlavor
that compiles buzz to wasm (similar to assemblyscript).
For example:
// main.buzz
import "std";
fun main([str] _) > void {
print("hello, world");
}
$ buzz -target=wasi_wasm32 -out=main.wasm main.buzz
$ wasmer main.wasm # hello world
This is most likely out of scope for the project, but I was just curious if this is a plan for the future.
Yes this is out of scope. That would require buzz to become an AOT compiled language.
Reopening because of https://ziglang.org/download/0.12.0/release-notes.html#Bring-Your-Own-OS-API-Layer-Regressed which effectively kills this feature
Probable issues:
Resources: