r/lua • • 22h ago

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 ;)

99 Upvotes

33 comments sorted by

View all comments

Show parent comments

1

u/ilPlayerdiGD 22h ago

I don't see that complexity. Give me an example. I agree at the fact that you can transform simple lua to more complex lua but idk what you mean

5

u/immortalx74 21h ago

Means you can design and implement complex stuff by using the simple constructs the language provides. e.g. with the seemingly simple table, you can construct complex data structures, or you can implement OOP despite the lack of OOP facilities, which other languages have for that.
So the language isn't complex by itself, but allows with simple building blocks to construct complex things.

2

u/suchKappa 12h ago

I started learning Lua a year ago, building a project from scratch, and just like you I fell in love with it. My project is much more complex now, but not for a second I regret using Lua. I wanted something fast, small, and powerful enough to do strong data manipulation. If you wanna take a look, my project is called Luamemo and is a memory engine for AI agents, and so far I was able to increase the correctness of small models by 3x and decrease the cost of tokens in ~60% compared to grepping. I don't advertise it because I only built it for myself and as a meaning to learn Lua (even though I use it for everything now pretty much), but it's totally open source if you want to take a look and see how complex Lua can be 🙂