I'm using it to generate WASM, sadly Go with the GC/goroutine infra is not as good a WASM language than e.g. Rust which is a very simple 'binary', TinyGo works well though.
So you want to take arbitrary code in arbitrary languages, and run it on someone else's computer inside a sandbox?
Yes, wasm can do that.
You can compile the code to wasm, then run it in a runtime like wasmer or wasmtime. Or you can ahead-of-time compile it with something like wasm2c, which generates C code.
I'm using it to generate WASM, sadly Go with the GC/goroutine infra is not as good a WASM language than e.g. Rust which is a very simple 'binary', TinyGo works well though.
Could I ask how you do that? How do you actually build with a webassembly target? I might be interested.
<Shameless plug> https://appfuzz.dev/ https://appos.build/
that's really interesting, thank you. I'm not sure we're ready to use that platform, though :)
So you want to take arbitrary code in arbitrary languages, and run it on someone else's computer inside a sandbox?
Yes, wasm can do that.
You can compile the code to wasm, then run it in a runtime like wasmer or wasmtime. Or you can ahead-of-time compile it with something like wasm2c, which generates C code.