Lua is also quite efficient several independent benchmarks show lua as the most efficient in the realm of dynamicallytyped interpreted languages efficient in real code, too. Programming in lua data structures penn state college of. Online lua compiler, online lua editor, online lua ide, online lua repl, online lua coding, online lua interpreter, execute lua online, run lua online, compile lua online, online lua debugger, execute lua online, online lua code, build lua apps, host lua apps, share lua code. Currently, lua is being used in areas ranging from embedded systems to web development and is widely spread in the game industry, where knowledge of lua. Lua i about the tutorial lua is an open source language built on top of c programming language. However, a tail call erases any debug information about the calling function. Unless you resort to c code, tables are the only way to structure data in lua they can represent arrays, sets, records, objects, and other data structures efficiently, with a nice syntax the basic operations that a table supports are construction, to make a new table, and indexing, to readwrite values.
Lua is a powerful and simple scripting language used for many different applications. Aboutlua inventedasconfigurationanddatadescriptionlanguage firstversionreleased1993,currentversionis5. Nodemcu created a firmware for the esp8266 that is based upon a lua interpreter. Authored by roberto ierusalimschy, the chief architect of the language, it covers all. Lua has its value across multiple platforms ranging from large server systems to small mobile applications. Well get you off and running with lua on this popular iot platform. In a tail call, the called function reuses the stack entry of the calling function. It has found great success in game development, and is now finding a new home in iot development.
Lua is the language of choice for anyone who needs a scripting language that is simple, efficient, extensible, portable, and free. Programming in lua is the official book about the language, providing a solid base to any programmer who wants to use lua. Many people use lua embedded in an application program, such as cgilua for building dynamic web pages or a game. Jaoo 2008 what is lua yet another dynamic language. Aprendiendo a programar videojuegos con lua hazlo tu. Porque lua portabilidade simplicidade pequenotamanho acoplabilidadeembedding scripng e. Lua implements proper tail calls or proper tail recursion. This tutorial covers various topics ranging from the basics of lua to.1287 756 703 695 609 364 209 561 956 380 1010 998 964 248 1132 753 178 206 1026 1256 1035 119 870 1494 651 1441 797 918 478 1058 475 483 3 932 1344 797 1290 1022 168