411 REFERENCE · Wikibooks
Lua Functional Programming/Introduction
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Introduction to Lua
What is Lua?
Lua is a fast, powerful lightweight, embeddable scripting language. Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua has automatic memory management and incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.
Features of Lua
The features of the lua programming language include:
Lua is an extension programming language
Suitable for use as an embedded language within a host application
Cross Platform Support
Implemented in ANSI C
Lightweight core occupies just 60k and executable footprint of just 140k
Easy to use conventional scripting language
Dynamic datatypes
Powerful builtin support for text processing
Interpreted bytecode compilation for fast and efficient execution
Stack based virtual machine model
Support for procedural, object oriented, functional and datadriven programming
Supports coercion
freeform syntax
casesensitivity
keywords
History of Lua
Lua was first developed in an academic laboratory as a tool for inhouse software development but it was later adopted by several industrial projects around the world and is now widely used in the game industry.
When to use Lua
Where is Lua on the hammer scale?