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
I would love to see a POSIX standard for Lua (probably based on Lua 5.1); it’s widely enough deployed that a standard for it would make sense. Right now the standard is either PUC Lua 5.1 or whatever the latest release of PUA Lua is at a given time.
I prefer Lua over Perl/Python/Ruby because I know I can get a Lua runtime going in whatever environment I’m in—e.g. when writing my Lua book, I used my personal fork of Lua 5.1, but the person I was writing the book with was using Moonsharp (Lua in C#) since they were a C# developer. We could easily share code with each other.
Replies (1)
Replies (1)
https://samboy.github.io/lunacy-book.pdf
It’s a book for someone already familiar with any of AWK/Perl/Python who wants to use Lua mainly for text and regular expression parsing.
The book covers a lot of bits of Lua which are easy to do in Perl/Python but hard to do in Lua. For example, here’s a Lua version of `deepcopy`:
Likewise, here’s Lua’s take on returning the keys of a table in order: And, finally, a lua version of `split` from Perl/Python: (All three of these functions are public domain)Replies (1)