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
1-based indexing: There’s nothing stopping you from making a table with a 0 key, e.g.
foo = {}
foo[0] = "Zero index in Lua!"
No actual array:1) Lua has optimizations when a table only has numeric keys
2) This keeps Lua small. AWK, another tiny language, has the same behavior.
No bitwise operators:
Lua 5.2 and higher have bitwise operations,[1] and pretty much every modern Lua 5.1 fork (LuaJIT, the version of Lua Wikipedia uses for scripting, luau, my personal “lunacy” fork of Lua 5.1, etc.) has added bitwise operations.
The only case where a real-world Lua implementation doesn’t have bitwise operations is Adobe Lightroom Classic,[2] and even there is is possible to implement them with a polyfill.
[1] https://lua.org/manual/5.2/manual.html#6.7
[2] Alpine Linux has a lua5.1-bitop package which adds bit ops to their port of Lua 5.1
Most of the stuff you mention is low level stuff. Lua is supposed to be a high level language.
I would argue that if you don't need to do manual memory management 1 based indexing should be default and all other language are doing things badly on this front.
I was unable to find a source, but I seem to recall a group handing out Lua rulers at a conference, and the first mark on the ruler was labeled 1cm.
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.