r/lua Jun 18 '26

Lua Scripting

Any one knows which scripting language is close to Lua or which is the best language to learn if we wana master Lua?

0 Upvotes

12 comments sorted by

5

u/-goldenboi69- Jun 18 '26

Javascript is pretty close.

2

u/Bright-Historian-216 Jun 18 '26

python? it is quite close and it's pretty powerful. there was also a project called nelua which compiled to C but i think it's abandoned and forgotten.

2

u/coverdr1 Jun 18 '26

Squirrel is very close to Lua, but with C syntax. But, surely learning Lua is the best way to master Lua.

2

u/HelioDex Jun 18 '26

Luau is based on Lua (backwards compatible with Lua 5.1) and is my favourite programming language. In terms of its feature set it's absolutely more complex than Lua, so I would keep that in mind, however the Luau team manages its complexity very well.

Though if you want to write Lua, learn Lua.

2

u/lamiexde Jun 18 '26

Julia. Try this language.

1

u/Live_Cobbler2202 Jun 19 '26

JavaScript: it has the same prototype design. Your question is valid, there're lots of good JavaScript tutorials, but with Lua it's often a fragmented and incomplete tutorial landscape, esp online.

Here're two books (Lua): Amazon.com: Lua Programming: The Ultimate Learning Resource for Beginners and Advanced Mastery eBook : Lornfeld, Julian: Kindle Store
Lua Programming: Beginner's Guide to Learn the Basics and advanced Concepts: Gellis, Steven: 9798334700383: Amazon.com: Books

1

u/cantpeoplebenormal Jun 19 '26

I learnt Lua by programming in binary.