News for hackers. Stuff that matters.
Re:Lua Is So Underrated by usrusr on Thursday December 26, 2024 @08:19PM (#42519201)
It's the perfect distraction: once you start accepting one-based, everything else that might be not quite to your liking isn't worth talking about. I could easily imagine an alternative timeline where lua was zero-based, but never reached critical mass.
Re:Lua Is So Underrated by wruza on Thursday December 26, 2024 @08:52PM (#42519342)
Absolutely so. It’s just one obvious thing from a large set of issues with it.

One can read through “mystdlib” part of any meaningful Lua-based project to see it. Things you’ll likely find there are: NIL, poor man’s classes, __newindex proxying wrapper, strict(), empty dict literal for json, “fixed” iteration protocols.

You don’t even have to walk too far, it’s all right there in neovim: https://neovim.io/doc/user/lua.html

Re:Lua Is So Underrated by kragen on Thursday December 26, 2024 @10:01PM (#42519609)
This is very valuable! Thank you!
Re:Lua Is So Underrated by usrusr on Friday December 27, 2024 @08:17AM (#42521830)
Perhaps that's the secret to lua's success: they got the basics so wrong that they can't fall into the trap of chasing the dream of becoming a better language, focusing on becoming a better implementation instead. Or perhaps even more important: not changing at all when it's obviously good enough for the niche it dominates.
Re:Lua Is So Underrated by kzrdude on Friday December 27, 2024 @08:29AM (#42521899)
That's an interesting notion but I think that Lua had no competition - it was almost unique in how easy it was to integrate vs the power it gives. Its popularity was inevitable that way.