Re:Colony, an experimental JavaScript-to-Lua compiler
by friggeri on Wednesday October 26, 2011 @04:57PM
(#3160379)
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.
[ Parent
| on HN ]
Re:Colony, an experimental JavaScript-to-Lua compiler
by vorg on Wednesday October 26, 2011 @05:19PM
(#3160477)
Perhaps 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.
Re:Colony, an experimental JavaScript-to-Lua compiler
by beagle3 on Wednesday October 26, 2011 @11:24PM
(#3161488)
Get a Clue: http://cluecc.sourceforge.net/
Decent timing from LuaJIT1 when it was generating "dirty" Lua bytecode.