6 ms·
Can Onyx's compiler be compiled to Wasm to itself run in the browser? It's niche, but I've thought it'd be cool if there were a mini Wasm-based game building t
by kettlecorn 3y ago
Can Onyx's compiler be compiled to Wasm to itself run in the browser?
It's niche, but I've thought it'd be cool if there were a mini Wasm-based game building tool in the browser, but that requires a Wasm language with a compiler that can run in the browser.
- brendanfh 3y agoCurrently, it does not. But it is written in C with a reasonable separation between the OS things and the compiler things, so compiling with Emscripten should be possible without too much modification. This is similar to what the Onyx Playground currently does. To do that I just POST your project files to a server, save everything to disk, run the compiler, delete everything, and send the resulting WASM file back to the browser, to be run in a WebWorker.