If you are not sure if the website you would like to visit is secure, you can verify it here. Enter the website address of the page and see parts of its content and the thumbnail images on this site. None (if any) dangerous scripts on the referenced page will be executed. Additionally, if the selected site contains subpages, you can verify it (review) in batches containing 5 pages.
favicon.ico: web.archive.org/web/20221220172659/https://en.wikipedia.org/wiki/Lua_%28programming_language%29 - Lua (programming language) - W.

site address: web.archive.org/web/20221220091228/https://en.wikipedia.org/wiki/Lua_(programming_language) redirected to: web.archive.org/web/20221220172659/https://en.wikipedia.org/wiki/Lua_%28programming_language%29

site title: Lua (programming language) - Wikipedia

Our opinion (on Tuesday 22 September 2026 1:48:17 UTC):

GREEN status (no comments) - no comments
After content analysis of this website we propose the following hashtags:



Meta tags:

Headings (most frequently used words):

edit, languages, lua, programming, navigation, tools, language, contents, history, features, implementation, api, applications, derived, see, also, references, further, reading, external, links, menu, syntax, control, flow, functions, tables, metatables, object, oriented, modules, that, compile, to, dialects, personal, namespaces, views, contribute, print, export, in, other, projects, inheritance,

Text of the page (most frequently used words):
the (206), lua (173), and (101), from (48), function (48), for (46), language (45), with (42), #programming (41), software (37), print (36), retrieved (35), end (31), table (30), vector (28), self (27), using (26), are (26), that (26), edit (23), languages (23), can (23), new (23), return (22), also (21), object (20), free (20), value (20), data (19), vec (18), array (18), this (17), example (16), org (16), source (16), functions (16), not (15), which (15), stack (15), values (15), point (15), license (14), articles (14), original (14), applications (14), such (14), wikipedia (13), use (13), was (13), scripting (13), its (13), reference (13), api (13), key (13), then (13), class (13), other (12), based (12), open (12), ierusalimschy (12), tables (12), local (12), 2022 (11), features (11), magnitude (11), prints (11), may (10), links (10), game (10), used (10), nil (10), syntax (10), statement (9), figueiredo (9), celes (9), archived (9), isbn (9), implementation (9), extension (9), call (9), any (9), first (9), has (9), 2021 (8), 2018 (8), users (8), april (8), 2012 (8), january (8), 978 (8), into (8), most (8), library (8), one (8), method (8), only (8), loop (8), condition (8), december (7), wikidata (7), code (7), july (7), 1993 (7), index (7), control (7), python (7), web (7), roberto (7), september (7), 2006 (7), manual (7), number (7), have (7), modules (7), will (7), __index (7), inheritance (7), output (7), vectormult (7), because (7), were (7), tecgraf (7), about (6), available (6), non (6), link (6), history (6), create (6), dead (6), external (6), register (6), created (6), lisp (6), through (6), march (6), 2013 (6), while (6), moonscript (6), line (6), some (6), when (6), called (6), but (6), metatables (6), variable (6), setmetatable (6), fibs (6), a_table (6), body (6), had (6), foundation (5), simple (5), wiki (5), mediawiki (5), here (5), article (5), main (5), more (5), june (5), 2020 (5), statements (5), all (5), february (5), description (5), mit (5), oriented (5), computer (5), embedded (5), dynamic (5), comparison (5), types (5), development (5), luiz (5), henrique (5), waldemar (5), look (5), design (5), luau (5), scheme (5), provides (5), many (5), system (5), type (5), like (5), supports (5), derived (5), does (5), automatic (5), foo (5), indices (5), string (5), directly (5), both (5), time (5), multiple (5), access (5), member (5), constructor (5), arrays (5), creates (5), been (5), pairs (5), structures (5), addto (5), paradigm (5), sol (5), page (4), projects (4), version (4), cite (4), special (4), related (4), tools (4), community (4), current (4), identifiers (4), cs1 (4), maint (4), bot (4), url (4), status (4), unknown (4), virtual (4), cross (4), platform (4), basic (4), hardware (4), proprietary (4), management (4), definition (4), video (4), support (4), general (4), luarocks (4), package (4), doi (4), 2011 (4), com (4), 2003 (4), introduction (4), brazil (4), urn (4), www (4), 2017 (4), ring (4), see (4), top (4), luajit (4), optional (4), compiler (4), compiled (4), allowing (4), execution (4), include (4), world (4), programmers (4), returns (4), methods (4), collection (4), there (4), objects (4), where (4), state (4), two (4), calling (4), different (4), need (4), factorial (4), bytecode (4), implemented (4), another (4), their (4), argument (4), args (4), func (4), element (4), rather (4), similar (4), single (4), allows (4), than (4), strings (4), meaning (4), structure (4), b_table (4), associative (4), oldprint (4), until (4), else (4), multi (4), needed (4), full (4), designed (4), should (4), policy (3), text (3), under (3), terms (3), commons (3), last (3), english (3), wikibooks (3), meta (3), pdf (3), information (3), pages (3), file (3), changes (3), navigation (3), read (3), sister (3), project (3), default (3), portuguese (3), november (3), short (3), prototype (3), lua_ (3), category (3), ruby (3), javascript (3), shared (3), core (3), gnu (3), movement (3), games (3), facilities (3), list (3), website (3), s2cid (3), 1145 (3), acm (3), 2008 (3), 2007 (3), journal (3), 2009 (3), net (3), power (3), github (3), roblox (3), amulet (3), compile (3), scribunto (3), server (3), 2014 (3), october (3), instructions (3), extensible (3), host (3), evolution (3), addition (3), extensions (3), including (3), jit (3), typing (3), dialects (3), functional (3), built (3), well (3), uses (3), embed (3), functionality (3), added (3), interpreter (3), load (3), just (3), written (3), programs (3), store (3), result (3), arguments (3), integers (3), defined (3), above (3), auxiliary (3), between (3), done (3), actual (3), intended (3), provided (3), loadk (3), machine (3), run (3), either (3), multiply (3), math (3), sqrt (3), since (3), syntactic (3), sugar (3), equivalent (3), concept (3), fields (3), semantics (3), following (3), exampletable (3), length (3), still (3), numeric (3), explicit (3), closure (3), anonymous (3), would (3), calls (3), lexical (3), scoping (3), generic (3), repeat (3), elseif (3), flow (3), double (3), hello (3), small (3), set (3), platforms (3), implement (3), influenced (3), view (2), contact (2), privacy (2), wikimedia (2), creative (2), bahasa (2), wikiversity (2), item (2), permanent (2), upload (2), portal (2), learn (2), help (2), events (2), contents (2), talk (2), namespaces (2), hidden (2), categories (2), search (2), unsourced (2), machines (2), pontifical (2), catholic (2), university (2), rio (2), janeiro (2), libraries (2), systems (2), dynamically (2), typed (2), https (2), php (2), lists (2), shell (2), sql (2), haskell (2), ada (2), timeline (2), initiative (2), linux (2), drivers (2), domain (2), permissive (2), works (2), licenses (2), bsd (2), formerly (2), ios (2), apps (2), android (2), graphics (2), configuration (2), alternative (2), manager (2), rocks (2), embeddable (2), media (2), gamedev (2), others (2), takhteyev (2), yuri (2), 262 (2), press (2), practice (2), 903798 (2), 2005 (2), technology (2), online (2), further (2), reading (2), patches (2), shine (2), ravi (2), lang (2), guide (2), tutorial (2), front (2), award (2), announced (2), poll (2), crysis (2), side (2), angry (2), birds (2), why (2), august (2), binding (2), trade (2), edition (2), 1996 (2), dobb (2), 635 (2), now (2), references (2), module (2), whose (2), dialect (2), compilation (2), notable (2), style (2), extensibility (2), popular (2), template (2), standard (2), providing (2), native (2), scripts (2), itself (2), growing (2), known (2), exist (2), require (2), located (2), prior (2), within (2), namespace (2), lua_close (2), integer (2), lua_call (2), lua_pushinteger (2), push (2), negative (2), indicate (2), offsets (2), pushed (2), unlike (2), advanced (2), shown (2), vms (2), user (2), especially (2), loading (2), performance (2), reduce (2), operator (2), implicit (2), refers (2), give (2), allow (2), colon (2), inside (2), metatable (2), vectormeta (2), techniques (2), constructs (2), scratch (2), classes (2), feature (2), customization (2), however (2), avoid (2), zero (2), exactly (2), consider (2), starts (2), assigned (2), automatically (2), them (2), same (2), very (2), refer (2), entry (2), always (2), heterogeneous (2), they (2), returned (2), own (2), garbage (2), being (2), way (2), fourplus (2), closures (2), modified (2), row (2), grid (2), loops (2), over (2), delta (2), conditional (2), keywords (2), fit (2), flexible (2), extended (2), specific (2), light (2), versions (2), moon (2), influence (2), major (2), develop (2), snobol (2), clu (2), modula (2), tcl (2), did (2), atmosphere (2), clients (2), 1992 (2), add (2), del (2), petrobras (2), extending (2), included (2), procedural (2), ansi (2), lightweight (2), citation (2), ago (2), jump (2), sep (2), cookie, statistics, developers, mobile, disclaimers, additional, apply, site, you, agree, registered, trademark, profit, organization, inc, attribution, sharealike, edited, utc, zazaki, tiếng, việt, اردو, українська, удмурт, türkçe, тоҷикӣ, ไทย, தமிழ், svenska, suomi, српски, srpski, کوردی, soomaaliga, slovenščina, slovenčina, shqip, scots, русский, română, português, polski, ភាសាខ្មែរ, پنجابی, ਪੰਜਾਬੀ, ଓଡ଼ିଆ, norsk, bokmål, 日本語, nederlands, melayu, മലയാളം, magyar, latviešu, latina, kiswahili, ქართული, עברית, italiano, íslenska, interlingua, indonesia, hrvatski, हिन्दी, հայերեն, 한국어, galego, français, فارسی, euskara, esperanto, español, ελληνικά, eesti, deutsch, dansk, čeština, català, bosanski, български, беларуская, bân, lâm, বাংলা, azərbaycanca, العربية, printable, download, export, what, recent, contribute, donate, random, views, log, account, contributions, logged, personal, menu, lccn, j9u, gnd, bnf, permanently, containing, dmy, dates, matches, programmed, compilers, interpreters, brazilian, inventions, title, programming_language, oldid, 1126681046, portals, united, states, israel, germany, france, national, authority, generational, categorical, alphabetical, swift, smalltalk, simula, rust, prolog, perl, pascal, kotlin, java, fortran, forth, erlang, cobol, assembly, apl, algol, revolution, cathedral, bazaar, model, microsoft, specification, promise, manifesto, forking, topics, trusted, computing, security, patents, sco, controversies, firmware, device, mozilla, rebranding, proliferation, restrictions, digital, rights, challenges, viral, public, cultural, debian, guidelines, copyleft, contributor, agreement, standards, zlib, wtfpl, unlicense, sleepycat, mpl, isc, lgpl, gpl, epl, cddl, beerware, artistic, apsl, apache, afl, india, organisations, trademarked, commercial, commerce, television, routing, operating, office, suites, mathematics, health, wireless, codecs, bioinformatics, audio, packages, outline, long, term, gratis, versus, libre, directories, hosting, closed, iup, tarantool, torch, prosody, openresty, frameworks, scite, decoda, ides, solar2d, löve, plua, ports, distributions, luadist, forum, official, resources, textbooks, wikinews, news, papers, theses, 114, 123, 53114923, 3186277, communications, how, embeddability, impacted, 19484689, 1978862, 1983083, queue, passing, eye, needle, interview, hamilton, naomi, idg, computerworld, quigley, joseph, streicher, martin, ibm, developerworks, fieldhouse, keith, reilly, onlamp, introducing, matheson, ash, varma, jayant, 4302, 4662, apress, chapters, dedicated, broadly, 01807, coding, places, south, american, city, eds, gems, jung, brown, 470, 06917, wrox, beginning, schuytema, manyen, charles, river, 58450, 404, gutschmidt, course, ptr, 59200, 077, 1st, 3rd, hundt, richard, richardhundt, andre, alves, garzia, andregarzia, leaf, leafo, infobox, 2019, winners, results, wow, gamepedia, modding, til, coded, post, imgur, considered, kein, hong, man, frills, texas, instruments, 1990, 70040, 1159, 1176, universal, comp, sci, metamethods, 165, 4th, vol, few, metamechanisms, replace, 2001, 475143, 59593, 766, 1238844, 1238846, proc, hopl, iii, foreign, affairs, filho, 652, 2015, 1002, sici, 1097, 024x, 199606, aid, spe26, experience, team, fork, macro, enabled, static, guided, ergonomic, additions, gradual, outputs, files, fennel, targets, target, supporting, haxe, sensitive, inspired, means, instead, delimit, sections, usage, distribution, itch, indentation, breaks, coffeescript, whitespace, powers, wikis, among, integration, powering, automated, taxobox, large, setting, editor, network, packet, analyzer, wireshark, nginx, neovim, database, redis, tex, luatex, conducted, showed, winner, magazine, developer, widely, mainly, due, perceived, easiness, fast, natively, mods, computercraft, certain, netbsd, freebsd, aerospike, iclone, moho, adobe, lightroom, minecraft, space, dota, phantasy, star, payday, warcraft, garry, mod, learning, curve, besides, possible, write, extend, loaded, via, acts, callable, generally, filled, spirit, prewritten, approaches, generators, bindings, eggs, rubygems, cpan, luaopen_foo, loadlib, various, pseudo, globals, registry, later, retrieval, lua_registryindex, lua_globalsindex, llua, running, gives, close, lua_pop, lua_tointeger, printf, lua_getglobal, followed, global, lual_dostring, execute, lual_newstate, lua_state, void, int, lual_, lauxlib, stdio, pop, floats, etc, manipulating, somewhat, traditional, indexed, recently, positive, bottom, oldest, onto, writing, marshalling, purpose, divided, parts, eliminates, minimalistic, consists, largely, assist, complex, operations, macros, preprocessor, bytes, 0x8063c60, param, slots, upvalues, locals, constants, move, forprep, mul, forloop, listing, luac, cpus, therefore, closely, resembles, architecture, avoids, excessive, copying, reduces, total, per, pure, wide, pcscheme, dalvik, parrot, textual, process, typically, invisible, performed, during, offline, order, increase, memory, footprint, environment, leaving, out, produced, executed, approximately, 000, lines, loadstring, loadfile, dump, interpreted, elements, __sub, __add, overloading, again, components, make, child, whatever, vectors, multiplied, constant, mind, corresponding, facilitate, orientation, declare, makes, tells, present, looks, delegates, found, creating, these, cloning, existing, factory, prototypes, although, emulated, formed, putting, delegating, nonexistent, parent, calculate, memoize, predefined, initial, powerful, demonstrates, infinite, memoization, fibonacci, hash, map, emulate, normally, slower, optimized, issue, points, moreover, regular, given, holes, precedes, legal, indexing, distinct, numerical, enabling, though, allowed, set_x, act, easier, dot, notation, often, keys, common, accessing, record, changed, associated, case, mapping, except, nan, passed, sharing, empty, referenced, words, hashed, important, composite, every, each, parameter, managed, collector, helps, cost, iteratively, achieved, scope, lifetime, shorter, outside, adds, demonstrated, below, future, routed, old, accessible, bar, redefine, usual, treatment, behavior, put, nested, iterate, iterator, count, down, true, four, controlled, according, conditions, keyword, accompanying, block, evaluates, false, requires, three, test, hyphen, runs, comments, adorned, square, brackets, vhdl, eiffel, comment, classic, follows, program, implements, proper, conversion, cooperative, multitasking, coroutines, coercion, tail, compact, enough, variety, atomic, numbers, precision, bit, typical, represented, essentially, records, sets, floating, boolean, strives, provide, supply, base, 247, easily, adaptable, broad, range, commonly, described, problem, contain, similarly, employment, fine, grained, enforce, principle, least, privilege, hiding, book, topic, released, onwards, licensed, almost, identical, licences, increasingly, several, constructors, slightly, incorporated, hence, name, sun, mostly, borrowed, taken, assignments, simpler, neat, idea, declared, published, creators, ubiquitous, mechanism, decision, primary, awk, pointers, parameters, real, contender, explicitly, unfamiliar, offer, good, ran, unix, unfriendly, infancy, yourself, reigned, quite, natural, try, our, potential, professional, cryptic, highly, portable, diverse, finally, expected, products, follow, authors, wrote, predecessors, independently, developed, flexibility, interactive, graphical, engineering, company, lack, felt, 1977, strong, market, reserve, could, afford, politically, financially, buy, customized, abroad, those, reasons, led, barriers, members, group, originated, meet, increasing, demand, complicated, mechanisms, designers, focused, improving, ease, portability, speed, primarily, relatively, high, level, ˈlu, loo, minid, squirrel, red, julia, gamemonkey, gsl, idle, metalua, luart, luvit, moonsharp, luavela, implementations, filename, duck, weak, discipline, months, stable, release, years, appeared, reflective, imperative, encyclopedia, wayback, http, archive, 20221220172659, 28programming_language, timestamps, capture, fail, success, 2023, jan, dec, nov, 2026, 057, captures,


