2 ms·
This is awesome, congrats on the work. Is the Toit language compilable to WebAssembly? I think it could be a great win for usage across different ecosystems!
by syrusakbary 5y ago
This is awesome, congrats on the work.
Is the Toit language compilable to WebAssembly? I think it could be a great win for usage across different ecosystems!
- floitsch 5y agoI believe I once managed to make Toit run in web-assembly. I know for sure that the compiler compiled to it, but I'm pretty sure I also had a "hello world" that worked. I would need to find that branch and see if it still merges cleanly.
- syrusakbary 5y agoThat would be great, thanks! I think if Toit can jump into the Wasm train it could help the language even further (executing cleanly programs in the browser as well!)
- pansa2 5y agoYou were able to compile Toit code direct to WASM? I guess that required using static types throughout? Or did you compile the VM to WASM instead, and interpret the Toit code as normal?
- floitsch 5y agoI compiled the VM to WASM and ran the bytecode in it.