2 ms·
Very happy to see this, Lua has a bunch of great properties (small footprint, speedy JIT, simple datastructures). It's great for quickly hacking together some
by jdonaldson 6y ago
Very happy to see this, Lua has a bunch of great properties (small footprint, speedy JIT, simple datastructures). It's great for quickly hacking together some script functionality, and it (already) handles enormous scale in enterprise applications (e.g. Cloudflare).
I maintain the Haxe Lua target, and have a good understanding of how Lua relates to other languages (at least through a "Haxe" lens).
I think the main things I get hung up on is the 1-indexing scheme, and the lack of true "null" fields on tables (Lua treats these as missing). This makes Lua tricky to integrate with other languages, especially if they serialize/de-serialize data. You essentially have to pick a work-around, and unless you know what you're doing (and what you're doing 5 years from now), you're going to feel a lot of pain.
I realize changing these things would make Lua less "Lua", but virtually every other language Haxe supports has straightforward support for these behaviors. It's really the only two nits that have marred an otherwise pleasant experience working with Lua.