Text of the page (random words):
amming language the article is about the lua programming language itself for its use in wikipedia see wikipedia lua lua paradigm multi paradigm scripting imperative procedural prototype based object oriented functional meta reflective designed by roberto ierusalimschy waldemar celes luiz henrique de figueiredo first appeared 1993 29 years ago 1993 stable release 5 4 4 1 26 january 2022 10 months ago 26 january 2022 typing discipline dynamic weak duck implementation language ansi c os cross platform license mit license filename extensions lua website www lua org major implementations lua luajit luavela moonsharp luvit luart luau dialects metalua idle gsl shell influenced by c clu modula scheme snobol influenced gamemonkey io javascript citation needed julia minid red ring 2 ruby citation needed squirrel moonscript c lua ˈ l uː ə loo ə from portuguese lua ˈlu w ɐ meaning moon is a lightweight high level multi paradigm programming language designed primarily for embedded use in applications 3 lua is cross platform since the interpreter of compiled bytecode is written in ansi c 4 and lua has a relatively simple c api to embed it into applications 5 lua originated in 1993 as a language for extending software applications to meet the increasing demand for customization at the time it provided the basic facilities of most procedural programming languages but more complicated or domain specific features were not included rather it included mechanisms for extending the language allowing programmers to implement such features as lua was intended to be a general embeddable extension language the designers of lua focused on improving its speed portability extensibility and ease of use in development contents 1 history 2 features 2 1 syntax 2 2 control flow 2 3 functions 2 4 tables 2 5 metatables 2 6 object oriented programming 2 6 1 inheritance 3 implementation 4 c api 4 1 modules 5 applications 6 derived languages 6 1 languages that compile to lua 6 2 dialects 7 see also 8 references 9 further reading 10 external links history edit lua was created in 1993 by roberto ierusalimschy luiz henrique de figueiredo and waldemar celes members of the computer graphics technology group tecgraf at the pontifical catholic university of rio de janeiro in brazil from 1977 until 1992 brazil had a policy of strong trade barriers called a market reserve for computer hardware and software in that atmosphere tecgraf s clients could not afford either politically or financially to buy customized software from abroad those reasons led tecgraf to implement the basic tools it needed from scratch 6 lua s predecessors were the data description configuration languages sol simple object language and del data entry language 7 they had been independently developed at tecgraf in 1992 1993 to add some flexibility into two different projects both were interactive graphical programs for engineering applications at petrobras company there was a lack of any flow control structures in sol and del and petrobras felt a growing need to add full programming power to them in the evolution of lua the language s authors wrote 6 in 1993 the only real contender was tcl which had been explicitly designed to be embedded into applications however tcl had unfamiliar syntax did not offer good support for data description and ran only on unix platforms we did not consider lisp or scheme because of their unfriendly syntax python was still in its infancy in the free do it yourself atmosphere that then reigned in tecgraf it was quite natural that we should try to develop our own scripting language because many potential users of the language were not professional programmers the language should avoid cryptic syntax and semantics the implementation of the new language should be highly portable because tecgraf s clients had a very diverse collection of computer platforms finally since we expected that other tecgraf products would also need to embed a scripting language the new language should follow the example of sol and be provided as a library with a c api lua 1 0 was designed in such a way that its object constructors being then slightly different from the current light and flexible style incorporated the data description syntax of sol hence the name lua sol meaning sun in portuguese and lua meaning moon lua syntax for control structures was mostly borrowed from modula if while repeat until but also had taken influence from clu multiple assignments and multiple returns from function calls as a simpler alternative to reference parameters or explicit pointers c neat idea of allowing a local variable to be declared only where we need it 6 snobol and awk associative arrays in an article published in dr dobb s journal lua s creators also state that lisp and scheme with their single ubiquitous data structure mechanism the list were a major influence on their decision to develop the table as the primary data structure of lua 8 lua semantics have been increasingly influenced by scheme over time 6 especially with the introduction of anonymous functions and full lexical scoping several features were added in new lua versions versions of lua prior to version 5 0 were released under a license similar to the bsd license from version 5 0 onwards lua has been licensed under the mit license both are permissive free software licences and are almost identical features edit wikibooks has a book on the topic of lua programming lua is commonly described as a multi paradigm language providing a small set of general features that can be extended to fit different problem types lua does not contain explicit support for inheritance but allows it to be implemented with metatables similarly lua allows programmers to implement namespaces classes and other related features using its single table implementation first class functions allow the employment of many techniques from functional programming and full lexical scoping allows fine grained information hiding to enforce the principle of least privilege in general lua strives to provide simple flexible meta features that can be extended as needed rather than supply a feature set specific to one programming paradigm as a result the base language is light the full reference interpreter is only about 247 kb compiled 4 and easily adaptable to a broad range of applications a dynamically typed language intended for use as an extension language or scripting language lua is compact enough to fit on a variety of host platforms it supports only a small number of atomic data structures such as boolean values numbers double precision floating point and 64 bit integers by default and strings typical data structures such as arrays sets lists and records can be represented using lua s single native data structure the table which is essentially a heterogeneous associative array lua implements a small set of advanced features such as first class functions garbage collection closures proper tail calls coercion automatic conversion between string and number values at run time coroutines cooperative multitasking and dynamic module loading syntax edit the classic hello world program can be written as follows 9 print hello world or as print hello world a comment in lua starts with a double hyphen and runs to the end of the line similar to ada eiffel haskell sql and vhdl multi line strings and comments are adorned with double square brackets the factorial function is implemented as a function in this example function factorial n local x 1 for i 2 n do x x i end return x end control flow edit lua has one type of conditional test if then end with optional else and elseif then execution control constructs the generic if then end statement requires all three keywords if condition then statement body end the else keyword may be added with an accompanying statement block to control execution when the if condition evaluates to false if condition then statement body else statement body end execution may also be controlled according to multiple conditions using the elseif then keywords if condition then statement body elseif condition then statement body else optional optional default statement body end lua has four types of conditional loops the while loop the repeat loop similar to a do while loop the numeric for loop and the generic for loop condition true while condition do statements end repeat statements until condition for i first last delta do delta may be negative allowing the for loop to count down or up statements example print i end the generic for loop for key value in pairs _g do print key value end would iterate over the table _g using the standard iterator function pairs until it returns nil loops can also be nested put inside of another loop local grid 11 12 13 21 22 23 31 32 33 for y row in pairs grid do for x value in pairs row do print x y value end end functions edit lua s treatment of functions as first class values is shown in the following example where the print function s behavior is modified do local oldprint print store current print function as oldprint function print s redefine print function the usual print function can still be used through oldprint the new one has only one argument oldprint s foo and bar or s end end any future calls to print will now be routed through the new function and because of lua s lexical scoping the old print function will only be accessible by the new modified print lua also supports closures as demonstrated below function addto x return a new function that adds x to the argument return function y when we refer to the variable x which is outside the current scope and whose lifetime would be shorter than that of this anonymous function lua creates a closure return x y end end fourplus addto 4 print fourplus 3 prints 7 this can also be achieved by calling the function in the following way print addto 4 3 this is because we are calling the returned function from addto 4 with the argument 3 directly this also helps to reduce data cost and up performance if being called iteratively a new closure for the variable x is created every time addto is called so that each new anonymous function returned will always access its own x parameter the closure is managed by lua s garbage collector just like any other object tables edit tables are the most important data structures and by design the only built in composite data type in lua and are the foundation of all user created types they are associative arrays with addition of automatic numeric key and special syntax a table is a collection of key and data pairs where the data is referenced by key in other words it is a hashed heterogeneous associative array tables are created using the constructor syntax a_table creates a new empty table tables are always passed by reference see call by sharing a key index can be any value except nil and nan including functions a_table x 10 creates a new table with one entry mapping x to the number 10 print a_table x prints the value associated with the string key in this case 10 b_table a_table b_table x 20 the value in the table has been changed to 20 print b_table x prints 20 print a_table x also prints 20 because a_table and b_table both refer to the same table a table is often used as structure or record by using strings as keys because such use is very common lua features a special syntax for accessing such fields 10 point x 10 y 20 create new table print point x prints 10 print point x has exactly the same meaning as line above the easier to read dot notation is just syntactic sugar by using a table to store related functions it can act as a namespace point point new function x y return x x y y return x x y y end point set_x function point x point x x point x x end tables are automatically assigned a numerical key enabling them to be used as an array data type the first automatic index is 1 rather than 0 as it is for many other programming languages though an explicit index of 0 is allowed a numeric key 1 is distinct from a string key 1 array a b c d indices are assigned automatically print array 2 prints b automatic indexing in lua starts at 1 print array prints 4 is the length operator for tables and strings array 0 z zero is a legal index print array still prints 4 as lua arrays are 1 based the length of a table t is defined to be any integer index n such that t n is not nil and t n 1 is nil moreover if t 1 is nil n can be zero for a regular array with non nil values from 1 to a given n its length is exactly that n the index of its last value if the array has holes that is nil values between other non nil values then t can be any of the indices that directly precedes a nil value that is it may consider any such nil value as the end of the array 11 exampletable 1 2 3 4 5 6 7 8 print exampletable 1 3 prints 3 print exampletable 2 4 prints 8 a table can be an array of objects function point x y point object constructor return x x y y creates and returns a new object table end array point 10 20 point 30 40 point 50 60 creates array of points array x 10 y 20 x 30 y 40 x 50 y 60 print array 2 y prints 40 using a hash map to emulate an array is normally slower than using an actual array however lua tables are optimized for use as arrays to help avoid this issue 12 metatables edit extensible semantics is a key feature of lua and the metatable concept allows powerful customization of tables the following example demonstrates an infinite table for any n fibs n will give the n th fibonacci number using dynamic programming and memoization fibs 1 1 initial values for fibs 1 and fibs 2 setmetatable fibs __index function values n __index is a function predefined by lua it is called if key n does not exist values n values n 1 values n 2 calculate and memoize fibs n return values n end object oriented programming edit although lua does not have a built in concept of classes object oriented programming can be emulated using functions and tables an object is formed by putting methods and fields in a table inheritance both single and multiple can be implemented with metatables delegating nonexistent methods and fields to a parent object there is no such concept as class with these techniques rather prototypes are used similar to self or javascript new objects are created either with a factory method that constructs new objects from scratch or by cloning an existing object creating a basic vector object local vector local vectormeta __index vector function vector new x y z the constructor return setmetatable x x y y z z vectormeta end function vector magnitude self another method return math sqrt self x 2 self y 2 self z 2 end local vec vector new 0 1 0 create a vector print vec magnitude vec call a method output 1 print vec x access a member variable output 0 here setmetatable tells lua to look for an element in the vector table if it is not present in the vec table vec magnitude which is equivalent to vec magnitude first looks in the vec table for the magnitude ele...
Thumbnail images (randomly selected): * Images may be subject to copyright.GREEN status (no comments)

