Extrait du cours real scripting with lua
Uses of Lua
●Widely used in some niches
●not a “web language”
●Embedded systems
●Scripting for applications
●Games
Embedded systems
TVs (Samsung), routers (Cisco), keyboards
(Logitech), printers (Olivetti, Océ),set-top boxes
(Ginga, Verizon), M2M devices (Sierra Wireless,
Koneki), calculators (TI-Nspire), mobiles
(Huawei), …
Scripting for applications
Wireshark, Snort, Nmap, VLC Media Player,
lighttpd, LuaTeX, Flame, …
Scripting
●Scripting language x dynamic language
●scripting emphasizes inter-language communication
●Program written in two languages
●a scripting language and a system language
●System language implements the hard parts of the application
●algorithms, data structures
●little change
●Scripting glues together the hard parts
●flexible, easy to change
Scripting in Grim Fandango
[The engine] doesn’t know anything about adventure games, or talking, or puzzles, or anything else that makes Grim Fandango the game it is. It just knows how to render a set from data that it’s loaded and draw characters in that set.
[…]
The real heroes in the development of Grim Fandango were the scripters. They wrote everything from how to respond to the controls to dialogs to camera scripts to door scripts to the in-game menus and options screens. […]
A TREMENDOUS amount of this game is written in Lua.
The engine, including the Lua interpreter, is really just a small part of the finished product.
Lua and Scripting
●Lua is implemented as a library
●Lua has been designed for scripting
●Good for embeddingand extending
●Embedded in C/C++, Java, Fortan, C#, Perl, Ruby, Python, etc.
……..
Cours real scripting with lua (3245 KO) (Cours PDF)