< Lua Functional Programming

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?

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.