lightweight programming language
(Redirected from Lua (programming language))

Lua is an open source programming language.[2] It was created in 1993 by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes.[1] Lua is used for many different things, especially in video games such as World of Warcraft, SimCity 4 and Transformice.[5] It is also used in the popular virtual world sharing website Roblox under a dialect called Luau.[6] 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.[7] 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.[8]

ParadigmMulti-paradigm: scripting, imperative (procedural, prototype-based, object-oriented), functional
Designed byRoberto Ierusalimschy[1]
Waldemar Celes[1]
Luiz Henrique de Figueiredo[1]
First appeared1993[2]
Stable release5.4.6[3] Edit this on Wikidata / 14 May 2023; 6 months ago (14 May 2023)
Typing disciplinedynamic, strong, duck
Implementation languageANSI C
LicenseMIT License[4]
Major implementations
Lua, LuaJIT, LLVM-Lua, Lua Alchemy Luvit
Metalua, Idle, GSL Shell Luau
Influenced by
C++, CLU, Modula, Scheme, SNOBOL
Io, GameMonkey, Squirrel, Falcon, MiniD

Examples change

An example Hello World program in Lua:

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

An example of setting a value, then printing it:

a = "Hello World!"

An example of a function:

local function TestFunction()
   print("Hello, World!")

An example of a loop that prints each entry in the list in order:

local list = {"Hey","my","name","is","Dan"}

for i, v in pairs(list) do

References change

  1. 1.0 1.1 1.2 1.3 Ierusalimschy, R.; Figueiredo, L. H.; Celes, W. (2007). "The evolution of Lua" (PDF). Proc. of ACM HOPL III. pp. 2–1–2–26. doi:10.1145/1238844.1238846. ISBN 978-1-59593-766-7. S2CID 475143.
  2. 2.0 2.1 "Lua: About". Retrieved 28 February 2011.
  3. "[ANN] Lua 5.4.6 now available". 14 May 2023. Retrieved 14 May 2023.
  4. "Lua: license". Retrieved 6 April 2011.
  5. "Lua Uses". lua-users wiki. Retrieved 16 February 2011.
  6. "Luau". Luau. Archived from the original on 2021-04-08. Retrieved 2021-04-07.
  7. "Apple relaxes iOS SDK terms to allow Lua but block Flash". 11 June 2010. Retrieved 11 June 2011.
  8. "TIOBE Programming Community Index for June 2011". TIOBE Software. June 2011. Archived from the original on 2 July 2013. Retrieved 11 June 2011.

Other websites change