Lua

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Lua
Lua-logo-nolabel.svg
Paradigm(s) Multi-paradigm: scripting, imperative (procedural, prototype-based object-oriented), functional
Appeared in 1993[1]
Designed by Roberto Ierusalimschy[2]
Waldemar Celes[2]
Luiz Henrique de Figueiredo[2]
Stable release 5.2.3 / December 7, 2013 (2013-12-07)[3]
Typing discipline dynamic, strong, duck
Major implementations Lua, LuaJIT, LLVM-Lua, Lua Alchemy
Dialects Metalua, Idle, GSL Shell
Influenced by C++, CLU, Modula, Scheme, SNOBOL
Influenced Io, GameMonkey, Squirrel, Falcon, MiniD
OS Cross-platform
License MIT License[4]
Website www.lua.org

Lua is an open source programming language.[1] It was created in 1993 by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes.[2] Lua is used for many different things and is widely used in video games such as World of Warcraft.[5] In June 2010, Apple Inc. changed the terms of use for the software development kit of its iOS operating system to allow the use of Lua.[6] This led to Lua being used to make iPhone applications such as Angry Birds. In June 2011, Lua was ranked the tenth most popular programming language by the TIOBE Index.[7]

Example[change | change source]

An example Hello World program in Lua:

#!/usr/bin/lua
print("Hello World!")

An example of setting a value, then printing it:

#!/usr/bin/lua
a = "Hello World!"
print(a)

References[change | change source]

Other websites[change | change source]