Lua
| : |
: |
|---|---|
| : |
, JIT |
| : |
1993 |
| (): |
, |
| : |
5.2.0 (16 2011) |
| : | |
| : | |
| : | |
| : | |
| : |
Io, GameMonkey, Squirrel, Dao, MiniD |
| : | |
Lua ([́], . «») , Tecgraf -- (Computer Graphics Technology Group of Pontifical Catholic University of Rio de Janeiro in Brazil). , .
, JavaScript, Lua . Lua , - ( ) , . . ( JavaScript) .
Lua «», «LUA» .
( 2012) Lua Mediawiki[2] (. Lua scripting).
|
|
[]
Lua Tecgraf -- (Computer Graphics Technology Group, Pontifícia Universidade Católica do Rio de Janeiro), 1993 . , Luiz Henrique de Figueiredo Waldemar Celes. Lua , .
[]
[]
x, y = y, x
[]
Lua :
- nil ()
- boolean ()
- number ()
- string ()
- function ()
- userdata ( )
- thread ()
- table ()
Nil nil [ ], . Boolean false () true (). nil false , . Number (double), . String . Lua 8- , ('\0'). .
[]
Lua , , , , . Lua (, ). , nil.
[]
function makeaddfunc(x) -- , x return function(y) -- x, , -- , , -- Lua . return x + y end end plustwo = makeaddfunc(2) print(plustwo(5)) -- 7
, makeaddfunc, x, x. Lua, .
[]
hello world Lua :
print("Hello World!")
S.T.A.L.K.E.R LUA ( ):
function select_actor_community(actor, npc) db.actor:set_character_community("military", 0, 0) -- "" end
LUA .
-- Lua . --[[ . ]]
function factorial(n) if n == 0 then return 1 else return n * factorial(n - 1) end end
for i = 1,5 do -- Statements end
do local oldprint = print -- print oldprint function print(s) -- print if s == "foo" then oldprint("bar") else oldprint(s) end end end
print , Lua , print , print. Lua , , .
fibs = { 1, 1 } -- fibs[1] fibs[2]. setmetatable(fibs, { __index = function(name, n) -- , fibs[n] . name[n] = name[n - 1] + name[n - 2] -- fibs[n]. return name[n] end })
[]
, Lua - -. - , , . Lua ( Java .NET).
, , JIT Lua LuaJIT[3]. llvm-lua[4], LLVM, .
[]
[]
Lua LucasArts, Grim Fandango[5]. HOPL (.). , 1997 , Grim Fandango, , 1996 Dr. Dobbs Journal, SCUMM Lua[6]. GrimE, LucasArts Escape from Monkey Island.
2003 GameDev.net Lua [7].
, Lua World of Warcraft.[8][9] Lua - Enigma[10].
[]
| . |
- Adobe Photoshop Lightroom Lua
- Amnesia R&Q Lua
- Awesome ( X Window System) Lua
- BUIW BREW Lua
- Celestia, , Lua
- Conky Lua
- Direct Connect Lua
- Dr.Web Enterprise Suite
- HandyCache Lua
- Ion Lua ()
- IP-PBX Asterisk Lua ()
- MySQL proxy Lua
- OpenAT Lua
- OpenWRT Lua
- SciTE Lua
- uiOne Lua TrigML
- VLC Lua
- Wireshark Lua .
- + Lua
- Logitech G ( ) Lua.
- 7.3 Vim Lua.
- Lua NSClient++
- CronosPro[11] Lua ()
- FXCM Marketscope Charts Lua .
- (DAW) Renoise Lua
[] IDE
[]
- Lua Implementations (.). Lua-users enci. 24 2011. 18 2009.
- Wikimedia Foundation Report, April 2012 (.). 10 2012.
- The LuaJIT Project
- llvm-lua. JIT/Static compiler for Lua using LLVM on the backend.
- Bret Mogilefsky Lua in Grim Fandango. 4 2012. 9 2011.
- HOPL, 2007, . 11
- Which language do you use for scripting in your game engine?. GameDev.net Poll Results
- Paul Emmerich Beginning Lua with World of Warcraft Add-ons. Apress, July 2009. ISBN 1430223715
- James Whitehead II, Bryan McLemore, and Matthew Orlando World of Warcraft Programming. Wiley, May 2008. ISBN 0470229810
- Tom Gutschmidt Ch. 8. The Lua Game Community Game Engines // Game Programming with Python, Lua, and Ruby. Premier Press, 2003. 472 p. ISBN 1-59200-079-7
- CronosPRO
[]
- R. Ierusalimschy, L. H. de Figueiredo, W. Celes The evolution of Lua // Proceedings of ACM HOPL III. 2-12-26. 2007.
- Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes The evolution of an extension language: a history of Lua. Reprint from Proceedings of V Brazilian Symposium on Programming Languages (2001) B-14B-28.. 4 2012. 9 2011.
-
- Lua-
- Kepler Project team - Lua (.)
- LuaGL OpenGL Lua 5.1
[] Lua
- Lua,
- «» ( 2; 3; 4),
- Lua, Ash Matheson An Introduction to Lua (.)
- Lua, Keith Fieldhouse Introducing Lua (.)
- C Lua
- Lua
- Lua
- Lua ++ ( 2),
- Lua, Lua ++
«Lua»
| Lua (programming language) (.)
, .
|
| Lua | |
|---|---|
| Lua Parrot | |
| IUP Kepler LÖVE | |
| Plua Lua Player Corona | |
| IDE | Decoda SciTE |
| Prosody | |


,