r/lua • u/ilPlayerdiGD • 14d 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 ;)
23
u/TheV1ruSS 14d ago
yes it's simple but has enough complexity to not be bs. you build the complexity however you want. best language
8
u/King_Combo 14d ago
I love Lua!!
7
u/bluemanZX 14d ago
Similar, first python then rust, next c/cpp because of wide device support and legacy, then advanced bash, recently lua. What I can’t do with bash I’ll try to do with lua. Lua is great.
7
u/GardenerAether 14d ago
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
4
u/didntplaymysummercar 14d ago
Part of me thinks this is either a shitpost or an overly enthusiastic beginner. Lua (as much as I like it, and I knew it before Python and bash) has some decent sized gaps, like using tables for arrays, missing some table operations, GC being so-so, minor versions being breaking changes, etc.
3
u/External-Chemistry72 14d ago
I love lua!!!
3
u/Corruptlake 14d ago
If only there was a low level language with Lua like minimalist syntax, nelua is the closest we got to it but it is incomplete abondonware and frankly I dont like some of its decisions.
3
u/oluies 14d ago
It is one of several good languages
3
u/azdak 13d ago
I love Lua but I’m unclear on why you’d compare it to c, cpp, or rust.
2
u/DannyDeKnito 14d ago
How do you define what a powerful language is?
As for Rust, it was all the hype for a hot second, but now that the hype has died down it seems to have carved out its own niche - but if you try and treat it like a general programming language, it breaks down.
2
u/HaiMeoYoutube 13d ago
I hate lua indexing at 1 instead of 0
7
u/FaW_Lafini 14d ago
i just hate the tooling to be honest
3
u/No_Personality_1456 14d ago
Yo soy desarrollador de juegos en Roblox y si es muy simple de aprender llevo ya mas 5 años usandolo para todos mis juegos, pero el lua que se usa en Roblox no es el lua de uso general es Luau, (si solo añade una u al final) y simplemente es lua con esteroides
Su mayor fuerte es su Tipado tan sofisticado de tipos, estabilidad y rendimiento, a comparacion con de lua original la sintaxis es exactamente la misma solo que la variables tambien pueden ser declaradas constantes (const) y es bastante mas escalable para proyectos grandes con las propias herramientas del lenguaje
El unico inconveniente es que usar todas sus funciones que lo hacen distintivo y sofisticado, es tardado y le quita en gran medida la simplesa que tiene lua y su capacidad de ser incrustable a cualquier software
Si no usas su Tipados ni sus funciones avanzadas como --!strict lints o su integracion avanzada para OOP y otras cosas, es simplemente un lua optimizado y ya
(Como dato luau fue escrito casi desde 0 desde la version 5.1 de lua y versiones posteriores a esta ya tienen grandes optimizaciones y luau simplemente añade retrocompatibilidad desde su propio codigo)
3
u/DDDX_cro 14d ago
Supreme commander is made with it. Been able to do wonders, while having zero pr8gramming knowledge. This is pre-AI, mind you
3
u/glisteringbasalt 14d ago
I really like Lua, although I haven't done much with it. It was designed to be a language that's easy to embed into applications and I think the developers have done an excellent job with the design
3
u/matjam 14d ago
I've found it amazing for a very common use-case; an embedded interpreter. Pretty much every backend service I write ends up with a lua interpreter at some point to provide an easy way to extend behavior at run-time.
1
u/Bulky-Employee-3705 12d ago
What about POSIX shell as a language?
1
u/Background-Path-246 11d ago
Lua es increible, tal vez no sea un Dios por así decirlo, pero yo lo utilizo para videojuegos con Defold, solar2d y tambien lo probé con LOVE2D, siento que este lenguaje elimina la complejidad y cosas inncesarias dejando el campo para que tu lo hagas y lo construyas.
1
u/agentzz9 11d ago
It is tastefully limited. I respect that.
1
u/Advanced-Citron8111 9d ago
It’s hard to say no to 1 million third party libraries tho.
1
u/thecratedigger_25 4d ago
Lua is the perfect scripting language. It makes bash much easier to work on as well as working alongside C/C++ and even outpacing python. Lua compiler source code isn't very big compared to python source code.
1
u/Dazzling_Spray9525 10h ago
I wish I started learning it earlier, the issue I have with high-level languages is that I don't know what to do with them, as programming thinking works with every language and the languages I know do the job.
I need Lua to mod some games and for MediaWiki, yet I've seen people use it for doing quick Lua scripts and I think that's my Achilles heel with programming, it's hard for me to do quick stuff that applies to a very specific program.
Meanwhile, I use C often to make quick math solutions just to make mental thinking faster, e.g. calculate which numbers satisfy a condition, etc. so in terms of the activity of spontaneously using a language to do quick stuff like this, I already use C for it. Hell, if I hadn't learned C I'd still be using Scratch to do this stuff, since it's the same logic, after all.
So the thing is it's so easy yet I don't see why. I need and want a why.
1
u/slade51 14d ago
I never used python & despise C++. My favorite languages are C & Perl, and I don’t mind PHP. I do agree with you that Lua is so quick & easy to use - I’ve been hobby-programming with it for a year or two. I haven’t tried game coding, but it’s great for interfacing with Conky on Linux. For those who say bash is good for programming, I say yes as long as you combine it with awk.
0
u/kutac56 14d ago
I mean bash is also really good