3 ms·
It compiles, ahead of time, to low level web assembly.
by Skinney 6y ago
It compiles, ahead of time, to low level web assembly.
- loa_in_ 6y agoDo you plan to do threaded forth? It does wonders for runtime word redefinition, which I would look for for a niche project of mine involving some kind of ultra portable cross-platform Forth (WASM is perfect) in a sandboxed environment (because multi-player, WASM perfect as well!)
- stefano 6y agoHaving implemented a threaded Forth with WASM, the most annoying problem is that WASM doesn't support jumps to arbitrary memory locations. You can either call functions (and you don't have access to the call stack), jump backward to a previously defined block entry point or jump forward to the end of a previously defined block. Threading then requires a double indirection in the core loop, and you have to use an explicit IP "register" in a global variable.
- Skinney 6y agoI don't plan to. I'm sure word redefinition is nice in certain cases, but it's not something I'm looking for in a pure and immutable language.