4 ms·
The fun thing about transpilers is that you can chain them together. Waiting to see some C stuff ported to Lua using Emscripten via JS.
by friggeri 15y ago
The fun thing about transpilers is that you can chain them together. Waiting to see some C stuff ported to Lua using Emscripten via JS.
- vorg 15y agoPerhaps the best way to write a transpiler so there's no bugs is to write two of them at the same time, i.e. in this case Lua-to-JS and JS-to-Lua. Maybe it's easier to catch bugs. This mirrors the idea of writing a compiler for a new language in itself as soon as possible.
- beagle3 15y agoGet a Clue: http://cluecc.sourceforge.net/ http://cluecc.sourceforge.net/ Decent timing from LuaJIT1 when it was generating "dirty" Lua bytecode.