diff --git a/articles/lua.md b/articles/lua.md index fd63b7c..9239bd2 100644 --- a/articles/lua.md +++ b/articles/lua.md @@ -1,5 +1,5 @@ # Lua -[Lua](https://lua.org) is a libre, scripting programming language created in 1993 by the Brazilian programmer Roberto Ierusalimschy. +[Lua](https://lua.org) is a libre, dynamic scripting programming language created in 1993 by the Brazilian programmer Roberto Ierusalimschy. Lua is notable for its efficiency (faster than [Python](python.md)), minimal features, extensibility and a small, non bloated implementation, making it a excellent choice for embedding into programs. @@ -20,6 +20,7 @@ You can get a listing of the compiled bytecode for a Lua source file with `luac` ```sh luac -p -l -l source.lua ``` +See the article [Bytecode](bytecode.md) for an annotated example of Lua bytecode. ## Examples ### Hello world @@ -70,3 +71,9 @@ end - [Lua Programming Gems](https://lua.org/gems) - [Online Lua bytecode explorer](https://www.luac.nl) - [lua-users](https://www.lua-users.org/) Unofficial Lua Users group, has a wiki about Lua with useful resources. +- [The Implementation of Lua 5.0](https://www.lua.org/doc/jucs05.pdf): paper that describes the register-based virtual machine +introduced in version 5.0. +- [Lua 5.3 Bytecode Reference](https://the-ravi-programming-language.readthedocs.io/en/latest/lua_bytecode_reference.html) (archive: ) + +## See also +- [Teal](https://github.com/teal-language/tl) a Lua dialect that adds static typing