Lua for data representation (2025) (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
The other bit was "Why do Lua indexes start at one? The FIRST reason is..."
The 1-based indexing, in my usage, has never been a problem. A lot of people run into this, and I feel that it is because they are trying to make something using only Lua. In fact, I would suggest that if you're trying to use Lua with a shebang that you might not like the language very much.
Where it truly shines is when it is embedded into another runtime. Find something that you already have and extend it so that functionality can be added through Lua scripts. You might even be surprised at how little you actually use indexing.
Replies (1)