A powerful, efficient, lightweight, embeddable scripting language
open sourceMITfree
Lua is a powerful, efficient, lightweight scripting language designed to be embedded in applications, and supports procedural, object-oriented, functional and data-driven programming. It combines simple procedural syntax with data description built on associative arrays (tables) and extensible semantics. This listing covers the language and its reference implementation from PUC-Rio, written in ISO C, which runs bytecode on a register-based virtual machine with incremental garbage collection. It is used for configuration and scripting in applications such as Adobe Photoshop Lightroom, in embedded systems and in games. Lua modules are published on LuaRocks.
Libraries for Lua
Browse all of them: 2 libraries.
Problems it solves
- add a scripting language to my C or C++ application so users can extend it
- a tiny language for configuration files that can also run logic
- let modders script my game without recompiling it
- a scripting language small enough to run on embedded devices
- write plugins for my editor or window manager in a simple language
- a fast, simple language I can learn in an afternoon
Features
- small embeddable interpreter written in ISO C, also compiles as C++
- register-based bytecode virtual machine
- incremental garbage collection
- tables as the single data structuring mechanism
- C API for embedding and extending
- coroutines
Alternatives
The same job
These do what Lua does.
- Python A programming language that lets you work quickly and integrate systems more effectively
