News for hackers. Stuff that matters.
Re:Lua Is So Underrated by therein on Thursday December 26, 2024 @03:42PM (#42517642)
There is the equality gotchas on JavaScript but then you have 1-indexed arrays in Lua, which is a footgun that I know exists, I try to avoid shooting myself in the foot with it but I keep doing it.

It is beyond a footgun, more like a footgun concealed as a shoehorn.

Either way I find embedding a Lua VM into a project so much easier than embedding a Javascript one.

Re:Lua Is So Underrated by kragen on Thursday December 26, 2024 @07:32PM (#42518993)
Which JS VMs have you tried embedding? People in this thread have suggested https://github.com/Moddable-OpenSource/moddable, https://bellard.org/quickjs/, and https://duktape.org/, but I haven't tried any of them.
Re:Lua Is So Underrated by Demiurge on Thursday December 26, 2024 @08:44PM (#42519297)
Indexing, I give you this one... I think it was intended as some kind of a gift to a "non programmer", a choice many other older language made, by the history decided to go another way, unfortunately for Lua. Still, I haven't had any issues adjusting to this one, personally. It seems kind of like Python whitespacing, I think I forget about it.