Re:Show HN: Lua/LuaJIT with C/C++/Java/JavaScript syntax
by dividuum on Sunday December 30, 2018 @03:39PM
(#18791202)
I only poked into the source code on github a bit, so I might be entirely wrong, but from what I understand, the original Lua runtimes (stock Lua, Luajit, etc) were modified for a new syntax? If so, what's the motivation for this approach? Since you already have an lua2ljs transpiler, wouldn't it be easier to use this knowledge to instead have an ljs2lua transpiler and just reuse all existing Lua implementations? Similar to how moonscript works?
[ Parent
| on HN ]
Re:Show HN: Lua/LuaJIT with C/C++/Java/JavaScript syntax
by mingodad on Sunday December 30, 2018 @03:48PM
(#18791235)
Fair point but I prefer less code to mantain move around, as you pointed out it's only a moderate modification of the Lua lexer/parser and not need anything else ~200KB ljs, ~500KB LjsJIT interperter and there you go.