Lua Functional Programming/Introduction
Appearance
Introduction to Lua
[edit | edit source]What is Lua?
[edit | edit source]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
[edit | edit source]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
[edit | edit source]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.