logoalt Hacker News

gilber • today at 5:18 AM • 9 replies • view on HN

Lua as a whole is incredibly underrated, especially given things like LuaJIT - I don't understand why it felt out of popularity with most people. Maybe related to Roblox.


Replies

MomsAVoxell • today at 7:13 AM

I think what happens with Lua is that, when someone decides to use it for a purpose, it ends up embedded and thus the ‘secret sauce’ for the app.

Which is to say, Lua is used practically everywhere.

I recently added Lua bindings to the BlenderUI library, and it was just so easy and fun - and immediately made nice UI development so productive. Coding up a BlenderUI with a Lua REPL is a very rewarding thing to do indeed.. so much so that I added Lua bindings to CUI, also!

➕ show 1 reply
kzrdude • today at 8:09 AM

The number of forks of Lua is one sign that it's a very practical and useful technology. LuaJIT is essentially a half-compatible fork, and still on its own path to maybe become a full fledged fork.

jeffreyrogers • today at 5:50 AM

It doesn't have a good standard library since it was designed to be embedded in C/C++ programs for scripting rather than being a standalone scripting language and the package management ecosystem never fully took off.

➕ show 1 reply
edfsadfer • today at 5:45 AM

I myself have gone almost all-in on Lua Lapis (running in OpenResty) and Lua Fullmoon (running in RedBean) for anything server related.

altilunium • today at 6:18 AM

when i was still involved in wikipedia template and module development, i was quite surprised that it mainly used lua.

➕ show 1 reply
flufluflufluffy • today at 12:09 PM

I always try to learn some Lua every 6 months or so and just get annoyed. I don’t doubt its usefulness, I just personally can’t bring myself to like it. 1-based indexing, no actual array/list type, depending on the version you might not even have bitwise operators. gotta call into a goddang library to AND 2 numbers together. like what the heck man

➕ show 2 replies
rdtsc • today at 5:59 AM

Most developers don’t care about Roblox. Lua is cute but awkward.

Let’s see, no native json support. This day and age it should be built in. No array support: is {} an empty json object or empty json array? Just add the dang arrays already.

LuaJIT is very awesome! Amazingly fast. Does it support the latest Lua? Nope it doesn’t. Lua is at 5.5 or something, LuaJIT at 5.2 maybe.

Default global vars? Nope. More awkward than cute. Maybe introduce some profile / pragma to invert that. Everything should be local by default not global.

Speaking of Roblox, they liked Lua so much they forked it and created a new language altogether! Luau which is only fully compatible with 5.1

I mean it’s still a nice language for a configuration format but otherwise I think that summarizes why people might not be reaching for it as much, in other cases.

➕ show 3 replies
fithisux • today at 6:17 AM

It hasn't. Luau comes with two runtimes. Lua distros are many.

lenkite • today at 12:38 PM

[dead]