Why Learn Lua?
Practical reasons Lua is worth learning:
- Game development — Roblox (via Luau), LÖVE, Defold, Solar2D, and many commercial engines use Lua for game logic. World of Warcraft add-ons are written in Lua.
- Neovim — Neovim is configured and extended in Lua, and most modern plugins are written in it.
- Extending software — Redis, Nginx (OpenResty), HAProxy, Wireshark, Adobe Lightroom, and many network devices run Lua scripts.
- Easy to learn — the whole language manual is short. It's a friendly first language, and experienced programmers pick it up in a day or two.
- Learning how languages work — Lua's small core (tables, metatables, closures, coroutines) shows how bigger languages build features like classes and generators.
Trade-offs worth knowing up front: Lua's standard library is deliberately minimal (no built-in JSON, networking, or regular expressions), the ecosystem is smaller than Python's or JavaScript's, and arrays start at 1, not 0. Lua is usually learned for a host — a game engine, an editor, a server — rather than for standalone applications.