The site also has references to the 2 subdomain(s)

  archive.org  Verify   help.archive.org  Verify


Top 50 hastags from of all verified websites.

Supplementary Information (add-on for SEO geeks)*- See more on header.verify-www.com

Header

HTTP/1.1 302 FOUND
Server nginx
Date Tue, 22 Sep 2026 01:48:16 GMT
Content-Type text/plain; charset=utf-8
Content-Length 0
Connection close
x-archive-redirect-reason found capture at 20221220172659
location htt???/web.archive.org/web/20221220172659/htt????/en.wikipedia.org/wiki/Lua_%28programming_language%29
server-timing captures_list;dur=0.704733, exclusion.robots;dur=0.058959, exclusion.robots.policy;dur=0.045372, esindex;dur=0.009141, cdx.remote;dur=26.777298, LoadShardBlock;dur=112.826796, PetaboxLoader3.datanode;dur=64.492755
x-app-server wwwb-app54-dc6
x-ts 302
x-tr 207
server-timing TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie wb-p-SERVER=wwwb-app54; path=/
X-location All
X-AS 16276
X-RL 0
X-NA 0
X-Page-Cache MISS
Server-Timing MISS
X-NID OVH SAS
Referrer-Policy no-referrer-when-downgrade
Permissions-Policy interest-cohort=()
X-sd 0
HTTP/1.1 200 OK
Server nginx
Date Tue, 22 Sep 2026 01:48:17 GMT
Content-Type text/html; charset=UTF-8
Transfer-Encoding chunked
Connection close
x-archive-orig-date Tue, 20 Dec 2022 15:59:05 GMT
x-archive-orig-server mw2311.codfw.wmnet
x-archive-orig-x-content-type-options nosniff
x-archive-orig-content-language en
x-archive-orig-vary Accept-Encoding,Cookie,Authorization
x-archive-orig-last-modified Tue, 20 Dec 2022 15:41:44 GMT
x-archive-orig-age 5274
x-archive-orig-x-cache cp2027 miss, cp2029 hit/1
x-archive-orig-x-cache-status hit-front
x-archive-orig-server-timing cache;desc= hit-front , host;desc= cp2029
x-archive-orig-strict-transport-security max-age=106384710; includeSubDomains; preload
x-archive-orig-report-to group : wm_nel , max_age : 86400, endpoints : [ url : htt????/intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error&schema_uri=/w3c/reportingapi/network_error/1.0.0 ]
x-archive-orig-nel report_to : wm_nel , max_age : 86400, failure_fraction : 0.05, success_fraction : 0.0
x-archive-orig-set-cookie WMF-Last-Access=20-Dec-2022;Path=/;HttpOnly;secure;Expires=Sat, 21 Jan 2023 12:00:00 GMT
x-archive-orig-set-cookie WMF-Last-Access-Global=20-Dec-2022;Path=/;Domain=.wikipedia.org;HttpOnly;secure;Expires=Sat, 21 Jan 2023 12:00:00 GMT
x-archive-orig-accept-ch Sec-CH-UA-Arch,Sec-CH-UA-Bitness,Sec-CH-UA-Full-Version-List,Sec-CH-UA-Model,Sec-CH-UA-Platform-Version
x-archive-orig-permissions-policy interest-cohort=(),ch-ua-arch=(self intake-analytics.wikimedia.org ),ch-ua-bitness=(self intake-analytics.wikimedia.org ),ch-ua-full-version-list=(self intake-analytics.wikimedia.org ),ch-ua-model=(self intake-analytics.wikimedia.org ),ch-ua-platform-version=(self intake-analytics.wikimedia.org )
x-archive-orig-x-client-ip 207.241.225.226
x-archive-orig-cache-control private, s-maxage=0, max-age=0, must-revalidate
x-archive-orig-set-cookie GeoIP=US:NM:Albuquerque:35.20:-106.64:v4; Path=/; secure; Domain=.wikipedia.org
x-archive-orig-accept-ranges bytes
x-archive-orig-content-length 48438
x-archive-guessed-content-type text/html
x-archive-guessed-charset utf-8
x-archive-orig-content-encoding gzip
memento-datetime Tue, 20 Dec 2022 17:26:59 GMT
link <htt????/en.wikipedia.org/wiki/Lua_%2528programming_language%2529>; rel= original , <htt???/web.archive.org/web/timemap/link/htt????/en.wikipedia.org/wiki/Lua_%2528programming_language%2529>; rel= timemap ; type= application/link-format , <htt???/web.archive.org/web/htt????/en.wikipedia.org/wiki/Lua_%2528programming_language%2529>; rel= timegate , <htt???/web.archive.org/web/20060913000000/htt???/en.wikipedia.org:80/wiki/Lua_(programming_language)>; rel= first memento ; datetime= Wed, 13 Sep 2006 00:00:00 GMT , <htt???/web.archive.org/web/20221218192238/htt????/en.wikipedia.org/wiki/Lua_(programming_language)>; rel= prev memento ; datetime= Sun, 18 Dec 2022 19:22:38 GMT , <htt???/web.archive.org/web/20221220172659/htt????/en.wikipedia.org/wiki/Lua_%2528programming_language%2529>; rel= memento ; datetime= Tue, 20 Dec 2022 17:26:59 GMT , <htt???/web.archive.org/web/20221220224721/htt???/en.wikipedia.org/wiki/Lua_%2528programming_language%2529>; rel= next memento ; datetime= Tue, 20 Dec 2022 22:47:21 GMT , <htt???/web.archive.org/web/20260910204758/htt????/en.wikipedia.org/wiki/Lua_(programming_language)>; rel= last memento ; datetime= Thu, 10 Sep 2026 20:47:58 GMT
content-security-policy default-src self unsafe-eval unsafe-inline data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src spn2-20221220180610/spn2-20221220165751-wwwb-spn07.us.archive.org-8003.warc.gz
server-timing captures_list;dur=0.466139, exclusion.robots;dur=0.034710, exclusion.robots.policy;dur=0.025034, esindex;dur=0.010447, cdx.remote;dur=6.480657, LoadShardBlock;dur=59.821110, PetaboxLoader3.datanode;dur=557.355798, load_resource;dur=911.655380, PetaboxLoader3.resolve;dur=394.539450, nav;dur=0.134905
x-app-server wwwb-app266-dc8
x-ts 200
x-tr 1165
server-timing TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie wb-p-SERVER=wwwb-app266; path=/
X-location All
X-AS 16276
X-RL 0
X-NA 0
X-Page-Cache MISS
Server-Timing MISS
X-NID OVH SAS
Referrer-Policy no-referrer-when-downgrade
Permissions-Policy interest-cohort=()
X-sd 0
Content-Encoding gzip

