Nepedia
Back to Discover
Fluent Reader
💻

Lua

technology Maturity 7-9 war conflict Next article →

This article covers sensitive topics: war_conflict. Parents can manage visibility in Parental Controls.

Lua is a special way to talk to computers. It is a programming language used to add new features to other software. This job is called being an extension language. Lua is very small and very fast. These traits make it easy to fit into many different programs. It is also cross-platform. This means it can work on many different kinds of computer systems.

Lua works by using a few simple tools to do big jobs. It is a multi-paradigm language. This means it can be used in many different ways to solve problems. Instead of having many complex parts, it has a small set of general features. Programmers can then extend these features to fit their specific needs. The most important part of Lua is called a table. A table is a single data structure that can act like a list, a set, or a record.

Three people created Lua in 1993. Their names are Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes. They worked at a group called Tecgraf at the Pontifical Catholic University of Rio de Janeiro in Brazil. At that time, Brazil had rules called a market reserve. These rules made it hard to buy software from other countries. Because of this, the team at Tecgraf built their own tools from scratch.

Lua has a very interesting history. Before Lua, the team used two other languages called SOL and DEL. SOL stands for Simple Object Language. DEL stands for Data-Entry Language. The name Lua actually comes from the Portuguese word for Moon. This is a nod to its predecessor, SOL, which means Sun. Lua 1.0 used many ideas from other languages like Modula and C++.

Using Lua is a bit like using building blocks. The language provides the base blocks, and you can build almost anything with them. It uses a system called garbage collection to clean up memory automatically. It also uses a small amount of space, about 247 kB when compiled. This allows it to run on many different devices. Even though it is simple, it can handle very complex tasks through its flexible tables.

356 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.