3 ms·
If this compiles into Lua/JIT bytecode then there might be a use for it, if this transforms into Lua code then what is the point? Lua is a great and simple lang
by wildmXranat 15y ago
If this compiles into Lua/JIT bytecode then there might be a use for it, if this transforms into Lua code then what is the point? Lua is a great and simple language, so this would seem useless
- wisty 15y agoNot everyone thinks that Lua is great. It's certainly a nice language, and it's popular in some niches, but some people like implicit variable declarations, classes (at times), and comprehensions. Also, I can see it compiling into JavaScript as well. I'm not sure if that would be a good idea, or a really horrible one, though.
- jacques_chester 15y agoIt's not an acronym, it's an ordinary noun: Lua. My main grudge against Lua purely as a language is that it has implicit global variables. I can live with the rest of the idiosyncracies. My main grudge in day-to-day programming is the ecosystem, it's very small. It's a chicken-and-egg thing.
- silentbicycle 15y agoLua's compiler adds very little overhead, compared to loading directly from luac's precompiled bytecode. It has a really fast, single pass compiler, which is optimized for reading in data serialized as Lua tables. Lua was designed with JSON-like use cases in mind. Its compiler doesn't do much analysis / optimization, but the performance of individual Lua constructs is usually easy to reason about.
- hxa7241 15y ago'Lua bytecode' does not really exist -- i.e. it has no public definition -- the developers can change it in any way at any time -- only the Lua language itself is 'defined'.
- strmpnk 15y agoWhat's the point of locking yourself to a bytecode when Lua code JITs just fine on LuaJIT? Lua is a great language and this looks like another alternative. I doubt we're looking at exclusion here.