Re:Cobaul: A COBOL to WebAssembly Compiler
by minxomat on Monday September 21, 2020 @01:57PM
(#24546403)
Still no Lua? :(
[ Parent
| on HN ]
Re:Cobaul: A COBOL to WebAssembly Compiler
by lsaferite on Monday September 21, 2020 @02:22PM
(#24546697)
Can't you compile a Lua application into WASM and run it that way?
Re:Cobaul: A COBOL to WebAssembly Compiler
by azakai on Monday September 21, 2020 @05:26PM
(#24548671)
You can compile the Lua VM into wasm+JS and run it there, yes. (for example, https://daurnimator.github.io/lua.vm.js/lua.vm.js.html)
Pure wasm doesn't work yet since the VM needs either C++ exceptions or longjmp (to unwind). Wasm exceptions support will eventually help there, but meanwhile there is a dependency on JS exceptions.