Meta Tags

title="Lua (programming language) - Wikipedia"
charset="UTF-8"
name="ResourceLoaderDynamicStyles" content=""
name="generator" content="MediaWiki 1.40.0-wmf.14"
name="referrer" content="origin"
name="referrer" content="origin-when-crossorigin"
name="referrer" content="origin-when-cross-origin"
name="robots" content="max-image-preview:standard"
name="format-detection" content="telephone=no"
property="og:image" content="htt???/web.archive.org/web/20221220172659im_/htt????/upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Lua-Logo.svg/1200px-Lua-Logo.svg.png"
property="og:image:width" content="1200"
property="og:image:height" content="1200"
property="og:image" content="htt???/web.archive.org/web/20221220172659im_/htt????/upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Lua-Logo.svg/800px-Lua-Logo.svg.png"
property="og:image:width" content="800"
property="og:image:height" content="800"
property="og:image" content="htt???/web.archive.org/web/20221220172659im_/htt????/upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Lua-Logo.svg/640px-Lua-Logo.svg.png"
property="og:image:width" content="640"
property="og:image:height" content="640"
name="viewport" content="width=1000"
property="og:title" content="Lua (programming language) - Wikipedia"
property="og:type" content="website"

Load Info

page size63255
load time (s)2.48515
redirect count1
speed download25454
server IP 207.241.237.3
* all occurrences of the string "http://" have been changed to "htt???/"