Misplaced Pages

Lua (programming language)

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

This is an old revision of this page, as edited by Cadr (talk | contribs) at 12:06, 8 April 2003 (Just filled it out (only a brief note previously).). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 12:06, 8 April 2003 by Cadr (talk | contribs) (Just filled it out (only a brief note previously).)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)


The Lua programming language is a bytecode interpreted glue language designed with extensible semantics as a primary goal. It is quite similar to Python in its simplicity, but it is considerably lighter. For example, while it is quite easy to use Lua to write programs in an object oriented style, there is no built in support for the paradigm, and the programmer has to extend the language to include object-oriented semantics.

An interesting feature of Lua is that it has only one data structure, the table. Tables can be used as arrays, hashtables or structures with named fields, and can also simulate namespaces. There is a similar level of simplicity in the atomic datatypes -- all arithmetic is done in double-precision floating point, for example.

Lua is fast compared to most other bytecode interpreted scripting languages, and is suitable for writing stand-alone applications (although there are nowhere near as many libraries available as there are for Perl, Python or Tcl). However, like Tcl, Lua was designed primarily as an extension language which could be linked into C applications and used to extend their functionality by nonprogrammers. It is released under a non-copyleft liscence, and has been used in many commerical applications (e.g. in Lucas Arts' Escape from Monkey Island adventure game).

Todo: add some code examples...

See also:

External links:

Lua (programming language) Add topic