Lua
A lightweight scripting language commonly embedded in games and applications.
Learn Lua in 15 minutes ↗
This resource by Tyler Neylon provides a comprehensive, beginner-friendly introduction to the Lua programming language. It covers essential concepts and helps learners get started with Lua, offering clear explanations and practical…
Learning ResourcesProjects
Kong Gateway
Kong Gateway is an API gateway with a Lua implementation built on OpenResty. It routes requests to services and supports plugins for concerns such as authentication, traffic control and observability. Start with a local gateway, one…
Explore project →KOReader
KOReader is a document reader aimed primarily at e-ink devices, with much of its application code written in Lua. It supports several ebook and document formats on supported readers and Android devices. Check the installation instructions…
Explore project →Prosody
Prosody is an XMPP messaging server written primarily in Lua. It supports federated messaging and can be extended through modules. Its source is published in Mercurial repositories, with installation and configuration guides on the…
Explore project →Community
Lua group ↗
A list for discussing the Lua programming language, its uses, and its implementation.
Mailing ListCurrent & upcoming events
All language events →No current or upcoming events listed. Explore past events or suggest one.
Jobs
Follow Lua jobs with Atom → Get updates in your feed reader.
Organizations
All Lua organizations →Curated reading
All curated reading →Why is Lua considered one of the most hated languages?
r/lua Subreddit · Published July 27, 2024
A 2022 Stack Overflow developer survey placed Lua near the bottom of the "loved" rankings, which prompted extended discussion on r/lua. Critics pointed to familiar complaints: 1-based indexing, the ~= inequality operator, a deliberately…
Lua is the best programming language (change my mind)
r/lua Subreddit · Published September 22, 2023
In a multi-year Reddit discussion, developers debated whether Lua is best described as an "underrated" language, pointing to its embedded use in large-scale projects such as Vermintide 2, reported at roughly 1.2 million lines, as well as…
About Lua and its ecosystem
Lua is a lightweight, high-performance scripting language designed for embedding in applications and games. Developed in the early 1990s, Lua is known for its simple and flexible syntax, making it easy to integrate into C and C++ programs, as well as its efficiency in handling tasks like configuration, automation, and extensibility.
Lua's small footprint and dynamic nature make it ideal for embedded systems and game development, where resources are limited but performance is key. Its powerful features include first-class functions, garbage collection, and tables (which can be used as arrays, dictionaries, or objects), enabling developers to write concise and efficient code.
Widely used in game engines (like Love2D and Roblox), network software, and applications requiring embedded scripting, Lua’s ease of integration and speed have contributed to its lasting popularity. Its active community continues to contribute to its growing ecosystem of libraries and tools.
Balatro: When Simplicity Enables Genius
In December 2021, a Saskatchewan IT worker started learning Lua by creating a folder called "Learning/Lua/" on his computer. Two and a half years later, that hobby project became Balatro: a poker roguelike that sold over 5 million copies, earned Game of the Year nominations, and proved that game-breaking success doesn't require enterprise tooling or venture capital.
LocalThunk chose Lua and the LÖVE2D framework for the most honest reason possible: he was learning, and they were beginner-friendly. The entire game clocks in at roughly 30,000 lines of Lua code, openly readable by unzipping the Steam executable. No corporate codebase, no microservices architecture, no DevOps complexity. Just clean Lua running on a framework designed for exactly this: rapid game development without fighting the tooling. The language's simplicity meant LocalThunk could focus on what actually mattered: creating addictive game mechanics that bend poker's rules into something genuinely novel.
The success came from game design, not technical sophistication. But that's precisely the point. Lua got out of the way. It let a solo developer working evenings and weekends build something technically solid enough to run flawlessly across PC, console, and mobile while he obsessed over joker synergies and scoring systems. When your indie game hits 5 million sales and your biggest technical decision was "which beginner framework should I learn," you've vindicated every choice that prioritized shipping over architecture astronautics. Balatro is a love letter to simplicity, and Lua was the envelope that got it delivered.
Suggest a project or resource
Share a useful Lua project or resource.