r/lua • • Nov 02 '26

Lua it's the best high-level programming language

I need to talk about lua. I started with Python then I passed to C and C++ (my favourite languages). Now, I tried re-learning Python to have a 3nd programming language but I did found that in reality Python it's boring and bs! I tried Zig and it was a bad experience, I tried Rust but idk why but I think it's overrated. Then, at the end, I tried lua and at first I though that lua was stupid, no i++ or i+=, arrays start at 1… but then I tried do C/C++ + Lua and I changed my perspective.

I used, recently, lua for configs in my projects but then I discovered that Lua it's SO underrated. Like they didn't lie when they said C and lua are the best programming language.

Lua it's minimal and so powerful. I accepted the syntax and now it's my 3nd programming language.

The reason that I love lua it's because… it's FAST, it's DAMN SIMPLE and so easy to learn, it has A LOT of potential.

The more the language is big, the less likely it gonna be easy to learn.

Guys I don't think I have cons on lua, I think it's perfect and I still don't have learned all of the lua out there.

Really, I have to say… lua it's the best.

Anyway did I say something wrong? What's your opinion on lua?

Anyway, thanks for reading ;)

148 Upvotes

59 comments sorted by

View all comments

7

u/GardenerAether Nov 02 '26

i cant say i fully agree. i definitely like lua conceptually, and i appreciate its simple syntax. but the lack of static typing and forced garbage collection kinda irk me off of it a bit. it definitely interests me, and i think i would like to use it for some project sometime, but i think ill probably end up making my own language to address some of the problems i have with it im happy to hear you enjoy it and that it addresses your needs in any case :3

3

u/loonite Nov 02 '26

You can try to adapt Lua itself, the source code is kinda small and very well documented.

I'm not at this point yet, but I would love to see a statically typed Lua with more on-hands memory management. Having the option to use RC/ARC, arenas or maybe something akin to a borrow checker would be really interesting.

1

u/ilPlayerdiGD 29d ago

isn't Python like this? I think every, very high, programming language should be like this and for static types low level. Well I maybe said some bs, let me know 😭

3

u/GardenerAether 29d ago

Actually, python and lua have essentially the same class or type system; python just allows for explicit typing annotations, whereas all of lua's types are implied :3

In my personal experience, static typing is nigh-universally preferable to dynamic (and especially weak) typing. Even ignoring performance (which I think is always important) two benefits of note to me are that they catch a lot of problems early, and make your code essentially self-documenting. Doubly so if the language is functional.

1

u/xoner2 28d ago

Garbage collection is not forced: just drop to c/c++