Re:Cobaul: A COBOL to WebAssembly Compiler
by conroy on Monday September 21, 2020 @12:26PM
(#24545298)
Cloudflare announced this in a blog post a few months ago (https://blog.cloudflare.com/cloudflare-workers-now-support-c...). They explain a bit more about the history of COBOL and why this specific project exists.
[ Parent
| on HN ]
Re:Cobaul: A COBOL to WebAssembly Compiler
by jgrahamc on Monday September 21, 2020 @12:47PM
(#24545578)
That was great fun to work on and I'm amused to see my COBOL implementation of Conway's Game of Life still running just fine on Cloudflare Workers.
We've announced a few more languages for Workers: https://blog.cloudflare.com/cloudflare-workers-announces-bro...
Re:Cobaul: A COBOL to WebAssembly Compiler
by minxomat on Monday September 21, 2020 @01:57PM
(#24546403)
Still no Lua? :(
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.