CINXE.COM

Lua (programming language) - Wikipedia

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Lua (programming language) - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"9e0955bc-772a-4a0a-8e7c-1287bdffa2b6","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Lua_(programming_language)","wgTitle":"Lua (programming language)","wgCurRevisionId":1275454518,"wgRevisionId":1275454518,"wgArticleId":46150,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["CS1 errors: periodical ignored","CS1 maint: bot: original URL status unknown","Articles with short description","Short description matches Wikidata","Use dmy dates from February 2021","All articles with unsourced statements","Articles with unsourced statements from November 2022","Articles containing Portuguese-language text","Pages with Portuguese IPA","All articles with dead external links","Articles with dead external links from June 2020", "Articles with permanently dead external links","Pages using Sister project links with hidden wikidata","Pages using Sister project links with default search","Webarchive template wayback links","Articles with example C code","Lua (programming language)","Brazilian inventions","Cross-platform free software","Cross-platform software","Dynamic programming languages","Dynamically typed programming languages","Embedded systems","Free and open source interpreters","Free computer libraries","Free software programmed in C","Object-oriented programming languages","Pontifical Catholic University of Rio de Janeiro","Programming languages","Programming languages created in 1993","Prototype-based programming languages","Register-based virtual machines","Scripting languages","Software using the MIT license"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Lua_(programming_language)","wgRelevantArticleId":46150,"wgIsProbablyEditable":true, "wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":50000,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q207316","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false, "wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","ext.pygments.view","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups", "ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.cite.styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.16"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Lua-Logo.svg/1200px-Lua-Logo.svg.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="1200"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Lua-Logo.svg/800px-Lua-Logo.svg.png"> <meta property="og:image:width" content="800"> <meta property="og:image:height" content="800"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Lua-Logo.svg/640px-Lua-Logo.svg.png"> <meta property="og:image:width" content="640"> <meta property="og:image:height" content="640"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Lua (programming language) - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/Lua_(programming_language)"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=Lua_(programming_language)&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/Lua_(programming_language)"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Lua_programming_language rootpage-Lua_programming_language skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" title="Main menu" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li><li id="n-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages"><span>Special pages</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=en.wikipedia.org&amp;uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=Lua+%28programming+language%29" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=Lua+%28programming+language%29" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?wmf_source=donate&amp;wmf_medium=sidebar&amp;wmf_campaign=en.wikipedia.org&amp;uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Lua+%28programming+language%29" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Lua+%28programming+language%29" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-History" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#History"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>History</span> </div> </a> <ul id="toc-History-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Features" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Features"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Features</span> </div> </a> <button aria-controls="toc-Features-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Features subsection</span> </button> <ul id="toc-Features-sublist" class="vector-toc-list"> <li id="toc-Syntax" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Syntax"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Syntax</span> </div> </a> <ul id="toc-Syntax-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Control_flow" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Control_flow"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>Control flow</span> </div> </a> <ul id="toc-Control_flow-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Functions" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Functions"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>Functions</span> </div> </a> <ul id="toc-Functions-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Tables" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Tables"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4</span> <span>Tables</span> </div> </a> <ul id="toc-Tables-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Metatables" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Metatables"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.5</span> <span>Metatables</span> </div> </a> <ul id="toc-Metatables-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Object-oriented_programming" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Object-oriented_programming"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.6</span> <span>Object-oriented programming</span> </div> </a> <ul id="toc-Object-oriented_programming-sublist" class="vector-toc-list"> <li id="toc-Inheritance" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Inheritance"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.6.1</span> <span>Inheritance</span> </div> </a> <ul id="toc-Inheritance-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-Implementation" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Implementation"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Implementation</span> </div> </a> <ul id="toc-Implementation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-C_API" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#C_API"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>C API</span> </div> </a> <button aria-controls="toc-C_API-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle C API subsection</span> </button> <ul id="toc-C_API-sublist" class="vector-toc-list"> <li id="toc-Modules" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Modules"> <div class="vector-toc-text"> <span class="vector-toc-numb">4.1</span> <span>Modules</span> </div> </a> <ul id="toc-Modules-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Applications" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Applications"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Applications</span> </div> </a> <ul id="toc-Applications-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Derived_languages" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Derived_languages"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Derived languages</span> </div> </a> <button aria-controls="toc-Derived_languages-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Derived languages subsection</span> </button> <ul id="toc-Derived_languages-sublist" class="vector-toc-list"> <li id="toc-Languages_that_compile_to_Lua" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Languages_that_compile_to_Lua"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.1</span> <span>Languages that compile to Lua</span> </div> </a> <ul id="toc-Languages_that_compile_to_Lua-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Dialects" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Dialects"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.2</span> <span>Dialects</span> </div> </a> <ul id="toc-Dialects-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Notes" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Notes"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>Notes</span> </div> </a> <ul id="toc-Notes-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-References" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#References"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>References</span> </div> </a> <ul id="toc-References-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Further_reading" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Further_reading"> <div class="vector-toc-text"> <span class="vector-toc-numb">10</span> <span>Further reading</span> </div> </a> <ul id="toc-Further_reading-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-External_links" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#External_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">11</span> <span>External links</span> </div> </a> <ul id="toc-External_links-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" title="Table of Contents" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Lua (programming language)</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 72 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-72" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">72 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D9%84%D9%88%D8%A7_(%D9%84%D8%BA%D8%A9_%D8%A8%D8%B1%D9%85%D8%AC%D8%A9)" title="لوا (لغة برمجة) – Arabic" lang="ar" hreflang="ar" data-title="لوا (لغة برمجة)" data-language-autonym="العربية" data-language-local-name="Arabic" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-az mw-list-item"><a href="https://az.wikipedia.org/wiki/Lua" title="Lua – Azerbaijani" lang="az" hreflang="az" data-title="Lua" data-language-autonym="Azərbaycanca" data-language-local-name="Azerbaijani" class="interlanguage-link-target"><span>Azərbaycanca</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikipedia.org/wiki/%E0%A6%B2%E0%A7%81%E0%A6%AF%E0%A6%BC%E0%A6%BE_(%E0%A6%AA%E0%A7%8D%E0%A6%B0%E0%A7%8B%E0%A6%97%E0%A7%8D%E0%A6%B0%E0%A6%BE%E0%A6%AE%E0%A6%BF%E0%A6%82_%E0%A6%AD%E0%A6%BE%E0%A6%B7%E0%A6%BE)" title="লুয়া (প্রোগ্রামিং ভাষা) – Bangla" lang="bn" hreflang="bn" data-title="লুয়া (প্রোগ্রামিং ভাষা)" data-language-autonym="বাংলা" data-language-local-name="Bangla" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-zh-min-nan mw-list-item"><a href="https://zh-min-nan.wikipedia.org/wiki/Lua" title="Lua – Minnan" lang="nan" hreflang="nan" data-title="Lua" data-language-autonym="閩南語 / Bân-lâm-gú" data-language-local-name="Minnan" class="interlanguage-link-target"><span>閩南語 / Bân-lâm-gú</span></a></li><li class="interlanguage-link interwiki-be mw-list-item"><a href="https://be.wikipedia.org/wiki/Lua_(%D0%BC%D0%BE%D0%B2%D0%B0_%D0%BF%D1%80%D0%B0%D0%B3%D1%80%D0%B0%D0%BC%D0%B0%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F)" title="Lua (мова праграмавання) – Belarusian" lang="be" hreflang="be" data-title="Lua (мова праграмавання)" data-language-autonym="Беларуская" data-language-local-name="Belarusian" class="interlanguage-link-target"><span>Беларуская</span></a></li><li class="interlanguage-link interwiki-be-x-old mw-list-item"><a href="https://be-tarask.wikipedia.org/wiki/Lua" title="Lua – Belarusian (Taraškievica orthography)" lang="be-tarask" hreflang="be-tarask" data-title="Lua" data-language-autonym="Беларуская (тарашкевіца)" data-language-local-name="Belarusian (Taraškievica orthography)" class="interlanguage-link-target"><span>Беларуская (тарашкевіца)</span></a></li><li class="interlanguage-link interwiki-bg mw-list-item"><a href="https://bg.wikipedia.org/wiki/Lua" title="Lua – Bulgarian" lang="bg" hreflang="bg" data-title="Lua" data-language-autonym="Български" data-language-local-name="Bulgarian" class="interlanguage-link-target"><span>Български</span></a></li><li class="interlanguage-link interwiki-bs mw-list-item"><a href="https://bs.wikipedia.org/wiki/Lua_(programski_jezik)" title="Lua (programski jezik) – Bosnian" lang="bs" hreflang="bs" data-title="Lua (programski jezik)" data-language-autonym="Bosanski" data-language-local-name="Bosnian" class="interlanguage-link-target"><span>Bosanski</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Lua" title="Lua – Catalan" lang="ca" hreflang="ca" data-title="Lua" data-language-autonym="Català" data-language-local-name="Catalan" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/Lua" title="Lua – Czech" lang="cs" hreflang="cs" data-title="Lua" data-language-autonym="Čeština" data-language-local-name="Czech" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/Lua_(programmeringssprog)" title="Lua (programmeringssprog) – Danish" lang="da" hreflang="da" data-title="Lua (programmeringssprog)" data-language-autonym="Dansk" data-language-local-name="Danish" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Lua" title="Lua – German" lang="de" hreflang="de" data-title="Lua" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-et mw-list-item"><a href="https://et.wikipedia.org/wiki/Lua" title="Lua – Estonian" lang="et" hreflang="et" data-title="Lua" data-language-autonym="Eesti" data-language-local-name="Estonian" class="interlanguage-link-target"><span>Eesti</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/Lua" title="Lua – Greek" lang="el" hreflang="el" data-title="Lua" data-language-autonym="Ελληνικά" data-language-local-name="Greek" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/Lua" title="Lua – Spanish" lang="es" hreflang="es" data-title="Lua" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-eo mw-list-item"><a href="https://eo.wikipedia.org/wiki/Lua" title="Lua – Esperanto" lang="eo" hreflang="eo" data-title="Lua" data-language-autonym="Esperanto" data-language-local-name="Esperanto" class="interlanguage-link-target"><span>Esperanto</span></a></li><li class="interlanguage-link interwiki-eu mw-list-item"><a href="https://eu.wikipedia.org/wiki/Lua_(programazio_lengoaia)" title="Lua (programazio lengoaia) – Basque" lang="eu" hreflang="eu" data-title="Lua (programazio lengoaia)" data-language-autonym="Euskara" data-language-local-name="Basque" class="interlanguage-link-target"><span>Euskara</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D9%84%D9%88%D8%A2" title="لوآ – Persian" lang="fa" hreflang="fa" data-title="لوآ" data-language-autonym="فارسی" data-language-local-name="Persian" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Lua" title="Lua – French" lang="fr" hreflang="fr" data-title="Lua" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-gl mw-list-item"><a href="https://gl.wikipedia.org/wiki/Lua_(linguaxe_de_programaci%C3%B3n)" title="Lua (linguaxe de programación) – Galician" lang="gl" hreflang="gl" data-title="Lua (linguaxe de programación)" data-language-autonym="Galego" data-language-local-name="Galician" class="interlanguage-link-target"><span>Galego</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/%EB%A3%A8%EC%95%84_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4)" title="루아 (프로그래밍 언어) – Korean" lang="ko" hreflang="ko" data-title="루아 (프로그래밍 언어)" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-hy mw-list-item"><a href="https://hy.wikipedia.org/wiki/Lua_(%D5%AE%D6%80%D5%A1%D5%A3%D6%80%D5%A1%D5%BE%D5%B8%D6%80%D5%B4%D5%A1%D5%B6_%D5%AC%D5%A5%D5%A6%D5%B8%D6%82)" title="Lua (ծրագրավորման լեզու) – Armenian" lang="hy" hreflang="hy" data-title="Lua (ծրագրավորման լեզու)" data-language-autonym="Հայերեն" data-language-local-name="Armenian" class="interlanguage-link-target"><span>Հայերեն</span></a></li><li class="interlanguage-link interwiki-hi mw-list-item"><a href="https://hi.wikipedia.org/wiki/%E0%A4%B2%E0%A5%81%E0%A4%86_(%E0%A4%AA%E0%A5%8D%E0%A4%B0%E0%A5%8B%E0%A4%97%E0%A5%8D%E0%A4%B0%E0%A4%BE%E0%A4%AE%E0%A4%A8_%E0%A4%AD%E0%A4%BE%E0%A4%B7%E0%A4%BE)" title="लुआ (प्रोग्रामन भाषा) – Hindi" lang="hi" hreflang="hi" data-title="लुआ (प्रोग्रामन भाषा)" data-language-autonym="हिन्दी" data-language-local-name="Hindi" class="interlanguage-link-target"><span>हिन्दी</span></a></li><li class="interlanguage-link interwiki-hr mw-list-item"><a href="https://hr.wikipedia.org/wiki/Lua" title="Lua – Croatian" lang="hr" hreflang="hr" data-title="Lua" data-language-autonym="Hrvatski" data-language-local-name="Croatian" class="interlanguage-link-target"><span>Hrvatski</span></a></li><li class="interlanguage-link interwiki-io mw-list-item"><a href="https://io.wikipedia.org/wiki/Lua_(programifo-linguo)" title="Lua (programifo-linguo) – Ido" lang="io" hreflang="io" data-title="Lua (programifo-linguo)" data-language-autonym="Ido" data-language-local-name="Ido" class="interlanguage-link-target"><span>Ido</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/Lua_(bahasa_pemrograman)" title="Lua (bahasa pemrograman) – Indonesian" lang="id" hreflang="id" data-title="Lua (bahasa pemrograman)" data-language-autonym="Bahasa Indonesia" data-language-local-name="Indonesian" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-ia mw-list-item"><a href="https://ia.wikipedia.org/wiki/Lua_(linguage_de_programmation)" title="Lua (linguage de programmation) – Interlingua" lang="ia" hreflang="ia" data-title="Lua (linguage de programmation)" data-language-autonym="Interlingua" data-language-local-name="Interlingua" class="interlanguage-link-target"><span>Interlingua</span></a></li><li class="interlanguage-link interwiki-is mw-list-item"><a href="https://is.wikipedia.org/wiki/Lua_(forritunarm%C3%A1l)" title="Lua (forritunarmál) – Icelandic" lang="is" hreflang="is" data-title="Lua (forritunarmál)" data-language-autonym="Íslenska" data-language-local-name="Icelandic" class="interlanguage-link-target"><span>Íslenska</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/Lua" title="Lua – Italian" lang="it" hreflang="it" data-title="Lua" data-language-autonym="Italiano" data-language-local-name="Italian" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/%D7%9C%D7%95%D7%90%D7%94_(%D7%A9%D7%A4%D7%AA_%D7%AA%D7%9B%D7%A0%D7%95%D7%AA)" title="לואה (שפת תכנות) – Hebrew" lang="he" hreflang="he" data-title="לואה (שפת תכנות)" data-language-autonym="עברית" data-language-local-name="Hebrew" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-ka mw-list-item"><a href="https://ka.wikipedia.org/wiki/%E1%83%9A%E1%83%A3%E1%83%90" title="ლუა – Georgian" lang="ka" hreflang="ka" data-title="ლუა" data-language-autonym="ქართული" data-language-local-name="Georgian" class="interlanguage-link-target"><span>ქართული</span></a></li><li class="interlanguage-link interwiki-sw mw-list-item"><a href="https://sw.wikipedia.org/wiki/Lua" title="Lua – Swahili" lang="sw" hreflang="sw" data-title="Lua" data-language-autonym="Kiswahili" data-language-local-name="Swahili" class="interlanguage-link-target"><span>Kiswahili</span></a></li><li class="interlanguage-link interwiki-lo mw-list-item"><a href="https://lo.wikipedia.org/wiki/%E0%BA%9E%E0%BA%B2%E0%BA%AA%E0%BA%B2%E0%BA%A5%E0%BA%A7%E0%BA%B2_(%E0%BA%9E%E0%BA%B2%E0%BA%AA%E0%BA%B2%E0%BB%82%E0%BA%9B%E0%BA%A3%E0%BB%81%E0%BA%81%E0%BA%A3%E0%BA%A1%E0%BA%84%E0%BA%AD%E0%BA%A1%E0%BA%9E%E0%BA%B4%E0%BA%A7%E0%BB%80%E0%BA%95%E0%BA%B5)" title="ພາສາລວາ (ພາສາໂປຣແກຣມຄອມພິວເຕີ) – Lao" lang="lo" hreflang="lo" data-title="ພາສາລວາ (ພາສາໂປຣແກຣມຄອມພິວເຕີ)" data-language-autonym="ລາວ" data-language-local-name="Lao" class="interlanguage-link-target"><span>ລາວ</span></a></li><li class="interlanguage-link interwiki-la mw-list-item"><a href="https://la.wikipedia.org/wiki/Lua_(lingua_programmandi)" title="Lua (lingua programmandi) – Latin" lang="la" hreflang="la" data-title="Lua (lingua programmandi)" data-language-autonym="Latina" data-language-local-name="Latin" class="interlanguage-link-target"><span>Latina</span></a></li><li class="interlanguage-link interwiki-lv mw-list-item"><a href="https://lv.wikipedia.org/wiki/Lua" title="Lua – Latvian" lang="lv" hreflang="lv" data-title="Lua" data-language-autonym="Latviešu" data-language-local-name="Latvian" class="interlanguage-link-target"><span>Latviešu</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikipedia.org/wiki/Lua_(programoz%C3%A1si_nyelv)" title="Lua (programozási nyelv) – Hungarian" lang="hu" hreflang="hu" data-title="Lua (programozási nyelv)" data-language-autonym="Magyar" data-language-local-name="Hungarian" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikipedia.org/wiki/%E0%B4%B2%E0%B5%82%E0%B4%85_(%E0%B4%AA%E0%B5%8D%E0%B4%B0%E0%B5%8B%E0%B4%97%E0%B5%8D%E0%B4%B0%E0%B4%BE%E0%B4%AE%E0%B4%BF%E0%B4%82%E0%B4%97%E0%B5%8D_%E0%B4%AD%E0%B4%BE%E0%B4%B7)" title="ലൂഅ (പ്രോഗ്രാമിംഗ് ഭാഷ) – Malayalam" lang="ml" hreflang="ml" data-title="ലൂഅ (പ്രോഗ്രാമിംഗ് ഭാഷ)" data-language-autonym="മലയാളം" data-language-local-name="Malayalam" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-ms mw-list-item"><a href="https://ms.wikipedia.org/wiki/Lua_(bahasa_pengaturcaraan)" title="Lua (bahasa pengaturcaraan) – Malay" lang="ms" hreflang="ms" data-title="Lua (bahasa pengaturcaraan)" data-language-autonym="Bahasa Melayu" data-language-local-name="Malay" class="interlanguage-link-target"><span>Bahasa Melayu</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/Lua_(programmeertaal)" title="Lua (programmeertaal) – Dutch" lang="nl" hreflang="nl" data-title="Lua (programmeertaal)" data-language-autonym="Nederlands" data-language-local-name="Dutch" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/Lua" title="Lua – Japanese" lang="ja" hreflang="ja" data-title="Lua" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/Lua" title="Lua – Norwegian Bokmål" lang="nb" hreflang="nb" data-title="Lua" data-language-autonym="Norsk bokmål" data-language-local-name="Norwegian Bokmål" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-or mw-list-item"><a href="https://or.wikipedia.org/wiki/%E0%AC%B2%E0%AD%81%E0%AC%86_(%E0%AC%AA%E0%AD%8D%E0%AC%B0%E0%AD%8B%E0%AC%97%E0%AD%8D%E0%AC%B0%E0%AC%BE%E0%AC%AE%E0%AC%BF%E0%AC%82_%E0%AC%AD%E0%AC%BE%E0%AC%B7%E0%AC%BE)" title="ଲୁଆ (ପ୍ରୋଗ୍ରାମିଂ ଭାଷା) – Odia" lang="or" hreflang="or" data-title="ଲୁଆ (ପ୍ରୋଗ୍ରାମିଂ ଭାଷା)" data-language-autonym="ଓଡ଼ିଆ" data-language-local-name="Odia" class="interlanguage-link-target"><span>ଓଡ଼ିଆ</span></a></li><li class="interlanguage-link interwiki-pa mw-list-item"><a href="https://pa.wikipedia.org/wiki/%E0%A8%B2%E0%A9%82%E0%A8%86_(%E0%A8%AA%E0%A9%8D%E0%A8%B0%E0%A9%8B%E0%A8%97%E0%A8%B0%E0%A8%BE%E0%A8%AE%E0%A8%BF%E0%A9%B0%E0%A8%97_%E0%A8%AD%E0%A8%BE%E0%A8%B8%E0%A8%BC%E0%A8%BE)" title="ਲੂਆ (ਪ੍ਰੋਗਰਾਮਿੰਗ ਭਾਸ਼ਾ) – Punjabi" lang="pa" hreflang="pa" data-title="ਲੂਆ (ਪ੍ਰੋਗਰਾਮਿੰਗ ਭਾਸ਼ਾ)" data-language-autonym="ਪੰਜਾਬੀ" data-language-local-name="Punjabi" class="interlanguage-link-target"><span>ਪੰਜਾਬੀ</span></a></li><li class="interlanguage-link interwiki-pnb mw-list-item"><a href="https://pnb.wikipedia.org/wiki/%D9%84%D9%88%D8%A7_(%D9%BE%D8%B1%D9%88%DA%AF%D8%B1%D8%A7%D9%85%D9%86%DA%AF_%D8%B2%D8%A8%D8%A7%D9%86)" title="لوا (پروگرامنگ زبان) – Western Punjabi" lang="pnb" hreflang="pnb" data-title="لوا (پروگرامنگ زبان)" data-language-autonym="پنجابی" data-language-local-name="Western Punjabi" class="interlanguage-link-target"><span>پنجابی</span></a></li><li class="interlanguage-link interwiki-km mw-list-item"><a href="https://km.wikipedia.org/wiki/%E1%9E%97%E1%9E%B6%E1%9E%9F%E1%9E%B6%E1%9E%80%E1%9E%98%E1%9F%92%E1%9E%98%E1%9E%9C%E1%9E%B7%E1%9E%92%E1%9E%B8_Lua" title="ភាសាកម្មវិធី Lua – Khmer" lang="km" hreflang="km" data-title="ភាសាកម្មវិធី Lua" data-language-autonym="ភាសាខ្មែរ" data-language-local-name="Khmer" class="interlanguage-link-target"><span>ភាសាខ្មែរ</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/Lua" title="Lua – Polish" lang="pl" hreflang="pl" data-title="Lua" data-language-autonym="Polski" data-language-local-name="Polish" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/Lua_(linguagem_de_programa%C3%A7%C3%A3o)" title="Lua (linguagem de programação) – Portuguese" lang="pt" hreflang="pt" data-title="Lua (linguagem de programação)" data-language-autonym="Português" data-language-local-name="Portuguese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ro mw-list-item"><a href="https://ro.wikipedia.org/wiki/Lua_(limbaj_de_programare)" title="Lua (limbaj de programare) – Romanian" lang="ro" hreflang="ro" data-title="Lua (limbaj de programare)" data-language-autonym="Română" data-language-local-name="Romanian" class="interlanguage-link-target"><span>Română</span></a></li><li class="interlanguage-link interwiki-qu mw-list-item"><a href="https://qu.wikipedia.org/wiki/Lua_(wakichiy_simi)" title="Lua (wakichiy simi) – Quechua" lang="qu" hreflang="qu" data-title="Lua (wakichiy simi)" data-language-autonym="Runa Simi" data-language-local-name="Quechua" class="interlanguage-link-target"><span>Runa Simi</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/Lua" title="Lua – Russian" lang="ru" hreflang="ru" data-title="Lua" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-sq mw-list-item"><a href="https://sq.wikipedia.org/wiki/Lua" title="Lua – Albanian" lang="sq" hreflang="sq" data-title="Lua" data-language-autonym="Shqip" data-language-local-name="Albanian" class="interlanguage-link-target"><span>Shqip</span></a></li><li class="interlanguage-link interwiki-si mw-list-item"><a href="https://si.wikipedia.org/wiki/%E0%B6%BD%E0%B7%94%E0%B7%80%E0%B7%8F_(%E0%B6%9A%E0%B7%8A%E2%80%8D%E0%B6%BB%E0%B6%B8%E0%B6%BD%E0%B7%9A%E0%B6%9B%E0%B6%B1_%E0%B6%B7%E0%B7%8F%E0%B7%82%E0%B7%8F%E0%B7%80)" title="ලුවා (ක්‍රමලේඛන භාෂාව) – Sinhala" lang="si" hreflang="si" data-title="ලුවා (ක්‍රමලේඛන භාෂාව)" data-language-autonym="සිංහල" data-language-local-name="Sinhala" class="interlanguage-link-target"><span>සිංහල</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/Lua" title="Lua – Simple English" lang="en-simple" hreflang="en-simple" data-title="Lua" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-sk mw-list-item"><a href="https://sk.wikipedia.org/wiki/Lua" title="Lua – Slovak" lang="sk" hreflang="sk" data-title="Lua" data-language-autonym="Slovenčina" data-language-local-name="Slovak" class="interlanguage-link-target"><span>Slovenčina</span></a></li><li class="interlanguage-link interwiki-sl mw-list-item"><a href="https://sl.wikipedia.org/wiki/Lua_(programski_jezik)" title="Lua (programski jezik) – Slovenian" lang="sl" hreflang="sl" data-title="Lua (programski jezik)" data-language-autonym="Slovenščina" data-language-local-name="Slovenian" class="interlanguage-link-target"><span>Slovenščina</span></a></li><li class="interlanguage-link interwiki-so mw-list-item"><a href="https://so.wikipedia.org/wiki/Lua" title="Lua – Somali" lang="so" hreflang="so" data-title="Lua" data-language-autonym="Soomaaliga" data-language-local-name="Somali" class="interlanguage-link-target"><span>Soomaaliga</span></a></li><li class="interlanguage-link interwiki-ckb mw-list-item"><a href="https://ckb.wikipedia.org/wiki/%D9%84%D9%88%D8%A7_(%D8%B2%D9%85%D8%A7%D9%86%DB%8C_%D9%BE%D8%B1%DB%86%DA%AF%D8%B1%D8%A7%D9%85%D8%B3%D8%A7%D8%B2%DB%8C)" title="لوا (زمانی پرۆگرامسازی) – Central Kurdish" lang="ckb" hreflang="ckb" data-title="لوا (زمانی پرۆگرامسازی)" data-language-autonym="کوردی" data-language-local-name="Central Kurdish" class="interlanguage-link-target"><span>کوردی</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/Lua_(programski_jezik)" title="Lua (programski jezik) – Serbian" lang="sr" hreflang="sr" data-title="Lua (programski jezik)" data-language-autonym="Српски / srpski" data-language-local-name="Serbian" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/Lua" title="Lua – Finnish" lang="fi" hreflang="fi" data-title="Lua" data-language-autonym="Suomi" data-language-local-name="Finnish" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-sv mw-list-item"><a href="https://sv.wikipedia.org/wiki/Lua" title="Lua – Swedish" lang="sv" hreflang="sv" data-title="Lua" data-language-autonym="Svenska" data-language-local-name="Swedish" class="interlanguage-link-target"><span>Svenska</span></a></li><li class="interlanguage-link interwiki-ta mw-list-item"><a href="https://ta.wikipedia.org/wiki/%E0%AE%B2%E0%AF%82%E0%AE%B5%E0%AE%BE" title="லூவா – Tamil" lang="ta" hreflang="ta" data-title="லூவா" data-language-autonym="தமிழ்" data-language-local-name="Tamil" class="interlanguage-link-target"><span>தமிழ்</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%E0%B8%A5%E0%B8%B9%E0%B8%AD%E0%B8%B2" title="ภาษาลูอา – Thai" lang="th" hreflang="th" data-title="ภาษาลูอา" data-language-autonym="ไทย" data-language-local-name="Thai" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-tg mw-list-item"><a href="https://tg.wikipedia.org/wiki/Lua" title="Lua – Tajik" lang="tg" hreflang="tg" data-title="Lua" data-language-autonym="Тоҷикӣ" data-language-local-name="Tajik" class="interlanguage-link-target"><span>Тоҷикӣ</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/Lua" title="Lua – Turkish" lang="tr" hreflang="tr" data-title="Lua" data-language-autonym="Türkçe" data-language-local-name="Turkish" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-udm mw-list-item"><a href="https://udm.wikipedia.org/wiki/Lua" title="Lua – Udmurt" lang="udm" hreflang="udm" data-title="Lua" data-language-autonym="Удмурт" data-language-local-name="Udmurt" class="interlanguage-link-target"><span>Удмурт</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/Lua" title="Lua – Ukrainian" lang="uk" hreflang="uk" data-title="Lua" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-ur mw-list-item"><a href="https://ur.wikipedia.org/wiki/%D9%84%D9%88%D8%A7_(%D9%BE%D8%B1%D9%88%DA%AF%D8%B1%D8%A7%D9%85%D9%86%DA%AF_%D8%B2%D8%A8%D8%A7%D9%86)" title="لوا (پروگرامنگ زبان) – Urdu" lang="ur" hreflang="ur" data-title="لوا (پروگرامنگ زبان)" data-language-autonym="اردو" data-language-local-name="Urdu" class="interlanguage-link-target"><span>اردو</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/Lua" title="Lua – Vietnamese" lang="vi" hreflang="vi" data-title="Lua" data-language-autonym="Tiếng Việt" data-language-local-name="Vietnamese" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-wuu mw-list-item"><a href="https://wuu.wikipedia.org/wiki/Lua" title="Lua – Wu" lang="wuu" hreflang="wuu" data-title="Lua" data-language-autonym="吴语" data-language-local-name="Wu" class="interlanguage-link-target"><span>吴语</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/Lua" title="Lua – Cantonese" lang="yue" hreflang="yue" data-title="Lua" data-language-autonym="粵語" data-language-local-name="Cantonese" class="interlanguage-link-target"><span>粵語</span></a></li><li class="interlanguage-link interwiki-diq mw-list-item"><a href="https://diq.wikipedia.org/wiki/Lua" title="Lua – Dimli" lang="diq" hreflang="diq" data-title="Lua" data-language-autonym="Zazaki" data-language-local-name="Dimli" class="interlanguage-link-target"><span>Zazaki</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/Lua" title="Lua – Chinese" lang="zh" hreflang="zh" data-title="Lua" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q207316#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Lua_(programming_language)" title="View the content page [c]" accesskey="c"><span>Article</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:Lua_(programming_language)" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Lua_(programming_language)"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Lua_(programming_language)&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Lua_(programming_language)"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Lua_(programming_language)&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Lua_(programming_language)" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Lua_(programming_language)" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Lua_(programming_language)&amp;oldid=1275454518" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Lua_(programming_language)&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&amp;page=Lua_%28programming_language%29&amp;id=1275454518&amp;wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FLua_%28programming_language%29"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FLua_%28programming_language%29"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=Lua_%28programming_language%29&amp;action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Lua_(programming_language)&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Category:Lua_(programming_language)" hreflang="en"><span>Wikimedia Commons</span></a></li><li class="wb-otherproject-link wb-otherproject-mediawiki mw-list-item"><a href="https://www.mediawiki.org/wiki/Lua" hreflang="en"><span>MediaWiki</span></a></li><li class="wb-otherproject-link wb-otherproject-meta mw-list-item"><a href="https://meta.wikimedia.org/wiki/Lua" hreflang="en"><span>Meta-Wiki</span></a></li><li class="wb-otherproject-link wb-otherproject-wikibooks mw-list-item"><a href="https://en.wikibooks.org/wiki/Lua_Programming" hreflang="en"><span>Wikibooks</span></a></li><li class="wb-otherproject-link wb-otherproject-wikifunctions mw-list-item"><a href="https://www.wikifunctions.org/wiki/Z620" hreflang="en"><span>Wikifunctions</span></a></li><li class="wb-otherproject-link wb-otherproject-wikiversity mw-list-item"><a href="https://en.wikiversity.org/wiki/Lua" hreflang="en"><span>Wikiversity</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q207316" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">Lightweight programming language</div> <p class="mw-empty-elt"> </p> <style data-mw-deduplicate="TemplateStyles:r1257001546">.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme) div:not(.notheme){background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table tr{display:table-row!important}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}</style><table class="infobox vevent"><caption class="infobox-title summary">Lua</caption><tbody><tr><td colspan="2" class="infobox-image"><span typeof="mw:File"><a href="/wiki/File:Lua-Logo.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Lua-Logo.svg/121px-Lua-Logo.svg.png" decoding="async" width="121" height="121" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Lua-Logo.svg/182px-Lua-Logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Lua-Logo.svg/242px-Lua-Logo.svg.png 2x" data-file-width="947" data-file-height="947" /></a></span></td></tr><tr><td colspan="2" class="infobox-image"><span typeof="mw:File"><a href="/wiki/File:Excerpt_of_Coordinates_module_in_Lua.png" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/d/d1/Excerpt_of_Coordinates_module_in_Lua.png/300px-Excerpt_of_Coordinates_module_in_Lua.png" decoding="async" width="300" height="166" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/d1/Excerpt_of_Coordinates_module_in_Lua.png/450px-Excerpt_of_Coordinates_module_in_Lua.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/d/d1/Excerpt_of_Coordinates_module_in_Lua.png/600px-Excerpt_of_Coordinates_module_in_Lua.png 2x" data-file-width="640" data-file-height="354" /></a></span><div class="infobox-caption">Screenshot of Lua code from a <a href="/wiki/Wikipedia:Lua" title="Wikipedia:Lua">Wikipedia Lua module</a> using the <a href="/wiki/MediaWiki" title="MediaWiki">MediaWiki</a> <a href="https://www.mediawiki.org/wiki/Extension:Scribunto" class="extiw" title="mw:Extension:Scribunto">Scribunto</a> extension</div></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Programming_paradigm" title="Programming paradigm">Paradigm</a></th><td class="infobox-data"><a href="/wiki/Multi-paradigm" class="mw-redirect" title="Multi-paradigm">Multi-paradigm</a>: <a href="/wiki/Scripting_language" title="Scripting language">scripting</a>, <a href="/wiki/Imperative_programming" title="Imperative programming">imperative</a> (<a href="/wiki/Procedural_programming" title="Procedural programming">procedural</a>, <a href="/wiki/Prototype-based_programming" title="Prototype-based programming">prototype-based</a>, <a href="/wiki/Object-oriented_programming" title="Object-oriented programming">object-oriented</a>), <a href="/wiki/Functional_programming" title="Functional programming">functional</a>, <a href="/wiki/Metaprogramming" title="Metaprogramming">meta</a>, <a href="/wiki/Reflective_programming" title="Reflective programming">reflective</a></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Software_design" title="Software design">Designed&#160;by</a></th><td class="infobox-data"><a href="/wiki/Roberto_Ierusalimschy" title="Roberto Ierusalimschy">Roberto Ierusalimschy</a><br />Waldemar Celes<br />Luiz Henrique de Figueiredo</td></tr><tr><th scope="row" class="infobox-label">First&#160;appeared</th><td class="infobox-data">1993<span class="noprint">&#59;&#32;32&#160;years ago</span><span style="display:none">&#160;(<span class="bday dtstart published updated">1993</span>)</span></td></tr><tr><td colspan="2" class="infobox-full-data"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1257001546"></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="/wiki/Software_release_life_cycle" title="Software release life cycle">Stable release</a></th><td class="infobox-data"><div style="margin:0px;">5.4.7<sup id="cite_ref-wikidata-a856f141bd953b6aacf5a1724577abc3018cbce1-v18_1-0" class="reference"><a href="#cite_note-wikidata-a856f141bd953b6aacf5a1724577abc3018cbce1-v18-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup>&#160;<span class="mw-valign-text-top" typeof="mw:File/Frameless"><a href="https://www.wikidata.org/wiki/Q207316?uselang=en#P348" title="Edit this on Wikidata"><img alt="Edit this on Wikidata" src="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/10px-OOjs_UI_icon_edit-ltr-progressive.svg.png" decoding="async" width="10" height="10" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/15px-OOjs_UI_icon_edit-ltr-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/20px-OOjs_UI_icon_edit-ltr-progressive.svg.png 2x" data-file-width="20" data-file-height="20" /></a></span> / 25 June 2024<span class="noprint">&#59;&#32;7 months ago</span><span style="display:none">&#160;(<span class="bday dtstart published updated">25 June 2024</span>)</span></div></td></tr><tr style="display:none"><td colspan="2"> </td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Type_system" title="Type system">Typing discipline</a></th><td class="infobox-data"><a href="/wiki/Dynamic_typing" class="mw-redirect" title="Dynamic typing">Dynamic</a>, <a href="/wiki/Strong_and_weak_typing" title="Strong and weak typing">strong</a>, <a href="/wiki/Duck_typing" title="Duck typing">duck</a></td></tr><tr><th scope="row" class="infobox-label">Implementation language</th><td class="infobox-data"><a href="/wiki/ANSI_C" title="ANSI C">ANSI C</a></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Operating_system" title="Operating system">OS</a></th><td class="infobox-data"><a href="/wiki/Cross-platform_software" title="Cross-platform software">Cross-platform</a></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Software_license" title="Software license">License</a></th><td class="infobox-data"><a href="/wiki/MIT_License" title="MIT License">MIT</a></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Filename_extension" title="Filename extension">Filename extensions</a></th><td class="infobox-data"><code>.lua</code></td></tr><tr><th scope="row" class="infobox-label">Website</th><td class="infobox-data"><span class="url"><a rel="nofollow" class="external text" href="https://lua.org">lua<wbr />.org</a></span> <span class="mw-valign-text-top noprint" typeof="mw:File/Frameless"><a href="https://www.wikidata.org/wiki/Q207316#P856" title="Edit this at Wikidata"><img alt="Edit this at Wikidata" src="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/10px-OOjs_UI_icon_edit-ltr-progressive.svg.png" decoding="async" width="10" height="10" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/15px-OOjs_UI_icon_edit-ltr-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/20px-OOjs_UI_icon_edit-ltr-progressive.svg.png 2x" data-file-width="20" data-file-height="20" /></a></span></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #eee;">Major <a href="/wiki/Programming_language_implementation" title="Programming language implementation">implementations</a></th></tr><tr><td colspan="2" class="infobox-full-data"><a rel="nofollow" class="external text" href="//www.lua.org/download.html">Lua</a>, <a href="/wiki/LuaJIT" title="LuaJIT">LuaJIT</a>, <a rel="nofollow" class="external text" href="//eliasdaler.github.io/luavela/">LuaVela</a>, <a rel="nofollow" class="external text" href="https://www.moonsharp.org/">MoonSharp</a>,</td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #eee;"><a href="/wiki/Programming_language#Dialects,_flavors_and_implementations" title="Programming language">Dialects</a></th></tr><tr><td colspan="2" class="infobox-full-data"><a rel="nofollow" class="external text" href="https://www.nongnu.org/gsl-shell/">GSL Shell</a>, <a rel="nofollow" class="external text" href="https://luau.org">Lua<i>u</i></a></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #eee;">Influenced by</th></tr><tr><td colspan="2" class="infobox-full-data"><a href="/wiki/C%2B%2B" title="C++">C++</a>, <a href="/wiki/CLU_(programming_language)" title="CLU (programming language)">CLU</a>, <a href="/wiki/Modula" title="Modula">Modula</a>, <a href="/wiki/Scheme_(programming_language)" title="Scheme (programming language)">Scheme</a>, <a href="/wiki/SNOBOL" title="SNOBOL">SNOBOL</a></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #eee;">Influenced</th></tr><tr><td colspan="2" class="infobox-full-data"><a href="/wiki/GameMonkey_Script" title="GameMonkey Script">GameMonkey</a>, <a href="/wiki/Io_(programming_language)" title="Io (programming language)">Io</a>, <a href="/wiki/JavaScript" title="JavaScript">JavaScript</a><sup class="noprint Inline-Template Template-Fact" style="white-space:nowrap;">&#91;<i><a href="/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"><span title="This claim needs references to reliable sources. (November 2022)">citation needed</span></a></i>&#93;</sup>, <a href="/wiki/Julia_(programming_language)" title="Julia (programming language)">Julia</a>, <a href="/wiki/Red_(programming_language)" title="Red (programming language)">Red</a>, <a href="/wiki/Ring_(programming_language)" title="Ring (programming language)">Ring</a>,<sup id="cite_ref-The_Ring_programming_language_and_other_languages_2-0" class="reference"><a href="#cite_note-The_Ring_programming_language_and_other_languages-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup> <a href="/wiki/Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a>,<sup class="noprint Inline-Template Template-Fact" style="white-space:nowrap;">&#91;<i><a href="/wiki/Wikipedia:Citation_needed" title="Wikipedia:Citation needed"><span title="This claim needs references to reliable sources. (November 2022)">citation needed</span></a></i>&#93;</sup> <a href="/wiki/Squirrel_(programming_language)" title="Squirrel (programming language)">Squirrel</a>, <a href="/wiki/C--" title="C--">C--</a>, <a href="/wiki/Roblox_Studio" class="mw-redirect" title="Roblox Studio">Luau</a>,</td></tr></tbody></table> <p><b>Lua</b> <span class="noexcerpt">(<span class="rt-commentedText nowrap"><span class="IPA nopopups noexcerpt" lang="en-fonipa"><a href="/wiki/Help:IPA/English" title="Help:IPA/English">/<span style="border-bottom:1px dotted"><span title="/ˈ/: primary stress follows">ˈ</span><span title="&#39;l&#39; in &#39;lie&#39;">l</span><span title="/uː/: &#39;oo&#39; in &#39;goose&#39;">uː</span><span title="/ə/: &#39;a&#39; in &#39;about&#39;">ə</span></span>/</a></span></span> <a href="/wiki/Help:Pronunciation_respelling_key" title="Help:Pronunciation respelling key"><i title="English pronunciation respelling"><span style="font-size:90%">LOO</span>-ə</i></a>; from <a href="/wiki/Portuguese_language" title="Portuguese language">Portuguese</a>: <i lang="pt"><a href="https://en.wiktionary.org/wiki/lua#Portuguese" class="extiw" title="wikt:lua">lua</a></i> <span class="IPA nowrap" lang="pt-Latn-fonipa"><a href="/wiki/Help:IPA/Portuguese" title="Help:IPA/Portuguese">&#91;ˈlu(w)ɐ&#93;</a></span> meaning <i><a href="/wiki/Moon" title="Moon">moon</a></i>)</span> is a <a href="/wiki/Lightweight_programming_language" title="Lightweight programming language">lightweight</a>, <a href="/wiki/High-level_programming_language" title="High-level programming language">high-level</a>, <a href="/wiki/Multi-paradigm_programming_language" class="mw-redirect" title="Multi-paradigm programming language">multi-paradigm</a> <a href="/wiki/Programming_language" title="Programming language">programming language</a> designed mainly for <a href="/wiki/Scripting_language" title="Scripting language">embedded use</a> in applications.<sup id="cite_ref-luaspe_3-0" class="reference"><a href="#cite_note-luaspe-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> Lua is <a href="/wiki/Cross-platform_software" title="Cross-platform software">cross-platform software</a>, since the <a href="/wiki/Interpreter_(computing)" title="Interpreter (computing)">interpreter</a> of <a href="/wiki/Compiler" title="Compiler">compiled</a> <a href="/wiki/Bytecode" title="Bytecode">bytecode</a> is written in <a href="/wiki/ANSI_C" title="ANSI C">ANSI C</a>,<sup id="cite_ref-luaabout_4-0" class="reference"><a href="#cite_note-luaabout-4"><span class="cite-bracket">&#91;</span>4<span class="cite-bracket">&#93;</span></a></sup> and Lua has a relatively simple C application programming interface (<a href="/wiki/API" title="API">API</a>) to embed it into applications.<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> </p><p>Lua originated in 1993 as a language for extending <a href="/wiki/Application_software" title="Application software">software applications</a> to meet the increasing demand for customization at the time. It provided the basic facilities of most <a href="/wiki/Procedural_programming" title="Procedural programming">procedural programming</a> languages, but more complicated or <a href="/wiki/Domain-specific_language" title="Domain-specific language">domain-specific</a> 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 <a href="/wiki/Profiling_(computer_programming)" title="Profiling (computer programming)">speed</a>, <a href="/wiki/Porting" title="Porting">portability</a>, extensibility and ease-of-use in development. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="History">History</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=1" title="Edit section: History"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Lua was created in 1993 by <a href="/wiki/Roberto_Ierusalimschy" title="Roberto Ierusalimschy">Roberto Ierusalimschy</a>, Luiz Henrique de Figueiredo and Waldemar Celes, members of the Computer Graphics Technology Group (<a href="/wiki/Tecgraf" class="mw-redirect" title="Tecgraf">Tecgraf</a>) at the <a href="/wiki/Pontifical_Catholic_University_of_Rio_de_Janeiro" title="Pontifical Catholic University of Rio de Janeiro">Pontifical Catholic University of Rio de Janeiro</a>, in <a href="/wiki/Brazil" title="Brazil">Brazil</a>. </p><p>From 1977 until 1992, Brazil had a policy of strong <a href="/wiki/Trade_barrier" title="Trade barrier">trade barriers</a> (called a market reserve) for <a href="/wiki/Computer_hardware" title="Computer hardware">computer hardware</a> and <a href="/wiki/Software" title="Software">software</a>, believing that Brazil could and should produce its own hardware and software. In that climate, Tecgraf's clients could not afford, either politically or financially, to buy customized software from abroad; under the market reserve, clients would have to go through a complex bureaucratic process to prove their needs couldn't be met by Brazilian companies. Those reasons led Tecgraf to implement the basic tools it needed from scratch.<sup id="cite_ref-hopl2007_6-0" class="reference"><a href="#cite_note-hopl2007-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup> </p><p>Lua's predecessors were the data-description/configuration languages <i>Simple Object Language</i> (SOL) and <i>data-entry language</i> (DEL).<sup id="cite_ref-luahist2001_7-0" class="reference"><a href="#cite_note-luahist2001-7"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup> 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 <a href="/wiki/Petrobras" title="Petrobras">Petrobras</a> 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. </p><p>In <i>The Evolution of Lua</i>, the language's authors wrote:<sup id="cite_ref-hopl2007_6-1" class="reference"><a href="#cite_note-hopl2007-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup> </p> <style data-mw-deduplicate="TemplateStyles:r1244412712">.mw-parser-output .templatequote{overflow:hidden;margin:1em 0;padding:0 32px}.mw-parser-output .templatequotecite{line-height:1.5em;text-align:left;margin-top:0}@media(min-width:500px){.mw-parser-output .templatequotecite{padding-left:1.6em}}</style><blockquote class="templatequote"><p>In 1993, the only real contender was <a href="/wiki/Tcl" title="Tcl">Tcl</a>, 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 <a href="/wiki/Lisp_(programming_language)" title="Lisp (programming language)">LISP</a> or <a href="/wiki/Scheme_(programming_language)" title="Scheme (programming language)">Scheme</a> because of their unfriendly syntax. <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a> 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&#160;... 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.</p></blockquote> <p>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: <i>Sol</i> meaning "Sun" in Portuguese, and <i>Lua</i> meaning "Moon"). Lua <a href="/wiki/Syntax_(programming_languages)" title="Syntax (programming languages)">syntax</a> for control structures was mostly borrowed from <a href="/wiki/Modula" title="Modula">Modula</a> (<code>if</code>, <code>while</code>, <code>repeat</code>/<code>until</code>), but also had taken influence from <a href="/wiki/CLU_(programming_language)" title="CLU (programming language)">CLU</a> (multiple assignments and multiple returns from function calls, as a simpler alternative to <a href="/wiki/Call_by_reference" class="mw-redirect" title="Call by reference">reference parameters</a> or explicit <a href="/wiki/Pointer_(computer_programming)" title="Pointer (computer programming)">pointers</a>), <a href="/wiki/C%2B%2B" title="C++">C++</a> ("neat idea of allowing a <a href="/wiki/Local_variable" title="Local variable">local variable</a> to be declared only where we need it"<sup id="cite_ref-hopl2007_6-2" class="reference"><a href="#cite_note-hopl2007-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup>), <a href="/wiki/SNOBOL" title="SNOBOL">SNOBOL</a> and <a href="/wiki/AWK" title="AWK">AWK</a> (<a href="/wiki/Associative_array" title="Associative array">associative arrays</a>). In an article published in <i><a href="/wiki/Dr._Dobb%27s_Journal" title="Dr. Dobb&#39;s Journal">Dr. Dobb's Journal</a></i>, Lua's creators also state that LISP and Scheme with their single, ubiquitous data-structure mechanism (the <a href="/wiki/List_(abstract_data_type)" title="List (abstract data type)">list</a>) were a major influence on their decision to develop the table as the primary data structure of Lua.<sup id="cite_ref-ddj96_8-0" class="reference"><a href="#cite_note-ddj96-8"><span class="cite-bracket">&#91;</span>8<span class="cite-bracket">&#93;</span></a></sup> </p><p>Lua <a href="/wiki/Semantics" title="Semantics">semantics</a> have been increasingly influenced by Scheme over time,<sup id="cite_ref-hopl2007_6-3" class="reference"><a href="#cite_note-hopl2007-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup> especially with the introduction of <a href="/wiki/Anonymous_function" title="Anonymous function">anonymous functions</a> and full <a href="/wiki/Scope_(computer_science)#Lexical_scope_vs._dynamic_scope" title="Scope (computer science)">lexical scoping</a>. Several features were added in new Lua versions. </p><p>Versions of Lua prior to version 5.0 were released under a license similar to the <a href="/wiki/BSD_licenses" title="BSD licenses">BSD license</a>. From version 5.0 onwards, Lua has been licensed under the <a href="/wiki/MIT_License" title="MIT License">MIT License</a>. Both are <a href="/wiki/Permissive_free_software_licences" class="mw-redirect" title="Permissive free software licences">permissive free software licences</a> and are almost identical. </p> <div class="mw-heading mw-heading2"><h2 id="Features">Features</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=2" title="Edit section: Features"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Lua is commonly described as a "<a href="/wiki/Multi-paradigm_programming_language" class="mw-redirect" title="Multi-paradigm programming language">multi-paradigm</a>" language, providing a small set of general features that can be extended to fit different problem types. Lua does not contain explicit support for <a href="/wiki/Inheritance_(object-oriented_programming)" title="Inheritance (object-oriented programming)">inheritance</a>, but allows it to be implemented with <a href="#Metatables">metatables</a>. Similarly, Lua allows programmers to implement <a href="/wiki/Namespace" title="Namespace">namespaces</a>, <a href="/wiki/Class_(computer_programming)" title="Class (computer programming)">classes</a> and other related features using its single table implementation; <a href="/wiki/First-class_function" title="First-class function">first-class functions</a> allow the employment of many techniques from <a href="/wiki/Functional_programming" title="Functional programming">functional programming</a> and full <a href="/wiki/Lexical_scoping" class="mw-redirect" title="Lexical scoping">lexical scoping</a> allows fine-grained <a href="/wiki/Information_hiding" title="Information hiding">information hiding</a> to enforce the <a href="/wiki/Principle_of_least_privilege" title="Principle of least privilege">principle of least privilege</a>. </p><p>In general, Lua strives to provide simple, flexible <a href="/wiki/Metaprogramming" title="Metaprogramming">meta-features</a> that can be extended as needed, rather than supply a feature-set specific to one programming paradigm. As a result, the base language is <a href="/wiki/Lightweight_programming_language" title="Lightweight programming language">light</a>; the full reference <a href="/wiki/Interpreter_(computing)" title="Interpreter (computing)">interpreter</a> is only about 247&#160;<a href="/wiki/Kilobyte" title="Kilobyte">kB</a> compiled<sup id="cite_ref-luaabout_4-1" class="reference"><a href="#cite_note-luaabout-4"><span class="cite-bracket">&#91;</span>4<span class="cite-bracket">&#93;</span></a></sup> and easily adaptable to a broad range of applications. </p><p>As a <a href="/wiki/Dynamically_typed" class="mw-redirect" title="Dynamically typed">dynamically typed</a> language intended for use as an extension language or <a href="/wiki/Scripting_language" title="Scripting language">scripting language</a>, Lua is compact enough to fit on a variety of host platforms. It supports only a small number of atomic data structures such as <a href="/wiki/Boolean_data_type" title="Boolean data type">Boolean</a> values, numbers (double-precision <a href="/wiki/Floating_point" class="mw-redirect" title="Floating point">floating point</a> and <a href="/wiki/64-bit_computing" title="64-bit computing">64-bit</a> <a href="/wiki/Integer" title="Integer">integers</a> by default) and <a href="/wiki/String_(computer_science)" title="String (computer science)">strings</a>. Typical data structures such as <a href="/wiki/Array_data_structure" class="mw-redirect" title="Array data structure">arrays</a>, <a href="/wiki/Set_(computer_science)" class="mw-redirect" title="Set (computer science)">sets</a>, <a href="/wiki/List_(computing)" class="mw-redirect" title="List (computing)">lists</a> and <a href="/wiki/Record_(computer_science)" title="Record (computer science)">records</a> can be represented using Lua's single native data structure, the table, which is essentially a heterogeneous <a href="/wiki/Associative_array" title="Associative array">associative array</a>. </p><p>Lua implements a small set of advanced features such as <a href="/wiki/First-class_function" title="First-class function">first-class functions</a>, <a href="/wiki/Garbage_collection_(computer_science)" title="Garbage collection (computer science)">garbage collection</a>, <a href="/wiki/Closure_(computer_science)" class="mw-redirect" title="Closure (computer science)">closures</a>, proper <a href="/wiki/Tail_recursion" class="mw-redirect" title="Tail recursion">tail calls</a>, <a href="/wiki/Type_conversion" title="Type conversion">coercion</a> (automatic conversion between string and number values at run time), <a href="/wiki/Coroutine" title="Coroutine">coroutines</a> (cooperative multitasking) and <a href="/wiki/Dynamic_loading" title="Dynamic loading">dynamic module loading</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Syntax">Syntax</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=3" title="Edit section: Syntax"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The classic <a href="/wiki/%22Hello,_World!%22_program" title="&quot;Hello, World!&quot; program">"Hello, World!" program</a> can be written as follows, with or without parentheses:<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">&#91;</span>9<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">&#91;</span>a<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Hello, World!&quot;</span><span class="p">)</span> </pre></div> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="nb">print</span> <span class="s2">&quot;Hello, World!&quot;</span> </pre></div> <p>The declaration of a variable, without a value. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">variable</span> </pre></div> <p>The declaration of a variable with a value of 10. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">students</span> <span class="o">=</span> <span class="mi">10</span> </pre></div> <p>A <a href="/wiki/Comment_(computer_programming)" title="Comment (computer programming)">comment</a> in Lua starts with a double-hyphen and runs to the end of the line, similar to <a href="/wiki/Ada_(programming_language)" title="Ada (programming language)">Ada</a>, <a href="/wiki/Eiffel_(programming_language)" title="Eiffel (programming language)">Eiffel</a>, <a href="/wiki/Haskell" title="Haskell">Haskell</a>, <a href="/wiki/SQL" title="SQL">SQL</a> and <a href="/wiki/VHDL" title="VHDL">VHDL</a>. Multi-line strings and comments are marked with double square brackets. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="c1">-- Single line comment</span> <span class="cm">--[[</span> <span class="cm">Multi-line comment</span> <span class="cm">--]]</span> </pre></div> <p><span class="anchor" id="Factorial_example"></span>The <a href="/wiki/Factorial" title="Factorial">factorial</a> function is implemented in this example: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">function</span> <span class="nf">factorial</span><span class="p">(</span><span class="n">n</span><span class="p">)</span> <span class="kd">local</span> <span class="n">x</span> <span class="o">=</span> <span class="mi">1</span> <span class="kr">for</span> <span class="n">i</span> <span class="o">=</span> <span class="mi">2</span><span class="p">,</span> <span class="n">n</span> <span class="kr">do</span> <span class="n">x</span> <span class="o">=</span> <span class="n">x</span> <span class="o">*</span> <span class="n">i</span> <span class="kr">end</span> <span class="kr">return</span> <span class="n">x</span> <span class="kr">end</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Control_flow">Control flow</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=4" title="Edit section: Control flow"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Lua has one type of <a href="/wiki/Conditional_(computer_programming)" title="Conditional (computer programming)">conditional</a> test: <code><a href="/wiki/Conditional_(computer_programming)#If–then(–else)" title="Conditional (computer programming)">if then end</a></code> with optional <code>else</code> and <code>elseif then</code> execution control constructs. </p><p>The generic <code>if then end</code> statement requires all three keywords: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">if</span> <span class="n">condition</span> <span class="kr">then</span> <span class="c1">--statement body</span> <span class="kr">end</span> </pre></div> <p>An example of an <code>if</code> statement </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">if</span> <span class="n">x</span> <span class="o">~=</span> <span class="mi">10</span> <span class="kr">then</span> <span class="nb">print</span><span class="p">(</span><span class="n">x</span><span class="p">)</span> <span class="kr">end</span> </pre></div> <p>The <code>else</code> keyword may be added with an accompanying statement block to control execution when the <code>if</code> condition evaluates to <code>false</code>: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">if</span> <span class="n">condition</span> <span class="kr">then</span> <span class="c1">--statement body</span> <span class="kr">else</span> <span class="c1">--statement body</span> <span class="kr">end</span> </pre></div> <p>An example of an <code>if else</code> statement </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">if</span> <span class="n">x</span> <span class="o">==</span> <span class="mi">10</span> <span class="kr">then</span> <span class="nb">print</span><span class="p">(</span><span class="mi">10</span><span class="p">)</span> <span class="kr">else</span> <span class="nb">print</span><span class="p">(</span><span class="n">x</span><span class="p">)</span> <span class="kr">end</span> </pre></div> <p>Execution may also be controlled according to multiple conditions using the <code>elseif then</code> keywords: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">if</span> <span class="n">condition</span> <span class="kr">then</span> <span class="c1">--statement body</span> <span class="kr">elseif</span> <span class="n">condition</span> <span class="kr">then</span> <span class="c1">--statement body</span> <span class="kr">else</span> <span class="c1">-- optional</span> <span class="c1">--optional default statement body</span> <span class="kr">end</span> </pre></div> <p>An example of an <code>if elseif else</code> statement </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">if</span> <span class="n">x</span> <span class="o">==</span> <span class="n">y</span> <span class="kr">then</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;x = y&quot;</span><span class="p">)</span> <span class="kr">elseif</span> <span class="n">x</span> <span class="o">==</span> <span class="n">z</span> <span class="kr">then</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;x = z&quot;</span><span class="p">)</span> <span class="kr">else</span> <span class="c1">-- optional</span> <span class="nb">print</span><span class="p">(</span><span class="s2">&quot;x does not equal any other variable&quot;</span><span class="p">)</span> <span class="kr">end</span> </pre></div> <p>Lua has four types of conditional loops: the <a href="/wiki/While_loop" title="While loop"><code>while</code> loop</a>, the <code>repeat</code> loop (similar to a <a href="/wiki/Do_while_loop" title="Do while loop"><code>do while</code> loop</a>), the numeric <a href="/wiki/For_loop" title="For loop"><code>for</code> loop</a> and the generic <code>for</code> loop. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="c1">--condition = true</span> <span class="kr">while</span> <span class="n">condition</span> <span class="kr">do</span> <span class="c1">--statements</span> <span class="kr">end</span> <span class="kr">repeat</span> <span class="c1">--statements</span> <span class="kr">until</span> <span class="n">condition</span> <span class="kr">for</span> <span class="n">i</span> <span class="o">=</span> <span class="n">first</span><span class="p">,</span> <span class="n">last</span><span class="p">,</span> <span class="n">delta</span> <span class="kr">do</span> <span class="c1">--delta may be negative, allowing the for loop to count down or up</span> <span class="c1">--statements</span> <span class="c1">--example: print(i)</span> <span class="kr">end</span> </pre></div> <p>This generic <code>for</code> loop would iterate over the table <code>_G</code> using the standard iterator function <code>pairs</code>, until it returns <code>nil</code>: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">for</span> <span class="n">key</span><span class="p">,</span> <span class="n">value</span> <span class="kr">in</span> <span class="nb">pairs</span><span class="p">(</span><span class="nb">_G</span><span class="p">)</span> <span class="kr">do</span> <span class="nb">print</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span> <span class="kr">end</span> </pre></div> <p>Loops can also be <a href="/wiki/Nesting_(programming)" class="mw-redirect" title="Nesting (programming)">nested</a> (put inside of another loop). </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">grid</span> <span class="o">=</span> <span class="p">{</span> <span class="p">{</span> <span class="mi">11</span><span class="p">,</span> <span class="mi">12</span><span class="p">,</span> <span class="mi">13</span> <span class="p">},</span> <span class="p">{</span> <span class="mi">21</span><span class="p">,</span> <span class="mi">22</span><span class="p">,</span> <span class="mi">23</span> <span class="p">},</span> <span class="p">{</span> <span class="mi">31</span><span class="p">,</span> <span class="mi">32</span><span class="p">,</span> <span class="mi">33</span> <span class="p">}</span> <span class="p">}</span> <span class="kr">for</span> <span class="n">y</span><span class="p">,</span> <span class="n">row</span> <span class="kr">in</span> <span class="nb">pairs</span><span class="p">(</span><span class="n">grid</span><span class="p">)</span> <span class="kr">do</span> <span class="kr">for</span> <span class="n">x</span><span class="p">,</span> <span class="n">value</span> <span class="kr">in</span> <span class="nb">pairs</span><span class="p">(</span><span class="n">row</span><span class="p">)</span> <span class="kr">do</span> <span class="nb">print</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span> <span class="kr">end</span> <span class="kr">end</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Functions">Functions</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=5" title="Edit section: Functions"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Lua's treatment of functions as <a href="/wiki/First-class_function" title="First-class function">first-class</a> values is shown in the following example, where the print function's behavior is modified: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">do</span> <span class="kd">local</span> <span class="n">oldprint</span> <span class="o">=</span> <span class="nb">print</span> <span class="c1">-- Store current print function as oldprint</span> <span class="kr">function</span> <span class="nf">print</span><span class="p">(</span><span class="n">s</span><span class="p">)</span> <span class="cm">--[[ Redefine print function. The usual print function can still be used</span> <span class="cm"> through oldprint. The new one has only one argument.]]</span> <span class="n">oldprint</span><span class="p">(</span><span class="n">s</span> <span class="o">==</span> <span class="s2">&quot;foo&quot;</span> <span class="ow">and</span> <span class="s2">&quot;bar&quot;</span> <span class="ow">or</span> <span class="n">s</span><span class="p">)</span> <span class="kr">end</span> <span class="kr">end</span> </pre></div> <p>Any future calls to <code>print</code> will now be routed through the new function, and because of Lua's <a href="/wiki/Scope_(programming)#Lexical_scoping" class="mw-redirect" title="Scope (programming)">lexical scoping</a>, the old print function will only be accessible by the new, modified print. </p><p>Lua also supports <a href="/wiki/Closure_(computer_programming)" title="Closure (computer programming)">closures</a>, as demonstrated below: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">function</span> <span class="nf">addto</span><span class="p">(</span><span class="n">x</span><span class="p">)</span> <span class="c1">-- Return a new function that adds x to the argument</span> <span class="kr">return</span> <span class="kr">function</span><span class="p">(</span><span class="n">y</span><span class="p">)</span> <span class="cm">--[[ When we refer to the variable x, which is outside the current</span> <span class="cm"> scope and whose lifetime would be shorter than that of this anonymous</span> <span class="cm"> function, Lua creates a closure.]]</span> <span class="kr">return</span> <span class="n">x</span> <span class="o">+</span> <span class="n">y</span> <span class="kr">end</span> <span class="kr">end</span> <span class="n">fourplus</span> <span class="o">=</span> <span class="n">addto</span><span class="p">(</span><span class="mi">4</span><span class="p">)</span> <span class="nb">print</span><span class="p">(</span><span class="n">fourplus</span><span class="p">(</span><span class="mi">3</span><span class="p">))</span> <span class="c1">-- Prints 7</span> <span class="c1">--This can also be achieved by calling the function in the following way:</span> <span class="nb">print</span><span class="p">(</span><span class="n">addto</span><span class="p">(</span><span class="mi">4</span><span class="p">)(</span><span class="mi">3</span><span class="p">))</span> <span class="cm">--[[ This is because we are calling the returned function from &#39;addto(4)&#39; with the argument &#39;3&#39; directly.</span> <span class="cm"> This also helps to reduce data cost and up performance if being called iteratively.]]</span> </pre></div> <p>A new closure for the variable <code>x</code> is created every time <code>addto</code> is called, so that each new anonymous function returned will always access its own <code>x</code> parameter. The closure is managed by Lua's garbage collector, just like any other object. </p> <div class="mw-heading mw-heading3"><h3 id="Tables">Tables</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=6" title="Edit section: Tables"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Tables are the most important data structures (and, by design, the only built-in <a href="/wiki/Composite_data_type" title="Composite data type">composite data type</a>) in Lua and are the foundation of all user-created types. They are associative arrays with addition of automatic numeric key and special syntax. </p><p>A table is a set of key and data pairs, where the data is referenced by key; in other words, it is a <a href="/wiki/Hash_table" title="Hash table">hashed</a> heterogeneous associative array. </p><p>Tables are created using the <code>{}</code> constructor syntax. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">a_table</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1">-- Creates a new, empty table</span> </pre></div> <p>Tables are always passed by reference (see <a href="/wiki/Call_by_sharing" class="mw-redirect" title="Call by sharing">Call by sharing</a>). </p><p>A key (index) can be any value except <code>nil</code> and <a href="/wiki/NaN" title="NaN">NaN</a>, including functions. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">a_table</span> <span class="o">=</span> <span class="p">{</span><span class="n">x</span> <span class="o">=</span> <span class="mi">10</span><span class="p">}</span> <span class="c1">-- Creates a new table, with one entry mapping &quot;x&quot; to the number 10.</span> <span class="nb">print</span><span class="p">(</span><span class="n">a_table</span><span class="p">[</span><span class="s2">&quot;x&quot;</span><span class="p">])</span> <span class="c1">-- Prints the value associated with the string key, in this case 10.</span> <span class="n">b_table</span> <span class="o">=</span> <span class="n">a_table</span> <span class="n">b_table</span><span class="p">[</span><span class="s2">&quot;x&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="mi">20</span> <span class="c1">-- The value in the table has been changed to 20.</span> <span class="nb">print</span><span class="p">(</span><span class="n">b_table</span><span class="p">[</span><span class="s2">&quot;x&quot;</span><span class="p">])</span> <span class="c1">-- Prints 20.</span> <span class="nb">print</span><span class="p">(</span><span class="n">a_table</span><span class="p">[</span><span class="s2">&quot;x&quot;</span><span class="p">])</span> <span class="c1">-- Also prints 20, because a_table and b_table both refer to the same table.</span> </pre></div> <p>A table is often used as <a href="/wiki/Object_composition" title="Object composition">structure</a> (or <a href="/wiki/Record_(computer_science)" title="Record (computer science)">record</a>) by using <a href="/wiki/String_(computer_science)" title="String (computer science)">strings</a> as keys. Because such use is very common, Lua features a special syntax for accessing such fields.<sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">point</span> <span class="o">=</span> <span class="p">{</span> <span class="n">x</span> <span class="o">=</span> <span class="mi">10</span><span class="p">,</span> <span class="n">y</span> <span class="o">=</span> <span class="mi">20</span> <span class="p">}</span> <span class="c1">-- Create new table</span> <span class="nb">print</span><span class="p">(</span><span class="n">point</span><span class="p">[</span><span class="s2">&quot;x&quot;</span><span class="p">])</span> <span class="c1">-- Prints 10</span> <span class="nb">print</span><span class="p">(</span><span class="n">point</span><span class="p">.</span><span class="n">x</span><span class="p">)</span> <span class="c1">-- Has exactly the same meaning as line above. The easier-to-read dot notation is just syntactic sugar.</span> </pre></div> <p>By using a table to store related functions, it can act as a namespace. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">Point</span> <span class="o">=</span> <span class="p">{}</span> <span class="n">Point</span><span class="p">.</span><span class="n">new</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">)</span> <span class="kr">return</span> <span class="p">{</span><span class="n">x</span> <span class="o">=</span> <span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="o">=</span> <span class="n">y</span><span class="p">}</span> <span class="c1">-- return {[&quot;x&quot;] = x, [&quot;y&quot;] = y}</span> <span class="kr">end</span> <span class="n">Point</span><span class="p">.</span><span class="n">set_x</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">point</span><span class="p">,</span> <span class="n">x</span><span class="p">)</span> <span class="n">point</span><span class="p">.</span><span class="n">x</span> <span class="o">=</span> <span class="n">x</span> <span class="c1">-- point[&quot;x&quot;] = x;</span> <span class="kr">end</span> </pre></div> <p>Tables are automatically assigned a numerical key, enabling them to be used as an <a href="/wiki/Array_data_type" class="mw-redirect" title="Array data type">array data type</a>. 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). </p><p>A numeric key <code>1</code> is distinct from a string key <code>"1"</code>. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">array</span> <span class="o">=</span> <span class="p">{</span> <span class="s2">&quot;a&quot;</span><span class="p">,</span> <span class="s2">&quot;b&quot;</span><span class="p">,</span> <span class="s2">&quot;c&quot;</span><span class="p">,</span> <span class="s2">&quot;d&quot;</span> <span class="p">}</span> <span class="c1">-- Indices are assigned automatically.</span> <span class="nb">print</span><span class="p">(</span><span class="n">array</span><span class="p">[</span><span class="mi">2</span><span class="p">])</span> <span class="c1">-- Prints &quot;b&quot;. Automatic indexing in Lua starts at 1.</span> <span class="nb">print</span><span class="p">(</span><span class="o">#</span><span class="n">array</span><span class="p">)</span> <span class="c1">-- Prints 4. # is the length operator for tables and strings.</span> <span class="n">array</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;z&quot;</span> <span class="c1">-- Zero is a legal index.</span> <span class="nb">print</span><span class="p">(</span><span class="o">#</span><span class="n">array</span><span class="p">)</span> <span class="c1">-- Still prints 4, as Lua arrays are 1-based.</span> </pre></div> <p>The length of a table <code>t</code> is defined to be any integer index <code>n</code> such that <code>t[n]</code> is not <code>nil</code> and <code>t[n+1]</code> is <code>nil</code>; moreover, if <code>t[1]</code> is <code>nil</code>, <code>n</code> can be zero. For a regular array, with non-nil values from 1 to a given <code>n</code>, its length is exactly that <code>n</code>, the index of its last value. If the array has "holes" (that is, nil values between other non-nil values), then <code>#t</code> can be any of the indices that directly precedes a <code>nil</code> value (that is, it may consider any such nil value as the end of the array).<sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">ExampleTable</span> <span class="o">=</span> <span class="p">{</span> <span class="p">{</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">},</span> <span class="p">{</span><span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">}</span> <span class="p">}</span> <span class="nb">print</span><span class="p">(</span><span class="n">ExampleTable</span><span class="p">[</span><span class="mi">1</span><span class="p">][</span><span class="mi">3</span><span class="p">])</span> <span class="c1">-- Prints &quot;3&quot;</span> <span class="nb">print</span><span class="p">(</span><span class="n">ExampleTable</span><span class="p">[</span><span class="mi">2</span><span class="p">][</span><span class="mi">4</span><span class="p">])</span> <span class="c1">-- Prints &quot;8&quot;</span> </pre></div> <p>A table can be an array of objects. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kr">function</span> <span class="nf">Point</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">)</span> <span class="c1">-- &quot;Point&quot; object constructor</span> <span class="kr">return</span> <span class="p">{</span> <span class="n">x</span> <span class="o">=</span> <span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="o">=</span> <span class="n">y</span> <span class="p">}</span> <span class="c1">-- Creates and returns a new object (table)</span> <span class="kr">end</span> <span class="n">array</span> <span class="o">=</span> <span class="p">{</span> <span class="n">Point</span><span class="p">(</span><span class="mi">10</span><span class="p">,</span> <span class="mi">20</span><span class="p">),</span> <span class="n">Point</span><span class="p">(</span><span class="mi">30</span><span class="p">,</span> <span class="mi">40</span><span class="p">),</span> <span class="n">Point</span><span class="p">(</span><span class="mi">50</span><span class="p">,</span> <span class="mi">60</span><span class="p">)</span> <span class="p">}</span> <span class="c1">-- Creates array of points</span> <span class="c1">-- array = { { x = 10, y = 20 }, { x = 30, y = 40 }, { x = 50, y = 60 } };</span> <span class="nb">print</span><span class="p">(</span><span class="n">array</span><span class="p">[</span><span class="mi">2</span><span class="p">].</span><span class="n">y</span><span class="p">)</span> <span class="c1">-- Prints 40</span> </pre></div> <p>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.<sup id="cite_ref-lobject_h_array_14-0" class="reference"><a href="#cite_note-lobject_h_array-14"><span class="cite-bracket">&#91;</span>13<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading3"><h3 id="Metatables">Metatables</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=7" title="Edit section: Metatables"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Extensible semantics is a key feature of Lua, and the <a href="#Metatables">metatable</a> concept allows powerful customization of tables. The following example demonstrates an "infinite" table. For any <code>n</code>, <code>fibs[n]</code> will give the <code>n</code>-th <a href="/wiki/Fibonacci_number" class="mw-redirect" title="Fibonacci number">Fibonacci number</a> using <a href="/wiki/Dynamic_programming" title="Dynamic programming">dynamic programming</a> and <a href="/wiki/Memoization" title="Memoization">memoization</a>. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="n">fibs</span> <span class="o">=</span> <span class="p">{</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span> <span class="p">}</span> <span class="c1">-- Initial values for fibs[1] and fibs[2].</span> <span class="nb">setmetatable</span><span class="p">(</span><span class="n">fibs</span><span class="p">,</span> <span class="p">{</span> <span class="n">__index</span> <span class="o">=</span> <span class="kr">function</span><span class="p">(</span><span class="n">values</span><span class="p">,</span> <span class="n">n</span><span class="p">)</span> <span class="cm">--[[__index is a function predefined by Lua, </span> <span class="cm"> it is called if key &quot;n&quot; does not exist.]]</span> <span class="n">values</span><span class="p">[</span><span class="n">n</span><span class="p">]</span> <span class="o">=</span> <span class="n">values</span><span class="p">[</span><span class="n">n</span> <span class="o">-</span> <span class="mi">1</span><span class="p">]</span> <span class="o">+</span> <span class="n">values</span><span class="p">[</span><span class="n">n</span> <span class="o">-</span> <span class="mi">2</span><span class="p">]</span> <span class="c1">-- Calculate and memoize fibs[n].</span> <span class="kr">return</span> <span class="n">values</span><span class="p">[</span><span class="n">n</span><span class="p">]</span> <span class="kr">end</span> <span class="p">})</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Object-oriented_programming">Object-oriented programming</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=8" title="Edit section: Object-oriented programming"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Although Lua does not have a built-in concept of <a href="/wiki/Class_(computer_science)" class="mw-redirect" title="Class (computer science)">classes</a>, <a href="/wiki/Object-oriented_programming" title="Object-oriented programming">object-oriented programming</a> can be emulated using functions and tables. An object is formed by putting methods and fields in a table. <a href="/wiki/Inheritance_(object-oriented_programming)" title="Inheritance (object-oriented programming)">Inheritance</a> (both single and multiple) can be implemented with <a href="#Metatables">metatables</a>, delegating nonexistent methods and fields to a parent object. </p><p>There is no such concept as "class" with these techniques; rather, <a href="/wiki/Prototype-based_programming" title="Prototype-based programming">prototypes</a> are used, similar to <a href="/wiki/Self_(programming_language)" title="Self (programming language)">Self</a> or <a href="/wiki/JavaScript" title="JavaScript">JavaScript</a>. New objects are created either with a <a href="/wiki/Factory_method_pattern" title="Factory method pattern">factory method</a> (that constructs new objects from scratch) or by cloning an existing object. </p><p>Creating a basic <a href="/wiki/Vector_(geometry)" class="mw-redirect" title="Vector (geometry)">vector</a> object: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">Vector</span> <span class="o">=</span> <span class="p">{}</span> <span class="kd">local</span> <span class="n">VectorMeta</span> <span class="o">=</span> <span class="p">{</span> <span class="n">__index</span> <span class="o">=</span> <span class="n">Vector</span><span class="p">}</span> <span class="kr">function</span> <span class="nc">Vector</span><span class="p">.</span><span class="nf">new</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">,</span> <span class="n">z</span><span class="p">)</span> <span class="c1">-- The constructor</span> <span class="kr">return</span> <span class="nb">setmetatable</span><span class="p">({</span><span class="n">x</span> <span class="o">=</span> <span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="o">=</span> <span class="n">y</span><span class="p">,</span> <span class="n">z</span> <span class="o">=</span> <span class="n">z</span><span class="p">},</span> <span class="n">VectorMeta</span><span class="p">)</span> <span class="kr">end</span> <span class="kr">function</span> <span class="nc">Vector</span><span class="p">.</span><span class="nf">magnitude</span><span class="p">(</span><span class="n">self</span><span class="p">)</span> <span class="c1">-- Another method</span> <span class="kr">return</span> <span class="nb">math.sqrt</span><span class="p">(</span><span class="n">self</span><span class="p">.</span><span class="n">x</span><span class="o">^</span><span class="mi">2</span> <span class="o">+</span> <span class="n">self</span><span class="p">.</span><span class="n">y</span><span class="o">^</span><span class="mi">2</span> <span class="o">+</span> <span class="n">self</span><span class="p">.</span><span class="n">z</span><span class="o">^</span><span class="mi">2</span><span class="p">)</span> <span class="kr">end</span> <span class="kd">local</span> <span class="n">vec</span> <span class="o">=</span> <span class="n">Vector</span><span class="p">.</span><span class="n">new</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span> <span class="c1">-- Create a vector</span> <span class="nb">print</span><span class="p">(</span><span class="n">vec</span><span class="p">.</span><span class="n">magnitude</span><span class="p">(</span><span class="n">vec</span><span class="p">))</span> <span class="c1">-- Call a method (output: 1)</span> <span class="nb">print</span><span class="p">(</span><span class="n">vec</span><span class="p">.</span><span class="n">x</span><span class="p">)</span> <span class="c1">-- Access a member variable (output: 0)</span> </pre></div> <p>Here, <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="nb">setmetatable</span></code> tells Lua to look for an element in the <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">Vector</span></code> table if it is not present in the <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">vec</span></code> table. <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">vec</span><span class="p">.</span><span class="n">magnitude</span></code>, which is equivalent to <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">vec</span><span class="p">[</span><span class="s2">&quot;magnitude&quot;</span><span class="p">]</span></code>, first looks in the <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">vec</span></code> table for the <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">magnitude</span></code> element. The <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">vec</span></code> table does not have a <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">magnitude</span></code> element, but its metatable delegates to the <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">Vector</span></code> table for the <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">magnitude</span></code> element when it's not found in the <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">vec</span></code> table. </p><p>Lua provides some <a href="/wiki/Syntactic_sugar" title="Syntactic sugar">syntactic sugar</a> to facilitate object orientation. To declare <a href="/wiki/Method_(computer_science)" class="mw-redirect" title="Method (computer science)">member functions</a> inside a prototype table, one can use <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="kr">function</span> <span class="nc">table</span><span class="p">:</span><span class="nf">func</span><span class="p">(</span><span class="n">args</span><span class="p">)</span></code>, which is equivalent to <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="kr">function</span> <span class="nc">table</span><span class="p">.</span><span class="nf">func</span><span class="p">(</span><span class="n">self</span><span class="p">,</span> <span class="n">args</span><span class="p">)</span></code>. Calling class methods also makes use of the colon: <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">object</span><span class="p">:</span><span class="n">func</span><span class="p">(</span><span class="n">args</span><span class="p">)</span></code> is equivalent to <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="n">object</span><span class="p">.</span><span class="n">func</span><span class="p">(</span><span class="n">object</span><span class="p">,</span> <span class="n">args</span><span class="p">)</span></code>. </p><p>That in mind, here is a corresponding class with <code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" style="" dir="ltr"><span class="p">:</span></code> syntactic sugar: </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">Vector</span> <span class="o">=</span> <span class="p">{}</span> <span class="n">Vector</span><span class="p">.</span><span class="n">__index</span> <span class="o">=</span> <span class="n">Vector</span> <span class="kr">function</span> <span class="nc">Vector</span><span class="p">:</span><span class="nf">new</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">,</span> <span class="n">z</span><span class="p">)</span> <span class="c1">-- The constructor</span> <span class="c1">-- Since the function definition uses a colon, </span> <span class="c1">-- its first argument is &quot;self&quot; which refers</span> <span class="c1">-- to &quot;Vector&quot;</span> <span class="kr">return</span> <span class="nb">setmetatable</span><span class="p">({</span><span class="n">x</span> <span class="o">=</span> <span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="o">=</span> <span class="n">y</span><span class="p">,</span> <span class="n">z</span> <span class="o">=</span> <span class="n">z</span><span class="p">},</span> <span class="n">self</span><span class="p">)</span> <span class="kr">end</span> <span class="kr">function</span> <span class="nc">Vector</span><span class="p">:</span><span class="nf">magnitude</span><span class="p">()</span> <span class="c1">-- Another method</span> <span class="c1">-- Reference the implicit object using self</span> <span class="kr">return</span> <span class="nb">math.sqrt</span><span class="p">(</span><span class="n">self</span><span class="p">.</span><span class="n">x</span><span class="o">^</span><span class="mi">2</span> <span class="o">+</span> <span class="n">self</span><span class="p">.</span><span class="n">y</span><span class="o">^</span><span class="mi">2</span> <span class="o">+</span> <span class="n">self</span><span class="p">.</span><span class="n">z</span><span class="o">^</span><span class="mi">2</span><span class="p">)</span> <span class="kr">end</span> <span class="kd">local</span> <span class="n">vec</span> <span class="o">=</span> <span class="n">Vector</span><span class="p">:</span><span class="n">new</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span> <span class="c1">-- Create a vector</span> <span class="nb">print</span><span class="p">(</span><span class="n">vec</span><span class="p">:</span><span class="n">magnitude</span><span class="p">())</span> <span class="c1">-- Call a method (output: 1)</span> <span class="nb">print</span><span class="p">(</span><span class="n">vec</span><span class="p">.</span><span class="n">x</span><span class="p">)</span> <span class="c1">-- Access a member variable (output: 0)</span> </pre></div> <div class="mw-heading mw-heading4"><h4 id="Inheritance">Inheritance</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=9" title="Edit section: Inheritance"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Lua supports using metatables to give Lua class inheritance.<sup id="cite_ref-15" class="reference"><a href="#cite_note-15"><span class="cite-bracket">&#91;</span>14<span class="cite-bracket">&#93;</span></a></sup> In this example, we allow vectors to have their values multiplied by a constant in a derived class. </p> <div class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><pre><span></span><span class="kd">local</span> <span class="n">Vector</span> <span class="o">=</span> <span class="p">{}</span> <span class="n">Vector</span><span class="p">.</span><span class="n">__index</span> <span class="o">=</span> <span class="n">Vector</span> <span class="kr">function</span> <span class="nc">Vector</span><span class="p">:</span><span class="nf">new</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">,</span> <span class="n">z</span><span class="p">)</span> <span class="c1">-- The constructor</span> <span class="c1">-- Here, self refers to whatever class&#39;s &quot;new&quot;</span> <span class="c1">-- method we call. In a derived class, self will</span> <span class="c1">-- be the derived class; in the Vector class, self</span> <span class="c1">-- will be Vector</span> <span class="kr">return</span> <span class="nb">setmetatable</span><span class="p">({</span><span class="n">x</span> <span class="o">=</span> <span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="o">=</span> <span class="n">y</span><span class="p">,</span> <span class="n">z</span> <span class="o">=</span> <span class="n">z</span><span class="p">},</span> <span class="n">self</span><span class="p">)</span> <span class="kr">end</span> <span class="kr">function</span> <span class="nc">Vector</span><span class="p">:</span><span class="nf">magnitude</span><span class="p">()</span> <span class="c1">-- Another method</span> <span class="c1">-- Reference the implicit object using self</span> <span class="kr">return</span> <span class="nb">math.sqrt</span><span class="p">(</span><span class="n">self</span><span class="p">.</span><span class="n">x</span><span class="o">^</span><span class="mi">2</span> <span class="o">+</span> <span class="n">self</span><span class="p">.</span><span class="n">y</span><span class="o">^</span><span class="mi">2</span> <span class="o">+</span> <span class="n">self</span><span class="p">.</span><span class="n">z</span><span class="o">^</span><span class="mi">2</span><span class="p">)</span> <span class="kr">end</span> <span class="c1">-- Example of class inheritance</span> <span class="kd">local</span> <span class="n">VectorMult</span> <span class="o">=</span> <span class="p">{}</span> <span class="n">VectorMult</span><span class="p">.</span><span class="n">__index</span> <span class="o">=</span> <span class="n">VectorMult</span> <span class="nb">setmetatable</span><span class="p">(</span><span class="n">VectorMult</span><span class="p">,</span> <span class="n">Vector</span><span class="p">)</span> <span class="c1">-- Make VectorMult a child of Vector</span> <span class="kr">function</span> <span class="nc">VectorMult</span><span class="p">:</span><span class="nf">multiply</span><span class="p">(</span><span class="n">value</span><span class="p">)</span> <span class="n">self</span><span class="p">.</span><span class="n">x</span> <span class="o">=</span> <span class="n">self</span><span class="p">.</span><span class="n">x</span> <span class="o">*</span> <span class="n">value</span> <span class="n">self</span><span class="p">.</span><span class="n">y</span> <span class="o">=</span> <span class="n">self</span><span class="p">.</span><span class="n">y</span> <span class="o">*</span> <span class="n">value</span> <span class="n">self</span><span class="p">.</span><span class="n">z</span> <span class="o">=</span> <span class="n">self</span><span class="p">.</span><span class="n">z</span> <span class="o">*</span> <span class="n">value</span> <span class="kr">return</span> <span class="n">self</span> <span class="kr">end</span> <span class="kd">local</span> <span class="n">vec</span> <span class="o">=</span> <span class="n">VectorMult</span><span class="p">:</span><span class="n">new</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span> <span class="c1">-- Create a vector</span> <span class="nb">print</span><span class="p">(</span><span class="n">vec</span><span class="p">:</span><span class="n">magnitude</span><span class="p">())</span> <span class="c1">-- Call a method (output: 1)</span> <span class="nb">print</span><span class="p">(</span><span class="n">vec</span><span class="p">.</span><span class="n">y</span><span class="p">)</span> <span class="c1">-- Access a member variable (output: 1)</span> <span class="n">vec</span><span class="p">:</span><span class="n">multiply</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span> <span class="c1">-- Multiply all components of vector by 2</span> <span class="nb">print</span><span class="p">(</span><span class="n">vec</span><span class="p">.</span><span class="n">y</span><span class="p">)</span> <span class="c1">-- Access member again (output: 2)</span> </pre></div> <p>Lua also supports <a href="/wiki/Multiple_inheritance" title="Multiple inheritance">multiple inheritance</a>; <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">__index</code> can either be a function or a table.<sup id="cite_ref-16" class="reference"><a href="#cite_note-16"><span class="cite-bracket">&#91;</span>15<span class="cite-bracket">&#93;</span></a></sup> <a href="/wiki/Operator_overloading" title="Operator overloading">Operator overloading</a> can also be done; Lua metatables can have elements such as <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">__add</code>, <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">__sub</code> and so on.<sup id="cite_ref-17" class="reference"><a href="#cite_note-17"><span class="cite-bracket">&#91;</span>16<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="Implementation">Implementation</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=10" title="Edit section: Implementation"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Lua programs are not <a href="/wiki/Interpreter_(computing)" title="Interpreter (computing)">interpreted</a> directly from the textual Lua file, but are <a href="/wiki/Compiler" title="Compiler">compiled</a> into bytecode, which is then run on the Lua <a href="/wiki/Virtual_machine" title="Virtual machine">virtual machine</a> (VM). The compiling process is typically invisible to the user and is performed during <a href="/wiki/Run_time_(program_lifecycle_phase)" class="mw-redirect" title="Run time (program lifecycle phase)">run-time</a>, especially when a <a href="/wiki/Just-in-time_compilation" title="Just-in-time compilation">just-in-time compilation</a> (JIT) compiler is used, but it can be done offline to increase loading performance or reduce the memory footprint of the host environment by leaving out the compiler. Lua bytecode can also be produced and executed from within Lua, using the <code>dump</code> function from the string library and the <code>load/loadstring/loadfile</code> functions. Lua version 5.3.4 is implemented in approximately 24,000 lines of C code.<sup id="cite_ref-luaspe_3-1" class="reference"><a href="#cite_note-luaspe-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-luaabout_4-2" class="reference"><a href="#cite_note-luaabout-4"><span class="cite-bracket">&#91;</span>4<span class="cite-bracket">&#93;</span></a></sup> </p><p>Like most CPUs, and unlike most virtual machines (which are <a href="/wiki/Stack_machine" title="Stack machine">stack-based</a>), the Lua VM is <a href="/wiki/Register_machine" title="Register machine">register-based</a>, and therefore more closely resembles most hardware design. The register architecture both avoids excessive copying of values, and reduces the total number of instructions per function. The virtual machine of Lua 5 is one of the first register-based pure VMs to have a wide use.<sup id="cite_ref-lua5impl_18-0" class="reference"><a href="#cite_note-lua5impl-18"><span class="cite-bracket">&#91;</span>17<span class="cite-bracket">&#93;</span></a></sup> <a href="/wiki/Parrot_virtual_machine" title="Parrot virtual machine">Parrot</a> and <a href="/wiki/Android_(operating_system)" title="Android (operating system)">Android</a>'s <a href="/wiki/Dalvik_(software)" title="Dalvik (software)">Dalvik</a> are two other well-known register-based VMs. PCScheme's VM was also register-based.<sup id="cite_ref-19" class="reference"><a href="#cite_note-19"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup> </p><p>This example is the bytecode listing of the factorial function defined <a href="#Factorial_example">above</a> (as shown by the <code>luac</code> 5.1 compiler):<sup id="cite_ref-luavm51instr_20-0" class="reference"><a href="#cite_note-luavm51instr-20"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup> </p> <pre>function &lt;factorial.lua:1,7&gt; (9 instructions, 36 bytes at 0x8063c60) 1 param, 6 slots, 0 upvalues, 6 locals, 2 constants, 0 functions 1 [2] LOADK 1 -1 ; 1 2 [3] LOADK 2 -2 ; 2 3 [3] MOVE 3 0 4 [3] LOADK 4 -1 ; 1 5 [3] FORPREP 2 1 ; to 7 6 [4] MUL 1 1 5 7 [3] FORLOOP 2 -2 ; to 6 8 [6] RETURN 1 2 9 [7] RETURN 0 1 </pre> <div class="mw-heading mw-heading2"><h2 id="C_API">C API</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=11" title="Edit section: C API"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Lua is intended to be embedded into other applications, and provides a <a href="/wiki/C_(programming_language)" title="C (programming language)">C</a> <a href="/wiki/Application_Programming_Interface" class="mw-redirect" title="Application Programming Interface">API</a> for this purpose. The API is divided into two parts: the Lua core and the Lua auxiliary library.<sup id="cite_ref-luarefman_21-0" class="reference"><a href="#cite_note-luarefman-21"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup> The Lua API's design eliminates the need for manual <a href="/wiki/Reference_counting" title="Reference counting">reference counting</a> (management) in C code, unlike <a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a>'s API. The API, like the language, is minimalist. Advanced functions are provided by the auxiliary library, which consists largely of <a href="/wiki/Preprocessor" title="Preprocessor">preprocessor</a> <a href="/wiki/Macro_(computer_science)" title="Macro (computer science)">macros</a> which assist with complex table operations. </p><p>The Lua C API is <a href="/wiki/Stack_(data_structure)" class="mw-redirect" title="Stack (data structure)">stack</a> based. Lua provides functions to push and pop most simple C data types (integers, floats, etc.) to and from the stack, and functions to manipulate tables through the stack. The Lua stack is somewhat different from a traditional stack; the stack can be indexed directly, for example. Negative indices indicate offsets from the top of the stack. For example, −1 is the top (most recently pushed value), while positive indices indicate offsets from the bottom (oldest value). <a href="/wiki/Marshalling_(computer_science)" title="Marshalling (computer science)">Marshalling</a> data between C and Lua functions is also done using the stack. To call a Lua function, arguments are pushed onto the stack, and then the <code>lua_call</code> is used to call the actual function. When writing a C function to be directly called from Lua, the arguments are read from the stack. </p><p>Here is an example of calling a Lua function from C: </p> <div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span></span><span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;stdio.h&gt;</span> <span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;lua.h&gt;</span><span class="c1"> // Lua main library (lua_*)</span> <span class="cp">#include</span><span class="w"> </span><span class="cpf">&lt;lauxlib.h&gt;</span><span class="c1"> // Lua auxiliary library (luaL_*)</span> <span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> <span class="p">{</span> <span class="w"> </span><span class="c1">// create a Lua state</span> <span class="w"> </span><span class="n">lua_State</span><span class="w"> </span><span class="o">*</span><span class="n">L</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">luaL_newstate</span><span class="p">();</span> <span class="w"> </span><span class="c1">// load and execute a string</span> <span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">luaL_dostring</span><span class="p">(</span><span class="n">L</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;function foo (x,y) return x+y end&quot;</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">lua_close</span><span class="p">(</span><span class="n">L</span><span class="p">);</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="c1">// push value of global &quot;foo&quot; (the function defined above)</span> <span class="w"> </span><span class="c1">// to the stack, followed by integers 5 and 3</span> <span class="w"> </span><span class="n">lua_getglobal</span><span class="p">(</span><span class="n">L</span><span class="p">,</span><span class="w"> </span><span class="s">&quot;foo&quot;</span><span class="p">);</span> <span class="w"> </span><span class="n">lua_pushinteger</span><span class="p">(</span><span class="n">L</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">);</span> <span class="w"> </span><span class="n">lua_pushinteger</span><span class="p">(</span><span class="n">L</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">);</span> <span class="w"> </span><span class="n">lua_call</span><span class="p">(</span><span class="n">L</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span><span class="w"> </span><span class="c1">// call a function with two arguments and one return value</span> <span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">&quot;Result: %d</span><span class="se">\n</span><span class="s">&quot;</span><span class="p">,</span><span class="w"> </span><span class="n">lua_tointeger</span><span class="p">(</span><span class="n">L</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">));</span><span class="w"> </span><span class="c1">// print integer value of item at stack top</span> <span class="w"> </span><span class="n">lua_pop</span><span class="p">(</span><span class="n">L</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span><span class="w"> </span><span class="c1">// return stack to original state</span> <span class="w"> </span><span class="n">lua_close</span><span class="p">(</span><span class="n">L</span><span class="p">);</span><span class="w"> </span><span class="c1">// close Lua state</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> <span class="p">}</span> </pre></div> <p>Running this example gives: </p> <div class="mw-highlight mw-highlight-lang-console mw-content-ltr" dir="ltr"><pre><span></span><span class="gp">$ </span>cc<span class="w"> </span>-o<span class="w"> </span>example<span class="w"> </span>example.c<span class="w"> </span>-llua <span class="gp">$ </span>./example <span class="go">Result: 8</span> </pre></div> <p>The C API also provides some special tables, located at various "pseudo-indices" in the Lua stack. At <code>LUA_GLOBALSINDEX</code> prior to Lua 5.2<sup id="cite_ref-Changes_in_the_API,_Lua_5.2_manual_22-0" class="reference"><a href="#cite_note-Changes_in_the_API,_Lua_5.2_manual-22"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup> is the globals table, <code>_G</code> from within Lua, which is the main <a href="/wiki/Namespace" title="Namespace">namespace</a>. There is also a registry located at <code>LUA_REGISTRYINDEX</code> where C programs can store Lua values for later retrieval. </p> <div class="mw-heading mw-heading3"><h3 id="Modules">Modules</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=12" title="Edit section: Modules"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Besides standard library (core) modules it is possible to write extensions using the Lua API. Extension modules are <a href="/wiki/Library_(computing)#Dynamic_linking" title="Library (computing)">shared objects</a> which can be used to extend the functions of the interpreter by providing native facilities to Lua scripts. Lua scripts may load extension modules using <code>require</code>,<sup id="cite_ref-luarefman_21-1" class="reference"><a href="#cite_note-luarefman-21"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup> just like modules written in Lua itself, or with <code>package.loadlib</code>.<sup id="cite_ref-23" class="reference"><a href="#cite_note-23"><span class="cite-bracket">&#91;</span>22<span class="cite-bracket">&#93;</span></a></sup> When a C library is loaded via <a href="/wiki/Foo" class="mw-redirect" title="Foo"><code class="mw-highlight mw-highlight-lang-lua mw-content-ltr" dir="ltr"><span class="nb">require</span><span class="p">(</span><span class="s1">&#39;foo&#39;</span><span class="p">)</span></code></a> Lua will look for the function <code>luaopen_foo</code> and call it, which acts as any C function callable from Lua and generally returns a table filled with methods. A growing set of modules termed <i>rocks</i> are available through a <a href="/wiki/Package_management_system" class="mw-redirect" title="Package management system">package management system</a> named <a href="/wiki/LuaRocks" title="LuaRocks">LuaRocks</a>,<sup id="cite_ref-24" class="reference"><a href="#cite_note-24"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup> in the spirit of <a href="/wiki/CPAN" title="CPAN">CPAN</a>, <a href="/wiki/RubyGems" title="RubyGems">RubyGems</a> and <a href="/w/index.php?title=Python_eggs&amp;action=edit&amp;redlink=1" class="new" title="Python eggs (page does not exist)">Python eggs</a>. Prewritten Lua <a href="/wiki/Language_binding" title="Language binding">bindings</a> exist for most popular programming languages, including other scripting languages.<sup id="cite_ref-25" class="reference"><a href="#cite_note-25"><span class="cite-bracket">&#91;</span>24<span class="cite-bracket">&#93;</span></a></sup> For C++, there are a number of template-based approaches and some automatic binding generators. </p> <div class="mw-heading mw-heading2"><h2 id="Applications">Applications</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=13" title="Edit section: Applications"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/List_of_applications_using_Lua" title="List of applications using Lua">List of applications using Lua</a></div> <p>In <a href="/wiki/Video_game_development" title="Video game development">video game development</a>, Lua is widely used as a <a href="/wiki/Scripting_language" title="Scripting language">scripting language</a>, mainly due to its perceived easiness to embed, fast execution, and short <a href="/wiki/Learning_curve" title="Learning curve">learning curve</a>.<sup id="cite_ref-26" class="reference"><a href="#cite_note-26"><span class="cite-bracket">&#91;</span>25<span class="cite-bracket">&#93;</span></a></sup> Notable games which use Lua include <i><a href="/wiki/Roblox" title="Roblox">Roblox</a></i>,<sup id="cite_ref-27" class="reference"><a href="#cite_note-27"><span class="cite-bracket">&#91;</span>26<span class="cite-bracket">&#93;</span></a></sup> <i><a href="/wiki/Garry%27s_Mod" title="Garry&#39;s Mod">Garry's Mod</a></i>, <i> <a href="/wiki/World_of_Warcraft" title="World of Warcraft">World of Warcraft</a></i>, <i><a href="/wiki/Payday_2" title="Payday 2">Payday 2</a></i>, <i><a href="/wiki/Phantasy_Star_Online_2" title="Phantasy Star Online 2">Phantasy Star Online 2</a></i>, <i><a href="/wiki/Dota_2" title="Dota 2">Dota 2</a></i>, <i><a href="/wiki/Crysis_(video_game)" title="Crysis (video game)">Crysis</a></i>,<sup id="cite_ref-28" class="reference"><a href="#cite_note-28"><span class="cite-bracket">&#91;</span>27<span class="cite-bracket">&#93;</span></a></sup> and many others. Some games that do not natively support Lua programming or scripting, have this function added by mods, as ComputerCraft does for <i><a href="/wiki/Minecraft" title="Minecraft">Minecraft</a></i>. Also, Lua is used in non-video game software, such as <a href="/wiki/Adobe_Lightroom" title="Adobe Lightroom">Adobe Lightroom</a>, <a href="/wiki/Moho_(software)" title="Moho (software)">Moho</a>, <a href="/wiki/IClone" title="IClone">iClone</a>, <a href="/wiki/Aerospike_(database)" title="Aerospike (database)">Aerospike</a>, and some system software in <a href="/wiki/FreeBSD" title="FreeBSD">FreeBSD</a> and <a href="/wiki/NetBSD" title="NetBSD">NetBSD</a>, and used as a template scripting language on <a href="/wiki/MediaWiki" title="MediaWiki">MediaWiki</a> using the Scribunto extension.<sup id="cite_ref-29" class="reference"><a href="#cite_note-29"><span class="cite-bracket">&#91;</span>28<span class="cite-bracket">&#93;</span></a></sup> </p><p>In 2003, a poll conducted by GameDev.net showed Lua was the most popular scripting language for game programming.<sup id="cite_ref-30" class="reference"><a href="#cite_note-30"><span class="cite-bracket">&#91;</span>29<span class="cite-bracket">&#93;</span></a></sup> On 12 January 2012, Lua was announced as a winner of the Front Line Award 2011 from the magazine <i><a href="/wiki/Game_Developer_(magazine)" title="Game Developer (magazine)">Game Developer</a></i> in the category Programming Tools.<sup id="cite_ref-31" class="reference"><a href="#cite_note-31"><span class="cite-bracket">&#91;</span>30<span class="cite-bracket">&#93;</span></a></sup> </p><p>Many non-game applications also use Lua for extensibility, such as <a href="/wiki/LuaTeX" title="LuaTeX">LuaTeX</a>, an implementation of the <a href="/wiki/TeX" title="TeX">TeX</a> type-setting language, <a href="/wiki/Redis" title="Redis">Redis</a>, a <a href="/wiki/Key-value_database" class="mw-redirect" title="Key-value database">key-value database</a>, <a href="/wiki/ScyllaDB" title="ScyllaDB">ScyllaDB</a>, a <a href="/wiki/Wide-column_store" title="Wide-column store">wide-column store</a>, <a href="/wiki/Neovim" class="mw-redirect" title="Neovim">Neovim</a>, a text editor, <a href="/wiki/Nginx" title="Nginx">Nginx</a>, a <a href="/wiki/Web_server" title="Web server">web server</a>, <a href="/wiki/Wireshark" title="Wireshark">Wireshark</a>, a network packet analyzer and <a href="/wiki/Pure_Data" title="Pure Data">Pure Data</a>, a visual audio programming language (through the <a rel="nofollow" class="external text" href="https://agraef.github.io/pd-lua/">pdlua</a> extension). </p><p>Through the Scribunto extension, Lua is available as a server-side scripting language in the <a href="/wiki/MediaWiki" title="MediaWiki">MediaWiki</a> software that runs <a href="/wiki/Wikipedia" title="Wikipedia">Wikipedia</a> and other wikis.<sup id="cite_ref-32" class="reference"><a href="#cite_note-32"><span class="cite-bracket">&#91;</span>31<span class="cite-bracket">&#93;</span></a></sup> Among its uses are allowing the integration of data from <a href="/wiki/Wikidata" title="Wikidata">Wikidata</a> into articles,<sup id="cite_ref-33" class="reference"><a href="#cite_note-33"><span class="cite-bracket">&#91;</span>32<span class="cite-bracket">&#93;</span></a></sup> and powering the <a href="/wiki/Wikipedia:Automated_taxobox_system" title="Wikipedia:Automated taxobox system">automated taxobox system</a>. </p> <div class="mw-heading mw-heading2"><h2 id="Derived_languages">Derived languages</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=14" title="Edit section: Derived languages"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Languages_that_compile_to_Lua">Languages that compile to Lua</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=15" title="Edit section: Languages that compile to Lua"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>MoonScript is a <a href="/wiki/Dynamic_programming_language" title="Dynamic programming language">dynamic</a>, <a href="/wiki/Whitespace_character" title="Whitespace character">whitespace</a>-sensitive <a href="/wiki/Scripting_language" title="Scripting language">scripting language</a> inspired by <a href="/wiki/CoffeeScript" title="CoffeeScript">CoffeeScript</a>, which is compiled into Lua. This means that instead of using <code>do</code> and <code>end</code> (or <code>{</code> and <code>}</code>) to delimit sections of code it uses <a href="/wiki/Line_break_(computing)" class="mw-redirect" title="Line break (computing)">line breaks</a> and <a href="/wiki/Indentation_style" title="Indentation style">indentation style</a>.<sup id="cite_ref-34" class="reference"><a href="#cite_note-34"><span class="cite-bracket">&#91;</span>33<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-35" class="reference"><a href="#cite_note-35"><span class="cite-bracket">&#91;</span>34<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-:1_36-0" class="reference"><a href="#cite_note-:1-36"><span class="cite-bracket">&#91;</span>35<span class="cite-bracket">&#93;</span></a></sup> A notable use of MoonScript is the video game distribution website <a href="/wiki/Itch.io" title="Itch.io">Itch.io</a>.</li> <li><a href="/wiki/Haxe" title="Haxe">Haxe</a> supports compiling to some Lua targets, including Lua 5.1-5.3 and <a href="/wiki/LuaJIT" title="LuaJIT">LuaJIT</a> 2.0 and 2.1.</li> <li>Fennel, a Lisp dialect that targets Lua.<sup id="cite_ref-:1_36-1" class="reference"><a href="#cite_note-:1-36"><span class="cite-bracket">&#91;</span>35<span class="cite-bracket">&#93;</span></a></sup></li> <li>Urn, a <a href="/wiki/Lisp_(programming_language)" title="Lisp (programming language)">Lisp</a> dialect built on Lua.<sup id="cite_ref-37" class="reference"><a href="#cite_note-37"><span class="cite-bracket">&#91;</span>36<span class="cite-bracket">&#93;</span></a></sup></li> <li>Amulet, an <a href="/wiki/ML_(programming_language)" title="ML (programming language)">ML</a>-like <a href="/wiki/Functional_programming" title="Functional programming">functional programming</a> language, which compiler emits Lua files.<sup id="cite_ref-38" class="reference"><a href="#cite_note-38"><span class="cite-bracket">&#91;</span>37<span class="cite-bracket">&#93;</span></a></sup></li> <li>LunarML, Standard ML compiler that produces Lua/JavaScript<sup id="cite_ref-39" class="reference"><a href="#cite_note-39"><span class="cite-bracket">&#91;</span>38<span class="cite-bracket">&#93;</span></a></sup></li></ul> <div class="mw-heading mw-heading3"><h3 id="Dialects">Dialects</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=16" title="Edit section: Dialects"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/LuaJIT" title="LuaJIT">LuaJIT</a>, a just-in-time compiler of Lua 5.1.<sup id="cite_ref-40" class="reference"><a href="#cite_note-40"><span class="cite-bracket">&#91;</span>39<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-41" class="reference"><a href="#cite_note-41"><span class="cite-bracket">&#91;</span>40<span class="cite-bracket">&#93;</span></a></sup></li> <li><a href="/wiki/Roblox#Roblox_Studio" title="Roblox">Luau</a> developed by <a href="/wiki/Roblox_Corporation" title="Roblox Corporation">Roblox Corporation</a>, a derivative of Lua 5.1 with <a href="/wiki/Gradual_typing" title="Gradual typing">gradual typing</a>, additional features and a focus on performance.<sup id="cite_ref-42" class="reference"><a href="#cite_note-42"><span class="cite-bracket">&#91;</span>41<span class="cite-bracket">&#93;</span></a></sup></li> <li>Ravi, a JIT-enabled Lua 5.3 language with optional static typing. JIT is guided by type information.<sup id="cite_ref-43" class="reference"><a href="#cite_note-43"><span class="cite-bracket">&#91;</span>42<span class="cite-bracket">&#93;</span></a></sup></li> <li>Shine, a fork of <a href="/wiki/LuaJIT" title="LuaJIT">LuaJIT</a> with many extensions, including a module system and a macro system.<sup id="cite_ref-44" class="reference"><a href="#cite_note-44"><span class="cite-bracket">&#91;</span>43<span class="cite-bracket">&#93;</span></a></sup></li> <li>Glua, a modified version embedded into the game <a href="/wiki/Garry%27s_Mod" title="Garry&#39;s Mod">Garry's Mod</a> as its scripting language.<sup id="cite_ref-45" class="reference"><a href="#cite_note-45"><span class="cite-bracket">&#91;</span>44<span class="cite-bracket">&#93;</span></a></sup></li> <li>Teal, a <a href="/wiki/Type_system#Static_type_checking" title="Type system">statically typed</a> Lua dialect written in Lua.<sup id="cite_ref-46" class="reference"><a href="#cite_note-46"><span class="cite-bracket">&#91;</span>45<span class="cite-bracket">&#93;</span></a></sup></li></ul> <p>In addition, the Lua users community provides some <i>power patches</i> on top of the reference C implementation.<sup id="cite_ref-47" class="reference"><a href="#cite_note-47"><span class="cite-bracket">&#91;</span>46<span class="cite-bracket">&#93;</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=17" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Comparison_of_programming_languages" title="Comparison of programming languages">Comparison of programming languages</a></li></ul> <div class="mw-heading mw-heading2"><h2 id="Notes">Notes</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=18" title="Edit section: Notes"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist reflist-lower-alpha"> <div class="mw-references-wrap"><ol class="references"> <li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text">Syntactic sugar, a table construct or literal string following an identifier is a valid function call.<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup></span> </li> </ol></div></div> <div class="mw-heading mw-heading2"><h2 id="References">References</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=19" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239543626"><div class="reflist"> <div class="mw-references-wrap mw-references-columns"><ol class="references"> <li id="cite_note-wikidata-a856f141bd953b6aacf5a1724577abc3018cbce1-v18-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-wikidata-a856f141bd953b6aacf5a1724577abc3018cbce1-v18_1-0">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://groups.google.com/g/lua-l/c/dOrigcoQin8">"&#91;ANN&#93; Lua 5.4.7 now available"</a>. 25 June 2024<span class="reference-accessdate">. Retrieved <span class="nowrap">27 June</span> 2024</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=%5BANN%5D+Lua+5.4.7+now+available&amp;rft.date=2024-06-25&amp;rft_id=https%3A%2F%2Fgroups.google.com%2Fg%2Flua-l%2Fc%2FdOrigcoQin8&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-The_Ring_programming_language_and_other_languages-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-The_Ring_programming_language_and_other_languages_2-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFRing_Team2017" class="citation web cs1">Ring Team (5 December 2017). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20181225175312/http://ring-lang.sourceforge.net/doc1.6/introduction.html#ring-and-other-languages">"The Ring programming language and other languages"</a>. <i>ring-lang.net</i>. Archived from <a rel="nofollow" class="external text" href="http://ring-lang.sourceforge.net/doc1.6/introduction.html#ring-and-other-languages">the original</a> on 25 December 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">5 December</span> 2017</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=ring-lang.net&amp;rft.atitle=The+Ring+programming+language+and+other+languages&amp;rft.date=2017-12-05&amp;rft.au=Ring+Team&amp;rft_id=http%3A%2F%2Fring-lang.sourceforge.net%2Fdoc1.6%2Fintroduction.html%23ring-and-other-languages&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-luaspe-3"><span class="mw-cite-backlink">^ <a href="#cite_ref-luaspe_3-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-luaspe_3-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFIerusalimschyde_FigueiredoFilho1996" class="citation journal cs1">Ierusalimschy, Roberto; de Figueiredo, Luiz Henrique; Filho, Waldemar Celes (June 1996). <a rel="nofollow" class="external text" href="https://www.lua.org/spe.html">"Lua—An Extensible Extension Language"</a>. <i>Software: Practice and Experience</i>. <b>26</b> (6): <span class="nowrap">635–</span>652. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1002%2F%28SICI%291097-024X%28199606%2926%3A6%3C635%3A%3AAID-SPE26%3E3.0.CO%3B2-P">10.1002/(SICI)1097-024X(199606)26:6&#60;635::AID-SPE26&#62;3.0.CO&#59;2-P</a>. <a href="/wiki/S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&#160;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:61066194">61066194</a><span class="reference-accessdate">. Retrieved <span class="nowrap">24 October</span> 2015</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Software%3A+Practice+and+Experience&amp;rft.atitle=Lua%E2%80%94An+Extensible+Extension+Language&amp;rft.volume=26&amp;rft.issue=6&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E635-%3C%2Fspan%3E652&amp;rft.date=1996-06&amp;rft_id=info%3Adoi%2F10.1002%2F%28SICI%291097-024X%28199606%2926%3A6%3C635%3A%3AAID-SPE26%3E3.0.CO%3B2-P&amp;rft_id=https%3A%2F%2Fapi.semanticscholar.org%2FCorpusID%3A61066194%23id-name%3DS2CID&amp;rft.aulast=Ierusalimschy&amp;rft.aufirst=Roberto&amp;rft.au=de+Figueiredo%2C+Luiz+Henrique&amp;rft.au=Filho%2C+Waldemar+Celes&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fspe.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-luaabout-4"><span class="mw-cite-backlink">^ <a href="#cite_ref-luaabout_4-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-luaabout_4-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-luaabout_4-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.lua.org/about.html#why">"About Lua"</a>. Lua.org<span class="reference-accessdate">. Retrieved <span class="nowrap">11 August</span> 2011</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=About+Lua&amp;rft.pub=Lua.org&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fabout.html%23why&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFTakhteyev2013" class="citation magazine cs1">Takhteyev, Yuri (21 April 2013). <a rel="nofollow" class="external text" href="https://www.foreignaffairs.com/articles/139332/yuri-takhteyev/from-brazil-to-wikipedia?page=2">"From Brazil to Wikipedia"</a>. <i><a href="/wiki/Foreign_Affairs" title="Foreign Affairs">Foreign Affairs</a></i><span class="reference-accessdate">. Retrieved <span class="nowrap">25 April</span> 2013</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Foreign+Affairs&amp;rft.atitle=From+Brazil+to+Wikipedia&amp;rft.date=2013-04-21&amp;rft.aulast=Takhteyev&amp;rft.aufirst=Yuri&amp;rft_id=https%3A%2F%2Fwww.foreignaffairs.com%2Farticles%2F139332%2Fyuri-takhteyev%2Ffrom-brazil-to-wikipedia%3Fpage%3D2&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-hopl2007-6"><span class="mw-cite-backlink">^ <a href="#cite_ref-hopl2007_6-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-hopl2007_6-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-hopl2007_6-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-hopl2007_6-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFIerusalimschyFigueiredoCeles2007" class="citation book cs1"><a href="/wiki/Roberto_Ierusalimschy" title="Roberto Ierusalimschy">Ierusalimschy, R.</a>; Figueiredo, L. H.; Celes, W. (2007). <a rel="nofollow" class="external text" href="https://www.lua.org/doc/hopl.pdf">"The evolution of Lua"</a> <span class="cs1-format">(PDF)</span>. <a rel="nofollow" class="external text" href="https://www.acm.org/sigs/sigplan/hopl"><i>Proceedings of the third ACM SIGPLAN conference on History of programming languages</i></a>. pp.&#160;2–1–2–26. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F1238844.1238846">10.1145/1238844.1238846</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-1-59593-766-7" title="Special:BookSources/978-1-59593-766-7"><bdi>978-1-59593-766-7</bdi></a>. <a href="/wiki/S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&#160;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:475143">475143</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=bookitem&amp;rft.atitle=The+evolution+of+Lua&amp;rft.btitle=Proceedings+of+the+third+ACM+SIGPLAN+conference+on+History+of+programming+languages&amp;rft.pages=2-1-2-26&amp;rft.date=2007&amp;rft_id=https%3A%2F%2Fapi.semanticscholar.org%2FCorpusID%3A475143%23id-name%3DS2CID&amp;rft_id=info%3Adoi%2F10.1145%2F1238844.1238846&amp;rft.isbn=978-1-59593-766-7&amp;rft.aulast=Ierusalimschy&amp;rft.aufirst=R.&amp;rft.au=Figueiredo%2C+L.+H.&amp;rft.au=Celes%2C+W.&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fdoc%2Fhopl.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-luahist2001-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-luahist2001_7-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.lua.org/history.html">"The evolution of an extension language: a history of Lua"</a>. 2001<span class="reference-accessdate">. Retrieved <span class="nowrap">18 December</span> 2008</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=The+evolution+of+an+extension+language%3A+a+history+of+Lua&amp;rft.date=2001&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fhistory.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span> </span> </li> <li id="cite_note-ddj96-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-ddj96_8-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFFigueiredoIerusalimschyCeles1996" class="citation news cs1">Figueiredo, L. H.; Ierusalimschy, R.; Celes, W. (December 1996). <a rel="nofollow" class="external text" href="https://www.lua.org/ddj.html">"Lua: an Extensible Embedded Language. A few metamechanisms replace a host of features"</a>. <i>Dr. Dobb's Journal</i>. Vol.&#160;21, no.&#160;12. pp.&#160;<span class="nowrap">26–</span>33.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Dr.+Dobb%27s+Journal&amp;rft.atitle=Lua%3A+an+Extensible+Embedded+Language.+A+few+metamechanisms+replace+a+host+of+features&amp;rft.volume=21&amp;rft.issue=12&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E26-%3C%2Fspan%3E33&amp;rft.date=1996-12&amp;rft.aulast=Figueiredo&amp;rft.aufirst=L.+H.&amp;rft.au=Ierusalimschy%2C+R.&amp;rft.au=Celes%2C+W.&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fddj.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.lua.org/pil/1.html">"Programming in Lua&#160;: 1"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Programming+in+Lua+%3A+1&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fpil%2F1.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.lua.org/manual/5.0/manual.html#2.5.7">"Lua 5.0 Reference Manual, 2.5.7, Function Calls"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Lua+5.0+Reference+Manual%2C+2.5.7%2C+Function+Calls&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fmanual%2F5.0%2Fmanual.html%232.5.7&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.lua.org/manual/5.1/manual.html#2.3">"Lua 5.1 Reference Manual"</a>. 2014<span class="reference-accessdate">. Retrieved <span class="nowrap">27 February</span> 2014</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Lua+5.1+Reference+Manual&amp;rft.date=2014&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fmanual%2F5.1%2Fmanual.html%232.3&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-13">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.lua.org/manual/5.1/manual.html#2.5.5">"Lua 5.1 Reference Manual"</a>. 2012<span class="reference-accessdate">. Retrieved <span class="nowrap">16 October</span> 2012</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Lua+5.1+Reference+Manual&amp;rft.date=2012&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fmanual%2F5.1%2Fmanual.html%232.5.5&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-lobject_h_array-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-lobject_h_array_14-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.lua.org/source/5.1/lobject.h.html#array">"Lua 5.1 Source Code"</a>. 2006<span class="reference-accessdate">. Retrieved <span class="nowrap">24 March</span> 2011</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Lua+5.1+Source+Code&amp;rft.date=2006&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fsource%2F5.1%2Flobject.h.html%23array&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-15">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFRoberto_Ierusalimschy" class="citation book cs1">Roberto Ierusalimschy. <i>Programming in Lua, 4th Edition</i>. p.&#160;165.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Programming+in+Lua%2C+4th+Edition&amp;rft.pages=165&amp;rft.au=Roberto+Ierusalimschy&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-16">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.lua.org/pil/16.3.html">"Programming in Lua&#160;: 16.3"</a>. <i>Lua</i><span class="reference-accessdate">. Retrieved <span class="nowrap">16 September</span> 2021</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Lua&amp;rft.atitle=Programming+in+Lua+%3A+16.3&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fpil%2F16.3.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-17">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20210916182214/http://lua-users.org/wiki/MetamethodsTutorial">"Metamethods Tutorial"</a>. <i>lua-users wiki</i>. Archived from <a rel="nofollow" class="external text" href="http://lua-users.org/wiki/MetamethodsTutorial">the original</a> on 16 September 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">16 September</span> 2021</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=lua-users+wiki&amp;rft.atitle=Metamethods+Tutorial&amp;rft_id=http%3A%2F%2Flua-users.org%2Fwiki%2FMetamethodsTutorial&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-lua5impl-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-lua5impl_18-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFIerusalimschyFigueiredoCeles2005" class="citation journal cs1">Ierusalimschy, R.; Figueiredo, L. H.; Celes, W. (2005). <a rel="nofollow" class="external text" href="http://www.jucs.org/jucs_11_7/the_implementation_of_lua/jucs_11_7_1159_1176_defigueiredo.html">"The implementation of Lua 5.0"</a>. <i>J. Of Universal Comp. Sci</i>. <b>11</b> (7): <span class="nowrap">1159–</span>1176. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.3217%2Fjucs-011-07-1159">10.3217/jucs-011-07-1159</a></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=J.+Of+Universal+Comp.+Sci.&amp;rft.atitle=The+implementation+of+Lua+5.0&amp;rft.volume=11&amp;rft.issue=7&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E1159-%3C%2Fspan%3E1176&amp;rft.date=2005&amp;rft_id=info%3Adoi%2F10.3217%2Fjucs-011-07-1159&amp;rft.aulast=Ierusalimschy&amp;rft.aufirst=R.&amp;rft.au=Figueiredo%2C+L.+H.&amp;rft.au=Celes%2C+W.&amp;rft_id=http%3A%2F%2Fwww.jucs.org%2Fjucs_11_7%2Fthe_implementation_of_lua%2Fjucs_11_7_1159_1176_defigueiredo.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-19">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFTexas_Instruments1990" class="citation book cs1">Texas Instruments (1990). <i>PC Scheme: Users Guide and Language Reference Manual, Trade Edition</i>. MIP Press. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/0-262-70040-9" title="Special:BookSources/0-262-70040-9"><bdi>0-262-70040-9</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=PC+Scheme%3A+Users+Guide+and+Language+Reference+Manual%2C+Trade+Edition&amp;rft.pub=MIP+Press&amp;rft.date=1990&amp;rft.isbn=0-262-70040-9&amp;rft.au=Texas+Instruments&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-luavm51instr-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-luavm51instr_20-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFMan2006" class="citation web cs1">Man, Kein-Hong (2006). <a rel="nofollow" class="external text" href="https://talk.pokitto.com/uploads/default/original/2X/7/716c67a0b5b1636cbc4dc1fec232ca2536cb74d1.pdf">"A No-Frills Introduction to Lua 5.1 VM Instructions"</a> <span class="cs1-format">(PDF)</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=A+No-Frills+Introduction+to+Lua+5.1+VM+Instructions&amp;rft.date=2006&amp;rft.aulast=Man&amp;rft.aufirst=Kein-Hong&amp;rft_id=https%3A%2F%2Ftalk.pokitto.com%2Fuploads%2Fdefault%2Foriginal%2F2X%2F7%2F716c67a0b5b1636cbc4dc1fec232ca2536cb74d1.pdf&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-luarefman-21"><span class="mw-cite-backlink">^ <a href="#cite_ref-luarefman_21-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-luarefman_21-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.lua.org/manual/5.2/">"Lua 5.2 Reference Manual"</a>. Lua.org<span class="reference-accessdate">. Retrieved <span class="nowrap">23 October</span> 2012</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Lua+5.2+Reference+Manual&amp;rft.pub=Lua.org&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fmanual%2F5.2%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-Changes_in_the_API,_Lua_5.2_manual-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-Changes_in_the_API,_Lua_5.2_manual_22-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFIerusalimschyde_FigueiredoCeles2011–2013" class="citation book cs1">Ierusalimschy, Roberto; de Figueiredo, Luiz Henrique; Celes, Waldemar (2011–2013). <a rel="nofollow" class="external text" href="https://www.lua.org/manual/5.2/manual.html#8.3"><i>Changes in the API</i></a>. Lua.org<span class="reference-accessdate">. Retrieved <span class="nowrap">9 May</span> 2014</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Changes+in+the+API&amp;rft.pub=Lua.org&amp;rft.date=2011%2F2013&amp;rft.aulast=Ierusalimschy&amp;rft.aufirst=Roberto&amp;rft.au=de+Figueiredo%2C+Luiz+Henrique&amp;rft.au=Celes%2C+Waldemar&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fmanual%2F5.2%2Fmanual.html%238.3&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span> <span class="cs1-visible-error citation-comment"><code class="cs1-code">{{<a href="/wiki/Template:Cite_book" title="Template:Cite book">cite book</a>}}</code>: </span><span class="cs1-visible-error citation-comment"><code class="cs1-code">&#124;work=</code> ignored (<a href="/wiki/Help:CS1_errors#periodical_ignored" title="Help:CS1 errors">help</a>)</span></span> </li> <li id="cite_note-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-23">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFIerusalimschyde_FigueiredoCeles" class="citation web cs1">Ierusalimschy, Roberto; de Figueiredo, Luiz Henrique; Celes, Waldemar. <a rel="nofollow" class="external text" href="https://www.lua.org/manual/5.4/manual.html#pdf-package.loadlib">"Lua 5.4 Reference Manual"</a>. <i>Lua</i><span class="reference-accessdate">. Retrieved <span class="nowrap">1 June</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Lua&amp;rft.atitle=Lua+5.4+Reference+Manual&amp;rft.aulast=Ierusalimschy&amp;rft.aufirst=Roberto&amp;rft.au=de+Figueiredo%2C+Luiz+Henrique&amp;rft.au=Celes%2C+Waldemar&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fmanual%2F5.4%2Fmanual.html%23pdf-package.loadlib&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-24"><span class="mw-cite-backlink"><b><a href="#cite_ref-24">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://luarocks.org/">"LuaRocks"</a>. luarocks.org<span class="reference-accessdate">. Retrieved <span class="nowrap">24 May</span> 2009</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=LuaRocks&amp;rft.pub=luarocks.org&amp;rft_id=https%3A%2F%2Fluarocks.org%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-25">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20090727080345/http://lua-users.org/wiki/BindingCodeToLua">"Binding Code To Lua"</a>. Lua-users wiki. Archived from <a rel="nofollow" class="external text" href="http://lua-users.org/wiki/BindingCodeToLua">the original</a> on 27 July 2009<span class="reference-accessdate">. Retrieved <span class="nowrap">24 May</span> 2009</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Binding+Code+To+Lua&amp;rft.pub=Lua-users+wiki&amp;rft_id=http%3A%2F%2Flua-users.org%2Fwiki%2FBindingCodeToLua&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-26">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20130820131611/http://stackoverflow.com/questions/38338/why-is-lua-considered-a-game-language">"Why is Lua considered a game language?"</a>. <i>Stack Overflow</i>. Archived from <a rel="nofollow" class="external text" href="https://stackoverflow.com/questions/38338/why-is-lua-considered-a-game-language">the original</a> on 20 August 2013<span class="reference-accessdate">. Retrieved <span class="nowrap">22 April</span> 2017</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Stack+Overflow&amp;rft.atitle=Why+is+Lua+considered+a+game+language%3F&amp;rft_id=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F38338%2Fwhy-is-lua-considered-a-game-language&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-27"><span class="mw-cite-backlink"><b><a href="#cite_ref-27">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://luau-lang.org/why.html">"Why Lua<i>u</i>?"</a>. <i>Luau</i><span class="reference-accessdate">. Retrieved <span class="nowrap">23 March</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Luau&amp;rft.atitle=Why+Luau%3F&amp;rft_id=https%3A%2F%2Fluau-lang.org%2Fwhy.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-28"><span class="mw-cite-backlink"><b><a href="#cite_ref-28">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://crymp.net/thread?id=347">"Introduction to Crysis server-side modding"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">23 March</span> 2022</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Introduction+to+Crysis+server-side+modding&amp;rft_id=https%3A%2F%2Fcrymp.net%2Fthread%3Fid%3D347&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-29"><span class="mw-cite-backlink"><b><a href="#cite_ref-29">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://wow.gamepedia.com/Lua_functions">"Lua Functions"</a>. <i>wow.gamepedia.com</i><span class="reference-accessdate">. Retrieved <span class="nowrap">1 March</span> 2021</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=wow.gamepedia.com&amp;rft.atitle=Lua+Functions&amp;rft_id=https%3A%2F%2Fwow.gamepedia.com%2FLua_functions&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-30"><span class="mw-cite-backlink"><b><a href="#cite_ref-30">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20031207171619/http://gamedev.net/gdpolls/viewpoll.asp?ID=163">"Poll Results"</a>. Archived from the original on 7 December 2003<span class="reference-accessdate">. Retrieved <span class="nowrap">22 April</span> 2017</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Poll+Results&amp;rft_id=https%3A%2F%2Fgamedev.net%2Fgdpolls%2Fviewpoll.asp%3FID%3D163&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span><span class="cs1-maint citation-comment"><code class="cs1-code">{{<a href="/wiki/Template:Cite_web" title="Template:Cite web">cite web</a>}}</code>: CS1 maint: bot: original URL status unknown (<a href="/wiki/Category:CS1_maint:_bot:_original_URL_status_unknown" title="Category:CS1 maint: bot: original URL status unknown">link</a>)</span></span> </li> <li id="cite_note-31"><span class="mw-cite-backlink"><b><a href="#cite_ref-31">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20130615013638/http://www.gdmag.com/blog/2012/01/front-line-award-winners.php">"Front Line Award Winners Announced"</a>. Archived from <a rel="nofollow" class="external text" href="http://www.gdmag.com/blog/2012/01/front-line-award-winners.php">the original</a> on 15 June 2013<span class="reference-accessdate">. Retrieved <span class="nowrap">22 April</span> 2017</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Front+Line+Award+Winners+Announced&amp;rft_id=http%3A%2F%2Fwww.gdmag.com%2Fblog%2F2012%2F01%2Ffront-line-award-winners.php&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-32"><span class="mw-cite-backlink"><b><a href="#cite_ref-32">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a class="external text" href="https://www.mediawiki.org/wiki/Extension:Scribunto">"Extension:Scribunto - MediaWiki"</a>. <i>MediaWiki.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">21 February</span> 2019</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=MediaWiki.org&amp;rft.atitle=Extension%3AScribunto+-+MediaWiki&amp;rft_id=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FExtension%3AScribunto&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-33"><span class="mw-cite-backlink"><b><a href="#cite_ref-33">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a class="external text" href="https://www.wikidata.org/wiki/Wikidata:Infobox_Tutorial">"Wikidata:Infobox Tutorial - Wikidata"</a>. <i>www.wikidata.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">21 December</span> 2018</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=www.wikidata.org&amp;rft.atitle=Wikidata%3AInfobox+Tutorial+-+Wikidata&amp;rft_id=https%3A%2F%2Fwww.wikidata.org%2Fwiki%2FWikidata%3AInfobox_Tutorial&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-34"><span class="mw-cite-backlink"><b><a href="#cite_ref-34">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://moonscript.org/reference/">"Language Guide - MoonScript 0.5.0"</a>. <i>moonscript.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">25 September</span> 2020</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=moonscript.org&amp;rft.atitle=Language+Guide+-+MoonScript+0.5.0&amp;rft_id=https%3A%2F%2Fmoonscript.org%2Freference%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-35"><span class="mw-cite-backlink"><b><a href="#cite_ref-35">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFleaf2020" class="citation web cs1">leaf (23 September 2020). <a rel="nofollow" class="external text" href="https://github.com/leafo/moonscript">"leafo/moonscript"</a>. <i><a href="/wiki/GitHub" title="GitHub">GitHub</a></i><span class="reference-accessdate">. Retrieved <span class="nowrap">25 September</span> 2020</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=GitHub&amp;rft.atitle=leafo%2Fmoonscript&amp;rft.date=2020-09-23&amp;rft.au=leaf&amp;rft_id=https%3A%2F%2Fgithub.com%2Fleafo%2Fmoonscript&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-:1-36"><span class="mw-cite-backlink">^ <a href="#cite_ref-:1_36-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-:1_36-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFGarzia" class="citation web cs1">Garzia, Andre Alves. <a rel="nofollow" class="external text" href="https://andregarzia.com/2020/06/languages-that-compile-to-lua.html">"Languages that compile to Lua"</a>. <i>AndreGarzia.com</i><span class="reference-accessdate">. Retrieved <span class="nowrap">25 September</span> 2020</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=AndreGarzia.com&amp;rft.atitle=Languages+that+compile+to+Lua&amp;rft.aulast=Garzia&amp;rft.aufirst=Andre+Alves&amp;rft_id=https%3A%2F%2Fandregarzia.com%2F2020%2F06%2Flanguages-that-compile-to-lua.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-37"><span class="mw-cite-backlink"><b><a href="#cite_ref-37">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://urn-lang.com/">"Urn: A Lisp implementation for Lua | Urn"</a>. <i>urn-lang.com</i><span class="reference-accessdate">. Retrieved <span class="nowrap">12 January</span> 2021</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=urn-lang.com&amp;rft.atitle=Urn%3A+A+Lisp+implementation+for+Lua+%7C+Urn&amp;rft_id=https%3A%2F%2Furn-lang.com%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-38"><span class="mw-cite-backlink"><b><a href="#cite_ref-38">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://amulet.works/">"Amulet ML"</a>. <i>amulet.works</i><span class="reference-accessdate">. Retrieved <span class="nowrap">12 January</span> 2021</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=amulet.works&amp;rft.atitle=Amulet+ML&amp;rft_id=https%3A%2F%2Famulet.works%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-39"><span class="mw-cite-backlink"><b><a href="#cite_ref-39">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/minoki/LunarML">"LunarML, Standard ML compiler that produces Lua/JavaScript"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=LunarML%2C+Standard+ML+compiler+that+produces+Lua%2FJavaScript&amp;rft_id=https%3A%2F%2Fgithub.com%2Fminoki%2FLunarML&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-40"><span class="mw-cite-backlink"><b><a href="#cite_ref-40">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://luajit.org/luajit.html">"LuaJIT"</a>. <i>LuaJIT</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=LuaJIT&amp;rft.atitle=LuaJIT&amp;rft_id=https%3A%2F%2Fluajit.org%2Fluajit.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-41"><span class="mw-cite-backlink"><b><a href="#cite_ref-41">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://luajit.org/extensions.html">"Extensions"</a>. <i>LuaJIT</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=LuaJIT&amp;rft.atitle=Extensions&amp;rft_id=https%3A%2F%2Fluajit.org%2Fextensions.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-42"><span class="mw-cite-backlink"><b><a href="#cite_ref-42">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://luau-lang.org/why">"Why Luau?"</a>. <i>Luau</i><span class="reference-accessdate">. Retrieved <span class="nowrap">3 August</span> 2024</span>. <q>All of these motivated us to start reshaping Lua 5.1 that we started from into a new, derivative language that we call Luau. Our focus is on making the language more performant and feature-rich, and make it easier to write robust code through a combination of linting and type checking using a gradual type system.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Luau&amp;rft.atitle=Why+Luau%3F&amp;rft_id=https%3A%2F%2Fluau-lang.org%2Fwhy&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-43"><span class="mw-cite-backlink"><b><a href="#cite_ref-43">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://ravilang.github.io/">"Ravi Programming Language"</a>. <i>GitHub</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=GitHub&amp;rft.atitle=Ravi+Programming+Language&amp;rft_id=http%3A%2F%2Fravilang.github.io%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-44"><span class="mw-cite-backlink"><b><a href="#cite_ref-44">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFHundt2021" class="citation web cs1">Hundt, Richard (22 April 2021). <a rel="nofollow" class="external text" href="https://github.com/richardhundt/shine">"richardhundt/shine"</a>. <i><a href="/wiki/GitHub" title="GitHub">GitHub</a></i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=GitHub&amp;rft.atitle=richardhundt%2Fshine&amp;rft.date=2021-04-22&amp;rft.aulast=Hundt&amp;rft.aufirst=Richard&amp;rft_id=https%3A%2F%2Fgithub.com%2Frichardhundt%2Fshine&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-45"><span class="mw-cite-backlink"><b><a href="#cite_ref-45">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://wiki.facepunch.com/gmod/">"Garry's Mod Wiki"</a>. <i>wiki.facepunch.com</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=wiki.facepunch.com&amp;rft.atitle=Garry%27s+Mod+Wiki&amp;rft_id=https%3A%2F%2Fwiki.facepunch.com%2Fgmod%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-46"><span class="mw-cite-backlink"><b><a href="#cite_ref-46">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation cs2"><a rel="nofollow" class="external text" href="https://github.com/teal-language/tl"><i>teal-language/tl</i></a>, Teal language, 23 December 2024<span class="reference-accessdate">, retrieved <span class="nowrap">23 December</span> 2024</span></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=teal-language%2Ftl&amp;rft.pub=Teal+language&amp;rft.date=2024-12-23&amp;rft_id=https%3A%2F%2Fgithub.com%2Fteal-language%2Ftl&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> <li id="cite_note-47"><span class="mw-cite-backlink"><b><a href="#cite_ref-47">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20210518114041/http://lua-users.org/wiki/LuaPowerPatches">"Lua Power Patches"</a>. <i>lua-users.org</i>. Archived from <a rel="nofollow" class="external text" href="http://lua-users.org/wiki/LuaPowerPatches">the original</a> on 18 May 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">18 May</span> 2021</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=lua-users.org&amp;rft.atitle=Lua+Power+Patches&amp;rft_id=http%3A%2F%2Flua-users.org%2Fwiki%2FLuaPowerPatches&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></span> </li> </ol></div></div> <div class="mw-heading mw-heading2"><h2 id="Further_reading">Further reading</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=20" title="Edit section: Further reading"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFIerusalimschy2013" class="citation book cs1">Ierusalimschy, R. (2013). <a rel="nofollow" class="external text" href="https://www.lua.org/pil/"><i>Programming in Lua</i></a> (3rd&#160;ed.). Lua.org. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-85-903798-5-0" title="Special:BookSources/978-85-903798-5-0"><bdi>978-85-903798-5-0</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Programming+in+Lua&amp;rft.edition=3rd&amp;rft.pub=Lua.org&amp;rft.date=2013&amp;rft.isbn=978-85-903798-5-0&amp;rft.aulast=Ierusalimschy&amp;rft.aufirst=R.&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fpil%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span> (The 1st ed. is available <a rel="nofollow" class="external text" href="https://www.lua.org/pil/contents.html">online</a>.)</li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFGutschmidt2003" class="citation book cs1">Gutschmidt, T. (2003). <i>Game Programming with Python, Lua, and Ruby</i>. Course Technology PTR. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-1-59200-077-7" title="Special:BookSources/978-1-59200-077-7"><bdi>978-1-59200-077-7</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Game+Programming+with+Python%2C+Lua%2C+and+Ruby&amp;rft.pub=Course+Technology+PTR&amp;rft.date=2003&amp;rft.isbn=978-1-59200-077-7&amp;rft.aulast=Gutschmidt&amp;rft.aufirst=T.&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFSchuytemaManyen2005" class="citation book cs1">Schuytema, P.; Manyen, M. (2005). <i>Game Development with Lua</i>. Charles River Media. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-1-58450-404-7" title="Special:BookSources/978-1-58450-404-7"><bdi>978-1-58450-404-7</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Game+Development+with+Lua&amp;rft.pub=Charles+River+Media&amp;rft.date=2005&amp;rft.isbn=978-1-58450-404-7&amp;rft.aulast=Schuytema&amp;rft.aufirst=P.&amp;rft.au=Manyen%2C+M.&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFJungBrown2007" class="citation book cs1">Jung, K.; Brown, A. (2007). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180708015602/https://www.wrox.com/WileyCDA/WroxTitle/productCd-0470069171.html"><i>Beginning Lua Programming</i></a>. <a href="/wiki/Wrox_Press" title="Wrox Press">Wrox Press</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-0-470-06917-2" title="Special:BookSources/978-0-470-06917-2"><bdi>978-0-470-06917-2</bdi></a>. Archived from <a rel="nofollow" class="external text" href="https://www.wrox.com/WileyCDA/WroxTitle/productCd-0470069171.html">the original</a> on 8 July 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">7 July</span> 2018</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Beginning+Lua+Programming&amp;rft.pub=Wrox+Press&amp;rft.date=2007&amp;rft.isbn=978-0-470-06917-2&amp;rft.aulast=Jung&amp;rft.aufirst=K.&amp;rft.au=Brown%2C+A.&amp;rft_id=https%3A%2F%2Fwww.wrox.com%2FWileyCDA%2FWroxTitle%2FproductCd-0470069171.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFFigueiredoCelesIerusalimschy2008" class="citation book cs1">Figueiredo, L. H.; Celes, W.; Ierusalimschy, R., eds. (2008). <a rel="nofollow" class="external text" href="https://www.lua.org/gems/"><i>Lua Programming Gems</i></a>. Lua.org. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-85-903798-4-3" title="Special:BookSources/978-85-903798-4-3"><bdi>978-85-903798-4-3</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Lua+Programming+Gems&amp;rft.pub=Lua.org&amp;rft.date=2008&amp;rft.isbn=978-85-903798-4-3&amp;rft_id=https%3A%2F%2Fwww.lua.org%2Fgems%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFTakhteyev2012" class="citation book cs1">Takhteyev, Yuri (2012). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20121102000628/http://codingplaces.net/"><i>Coding Places: Software Practice in a South American City</i></a>. <a href="/wiki/The_MIT_Press" class="mw-redirect" title="The MIT Press">The MIT Press</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-0-262-01807-4" title="Special:BookSources/978-0-262-01807-4"><bdi>978-0-262-01807-4</bdi></a>. Archived from <a rel="nofollow" class="external text" href="https://codingplaces.net/">the original</a> on 2 November 2012.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Coding+Places%3A+Software+Practice+in+a+South+American+City&amp;rft.pub=The+MIT+Press&amp;rft.date=2012&amp;rft.isbn=978-0-262-01807-4&amp;rft.aulast=Takhteyev&amp;rft.aufirst=Yuri&amp;rft_id=https%3A%2F%2Fcodingplaces.net%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span> Chapters 6 and 7 are dedicated to Lua, while others look at software in Brazil more broadly.</li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFVarma2012" class="citation book cs1">Varma, Jayant (2012). <a rel="nofollow" class="external text" href="https://www.amazon.com/exec/obidos/ASIN/1430246626/lua-docs-20"><i>Learn Lua for iOS Game Development</i></a>. <a href="/wiki/Apress" class="mw-redirect" title="Apress">Apress</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/978-1-4302-4662-6" title="Special:BookSources/978-1-4302-4662-6"><bdi>978-1-4302-4662-6</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Learn+Lua+for+iOS+Game+Development&amp;rft.pub=Apress&amp;rft.date=2012&amp;rft.isbn=978-1-4302-4662-6&amp;rft.aulast=Varma&amp;rft.aufirst=Jayant&amp;rft_id=https%3A%2F%2Fwww.amazon.com%2Fexec%2Fobidos%2FASIN%2F1430246626%2Flua-docs-20&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFMatheson,_Ash2003" class="citation web cs1">Matheson, Ash (29 April 2003). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20121218104442/http://www.gamedev.net/page/resources/_/technical/game-programming/an-introduction-to-lua-r1932">"An Introduction to Lua"</a>. <i>GameDev.net</i>. Archived from <a rel="nofollow" class="external text" href="https://www.gamedev.net/page/resources/_/technical/game-programming/an-introduction-to-lua-r1932">the original</a> on 18 December 2012<span class="reference-accessdate">. Retrieved <span class="nowrap">3 January</span> 2013</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=GameDev.net&amp;rft.atitle=An+Introduction+to+Lua&amp;rft.date=2003-04-29&amp;rft.au=Matheson%2C+Ash&amp;rft_id=https%3A%2F%2Fwww.gamedev.net%2Fpage%2Fresources%2F_%2Ftechnical%2Fgame-programming%2Fan-introduction-to-lua-r1932&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFFieldhouse2006" class="citation web cs1">Fieldhouse, Keith (16 February 2006). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20060312124121/http://www.onlamp.com/pub/a/onlamp/2006/02/16/introducing-lua.html">"Introducing Lua"</a>. <i>ONLamp.com</i>. <a href="/wiki/O%27Reilly_Media" title="O&#39;Reilly Media">O'Reilly Media</a>. Archived from <a rel="nofollow" class="external text" href="http://www.onlamp.com/pub/a/onlamp/2006/02/16/introducing-lua.html">the original</a> on 12 March 2006<span class="reference-accessdate">. Retrieved <span class="nowrap">28 February</span> 2006</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=ONLamp.com&amp;rft.atitle=Introducing+Lua&amp;rft.date=2006-02-16&amp;rft.aulast=Fieldhouse&amp;rft.aufirst=Keith&amp;rft_id=http%3A%2F%2Fwww.onlamp.com%2Fpub%2Fa%2Fonlamp%2F2006%2F02%2F16%2Fintroducing-lua.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFStreicher2006" class="citation web cs1">Streicher, Martin (28 April 2006). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20090702111603/http://www.ibm.com/developerworks/linux/library/l-lua.html">"Embeddable scripting with Lua"</a>. <i>developerWorks</i>. <a href="/wiki/IBM" title="IBM">IBM</a>. Archived from <a rel="nofollow" class="external text" href="https://www.ibm.com/developerworks/linux/library/l-lua.html">the original</a> on 2 July 2009<span class="reference-accessdate">. Retrieved <span class="nowrap">7 July</span> 2018</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=developerWorks&amp;rft.atitle=Embeddable+scripting+with+Lua&amp;rft.date=2006-04-28&amp;rft.aulast=Streicher&amp;rft.aufirst=Martin&amp;rft_id=https%3A%2F%2Fwww.ibm.com%2Fdeveloperworks%2Flinux%2Flibrary%2Fl-lua.html&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFQuigley2007" class="citation journal cs1">Quigley, Joseph (1 June 2007). <a rel="nofollow" class="external text" href="https://www.linuxjournal.com/article/9605">"A Look at Lua"</a>. <i><a href="/wiki/Linux_Journal" title="Linux Journal">Linux Journal</a></i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Linux+Journal&amp;rft.atitle=A+Look+at+Lua&amp;rft.date=2007-06-01&amp;rft.aulast=Quigley&amp;rft.aufirst=Joseph&amp;rft_id=https%3A%2F%2Fwww.linuxjournal.com%2Farticle%2F9605&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span></li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFHamilton2008" class="citation news cs1">Hamilton, Naomi (11 September 2008). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180708020030/https://www.computerworld.com.au/article/260022/a-z_programming_languages_lua/">"The A-Z of Programming Languages: Lua"</a>. <i><a href="/wiki/Computerworld" title="Computerworld">Computerworld</a></i>. <a href="/wiki/International_Data_Group" title="International Data Group">IDG</a>. Archived from <a rel="nofollow" class="external text" href="https://www.computerworld.com.au/article/260022/a-z_programming_languages_lua/">the original</a> on 8 July 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">7 July</span> 2018</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Computerworld&amp;rft.atitle=The+A-Z+of+Programming+Languages%3A+Lua&amp;rft.date=2008-09-11&amp;rft.aulast=Hamilton&amp;rft.aufirst=Naomi&amp;rft_id=https%3A%2F%2Fwww.computerworld.com.au%2Farticle%2F260022%2Fa-z_programming_languages_lua%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span> Interview with Roberto Ierusalimschy.</li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFIerusalimschyde_FigueiredoCeles2011" class="citation journal cs1">Ierusalimschy, Roberto; de Figueiredo, Luiz Henrique; Celes, Waldemar (12 May 2011). <a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F1978862.1983083">"Passing a Language through the Eye of a Needle"</a>. <i><a href="/wiki/ACM_Queue" title="ACM Queue">ACM Queue</a></i>. <b>9</b> (5): <span class="nowrap">20–</span>29. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F1978862.1983083">10.1145/1978862.1983083</a></span>. <a href="/wiki/S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&#160;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:19484689">19484689</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=ACM+Queue&amp;rft.atitle=Passing+a+Language+through+the+Eye+of+a+Needle&amp;rft.volume=9&amp;rft.issue=5&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E20-%3C%2Fspan%3E29&amp;rft.date=2011-05-12&amp;rft_id=info%3Adoi%2F10.1145%2F1978862.1983083&amp;rft_id=https%3A%2F%2Fapi.semanticscholar.org%2FCorpusID%3A19484689%23id-name%3DS2CID&amp;rft.aulast=Ierusalimschy&amp;rft.aufirst=Roberto&amp;rft.au=de+Figueiredo%2C+Luiz+Henrique&amp;rft.au=Celes%2C+Waldemar&amp;rft_id=https%3A%2F%2Fdoi.org%2F10.1145%252F1978862.1983083&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span> How the embeddability of Lua impacted its design.</li> <li><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFIerusalimschyde_FigueiredoCeles2018" class="citation journal cs1">Ierusalimschy, Roberto; de Figueiredo, Luiz Henrique; Celes, Waldemar (November 2018). <a rel="nofollow" class="external text" href="https://cacm.acm.org/magazines/2018/11/232214-a-look-at-the-design-of-lua">"A Look at the Design of Lua"</a>. <i><a href="/wiki/Communications_of_the_ACM" title="Communications of the ACM">Communications of the ACM</a></i>. <b>61</b> (11): <span class="nowrap">114–</span>123. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F3186277">10.1145/3186277</a>. <a href="/wiki/S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&#160;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:53114923">53114923</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=article&amp;rft.jtitle=Communications+of+the+ACM&amp;rft.atitle=A+Look+at+the+Design+of+Lua&amp;rft.volume=61&amp;rft.issue=11&amp;rft.pages=%3Cspan+class%3D%22nowrap%22%3E114-%3C%2Fspan%3E123&amp;rft.date=2018-11&amp;rft_id=info%3Adoi%2F10.1145%2F3186277&amp;rft_id=https%3A%2F%2Fapi.semanticscholar.org%2FCorpusID%3A53114923%23id-name%3DS2CID&amp;rft.aulast=Ierusalimschy&amp;rft.aufirst=Roberto&amp;rft.au=de+Figueiredo%2C+Luiz+Henrique&amp;rft.au=Celes%2C+Waldemar&amp;rft_id=https%3A%2F%2Fcacm.acm.org%2Fmagazines%2F2018%2F11%2F232214-a-look-at-the-design-of-lua&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ALua+%28programming+language%29" class="Z3988"></span><sup class="noprint Inline-Template"><span style="white-space: nowrap;">&#91;<i><a href="/wiki/Wikipedia:Link_rot" title="Wikipedia:Link rot"><span title="&#160;Dead link tagged June 2020">permanent dead link</span></a></i><span style="visibility:hidden; color:transparent; padding-left:2px">&#8205;</span>&#93;</span></sup></li> <li><a rel="nofollow" class="external text" href="https://www.lua.org/papers.html">Lua papers and theses</a></li></ul> <div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Lua_(programming_language)&amp;action=edit&amp;section=21" title="Edit section: External links"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1235681985">.mw-parser-output .side-box{margin:4px 0;box-sizing:border-box;border:1px solid #aaa;font-size:88%;line-height:1.25em;background-color:var(--background-color-interactive-subtle,#f8f9fa);display:flow-root}.mw-parser-output .side-box-abovebelow,.mw-parser-output .side-box-text{padding:0.25em 0.9em}.mw-parser-output .side-box-image{padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .side-box-imageright{padding:2px 0.9em 2px 0;text-align:center}@media(min-width:500px){.mw-parser-output .side-box-flex{display:flex;align-items:center}.mw-parser-output .side-box-text{flex:1;min-width:0}}@media(min-width:720px){.mw-parser-output .side-box{width:238px}.mw-parser-output .side-box-right{clear:right;float:right;margin-left:1em}.mw-parser-output .side-box-left{margin-right:1em}}</style><style data-mw-deduplicate="TemplateStyles:r1237033735">@media print{body.ns-0 .mw-parser-output .sistersitebox{display:none!important}}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-en-v2.svg"]{background-color:white}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-en-v2.svg"]{background-color:white}}</style><div class="side-box side-box-right plainlinks sistersitebox"><style data-mw-deduplicate="TemplateStyles:r1126788409">.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}</style> <div class="side-box-flex"> <div class="side-box-image"><span class="noviewer" typeof="mw:File"><a href="/wiki/File:Wikibooks-logo-en-noslogan.svg" class="mw-file-description"><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/d/df/Wikibooks-logo-en-noslogan.svg/40px-Wikibooks-logo-en-noslogan.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/df/Wikibooks-logo-en-noslogan.svg/60px-Wikibooks-logo-en-noslogan.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/d/df/Wikibooks-logo-en-noslogan.svg/80px-Wikibooks-logo-en-noslogan.svg.png 2x" data-file-width="400" data-file-height="400" /></a></span></div> <div class="side-box-text plainlist">Wikibooks has a book on the topic of: <i><b><a href="https://en.wikibooks.org/wiki/Lua_Programming" class="extiw" title="wikibooks:Lua Programming">Lua Programming</a></b></i></div></div> </div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1235681985"><style data-mw-deduplicate="TemplateStyles:r1250146164">.mw-parser-output .sister-box .side-box-abovebelow{padding:0.75em 0;text-align:center}.mw-parser-output .sister-box .side-box-abovebelow>b{display:block}.mw-parser-output .sister-box .side-box-text>ul{border-top:1px solid #aaa;padding:0.75em 0;width:217px;margin:0 auto}.mw-parser-output .sister-box .side-box-text>ul>li{min-height:31px}.mw-parser-output .sister-logo{display:inline-block;width:31px;line-height:31px;vertical-align:middle;text-align:center}.mw-parser-output .sister-link{display:inline-block;margin-left:4px;width:182px;vertical-align:middle}@media print{body.ns-0 .mw-parser-output .sistersitebox{display:none!important}}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-v2.svg"]{background-color:white}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-v2.svg"]{background-color:white}}</style><div role="navigation" aria-labelledby="sister-projects" class="side-box metadata side-box-right sister-box sistersitebox plainlinks"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1126788409"> <div class="side-box-abovebelow"> <b>Lua</b> at Wikipedia's <a href="/wiki/Wikipedia:Wikimedia_sister_projects" title="Wikipedia:Wikimedia sister projects"><span id="sister-projects">sister projects</span></a></div> <div class="side-box-flex"> <div class="side-box-text plainlist"><ul><li><span class="sister-logo"><span class="mw-valign-middle" typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/2/24/Wikinews-logo.svg/27px-Wikinews-logo.svg.png" decoding="async" width="27" height="15" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/2/24/Wikinews-logo.svg/41px-Wikinews-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/2/24/Wikinews-logo.svg/54px-Wikinews-logo.svg.png 2x" data-file-width="759" data-file-height="415" /></span></span></span><span class="sister-link"><a href="https://en.wikinews.org/wiki/Special:Search/Lua_(programming_language)" class="extiw" title="n:Special:Search/Lua (programming language)">News</a> from Wikinews</span></li><li><span class="sister-logo"><span class="mw-valign-middle" typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/27px-Wikibooks-logo.svg.png" decoding="async" width="27" height="27" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/41px-Wikibooks-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/54px-Wikibooks-logo.svg.png 2x" data-file-width="300" data-file-height="300" /></span></span></span><span class="sister-link"><a href="https://en.wikibooks.org/wiki/Lua_Programming" class="extiw" title="b:Lua Programming">Textbooks</a> from Wikibooks</span></li><li><span class="sister-logo"><span class="mw-valign-middle" typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Wikiversity_logo_2017.svg/27px-Wikiversity_logo_2017.svg.png" decoding="async" width="27" height="22" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Wikiversity_logo_2017.svg/41px-Wikiversity_logo_2017.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Wikiversity_logo_2017.svg/54px-Wikiversity_logo_2017.svg.png 2x" data-file-width="626" data-file-height="512" /></span></span></span><span class="sister-link"><a href="https://en.wikiversity.org/wiki/Lua" class="extiw" title="v:Lua">Resources</a> from Wikiversity</span></li></ul></div></div> </div> <ul><li><span class="official-website"><span class="url"><a rel="nofollow" class="external text" href="https://lua.org">Official website</a></span></span> <span class="mw-valign-text-top" typeof="mw:File/Frameless"><a href="https://www.wikidata.org/wiki/Q207316#P856" title="Edit this at Wikidata"><img alt="Edit this at Wikidata" src="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/10px-OOjs_UI_icon_edit-ltr-progressive.svg.png" decoding="async" width="10" height="10" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/15px-OOjs_UI_icon_edit-ltr-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/20px-OOjs_UI_icon_edit-ltr-progressive.svg.png 2x" data-file-width="20" data-file-height="20" /></a></span></li> <li><a rel="nofollow" class="external text" href="http://lua-users.org/">Lua Users</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20101216084624/http://lua-users.org/">Archived</a> 16 December 2010 at the <a href="/wiki/Wayback_Machine" title="Wayback Machine">Wayback Machine</a>, Community</li> <li><a rel="nofollow" class="external text" href="https://luaforum.com">Lua Forum</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210928172635/https://www.luaforum.com/">Archived</a> 28 September 2021 at the <a href="/wiki/Wayback_Machine" title="Wayback Machine">Wayback Machine</a></li> <li><a rel="nofollow" class="external text" href="https://luadist.org">LuaDist</a></li> <li><a rel="nofollow" class="external text" href="https://luarocks.org/">Lua Rocks - Package manager</a></li> <li><a rel="nofollow" class="external text" href="https://web.archive.org/web/20070202005230/http://luaforge.net/">Projects in Lua</a></li></ul> <div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1236075235">.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}</style></div><div role="navigation" class="navbox" aria-labelledby="Lua_programming238" style="padding:3px"><table class="nowraplinks mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><style data-mw-deduplicate="TemplateStyles:r1239400231">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Lua_programming_language" title="Template:Lua programming language"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Lua_programming_language" title="Template talk:Lua programming language"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Lua_programming_language" title="Special:EditPage/Template:Lua programming language"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Lua_programming238" style="font-size:114%;margin:0 4em"><a class="mw-selflink selflink">Lua programming</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Porting" title="Porting">Ports</a>, <a href="/wiki/Software_distribution" title="Software distribution">distributions</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Plua" title="Plua">Plua</a></li> <li><a href="/wiki/L%C3%96VE_(game_framework)" class="mw-redirect" title="LÖVE (game framework)">LÖVE</a></li> <li><a href="/wiki/Solar2D" title="Solar2D">Solar2D</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Package_manager" title="Package manager">Package manager</a></th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/LuaRocks" title="LuaRocks">LuaRocks</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Integrated_development_environment" title="Integrated development environment">IDEs</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Unknown_Worlds_Entertainment" title="Unknown Worlds Entertainment">Decoda</a></li> <li><a href="/wiki/SciTE" title="SciTE">SciTE</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Application_software" title="Application software">Applications</a>, <a href="/wiki/Software_framework" title="Software framework">frameworks</a></th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/OpenResty" title="OpenResty">OpenResty</a></li> <li><a href="/wiki/Prosody_(software)" title="Prosody (software)">Prosody</a></li> <li><a href="/wiki/Torch_(machine_learning)" title="Torch (machine learning)">Torch</a></li> <li><a href="/wiki/Tarantool" title="Tarantool">Tarantool</a></li> <li><a href="/wiki/IUP_(software)" title="IUP (software)">IUP</a></li> <li><a href="/wiki/List_of_applications_using_Lua" title="List of applications using Lua">List of applications using Lua</a></li></ul> </div></td></tr></tbody></table></div> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236075235"></div><div role="navigation" class="navbox" aria-labelledby="Free_and_open-source_software510" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239400231"><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:FOSS" title="Template:FOSS"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:FOSS" title="Template talk:FOSS"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:FOSS" title="Special:EditPage/Template:FOSS"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Free_and_open-source_software510" style="font-size:114%;margin:0 4em"><a href="/wiki/Free_and_open-source_software" title="Free and open-source software">Free and open-source software</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">General</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Alternative_terms_for_free_software" title="Alternative terms for free software">Alternative terms for free software</a></li> <li><a href="/wiki/Comparison_of_open-source_and_closed-source_software" title="Comparison of open-source and closed-source software">Comparison of open-source and closed-source software</a></li> <li><a href="/wiki/Comparison_of_source-code-hosting_facilities" title="Comparison of source-code-hosting facilities">Comparison of source-code-hosting facilities</a></li> <li><a href="/wiki/Free_software" title="Free software">Free software</a></li> <li><a href="/wiki/List_of_free_software_project_directories" title="List of free software project directories">Free software project directories</a></li> <li><a href="/wiki/Gratis_versus_libre" title="Gratis versus libre">Gratis versus libre</a></li> <li><a href="/wiki/Long-term_support" title="Long-term support">Long-term support</a></li> <li><a href="/wiki/Open-source_software" title="Open-source software">Open-source software</a></li> <li><a href="/wiki/Open-source_software_development" title="Open-source software development">Open-source software development</a></li> <li><a href="/wiki/Outline_of_free_software" title="Outline of free software">Outline</a></li> <li><a href="/wiki/Timeline_of_free_and_open-source_software" title="Timeline of free and open-source software">Timeline</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/List_of_free_and_open-source_software_packages" title="List of free and open-source software packages">Software<br />packages</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Comparison_of_free_software_for_audio" title="Comparison of free software for audio">Audio</a></li> <li><a href="/wiki/List_of_open-source_bioinformatics_software" title="List of open-source bioinformatics software">Bioinformatics</a></li> <li><a href="/wiki/List_of_open-source_codecs" title="List of open-source codecs">Codecs</a></li> <li><a href="/wiki/Comparison_of_open-source_configuration_management_software" title="Comparison of open-source configuration management software">Configuration management</a></li> <li><a href="/wiki/Device_driver" title="Device driver">Drivers</a> <ul><li><a href="/wiki/Free_and_open-source_graphics_device_driver" title="Free and open-source graphics device driver">Graphics</a></li> <li><a href="/wiki/Comparison_of_open-source_wireless_drivers" title="Comparison of open-source wireless drivers">Wireless</a></li></ul></li> <li><a href="/wiki/List_of_open-source_health_software" title="List of open-source health software">Health</a></li> <li><a href="/wiki/List_of_open-source_software_for_mathematics" title="List of open-source software for mathematics">Mathematics</a></li> <li><a href="/wiki/List_of_office_suites" title="List of office suites">Office suites</a></li> <li><a href="/wiki/Comparison_of_open-source_operating_systems" title="Comparison of open-source operating systems">Operating systems</a></li> <li><a href="/wiki/List_of_open-source_routing_platforms" title="List of open-source routing platforms">Routing</a></li> <li><a href="/wiki/List_of_free_television_software" title="List of free television software">Television</a></li> <li><a href="/wiki/List_of_open-source_video_games" title="List of open-source video games">Video games</a></li> <li><a href="/wiki/List_of_free_and_open-source_web_applications" title="List of free and open-source web applications">Web applications</a> <ul><li><a href="/wiki/Comparison_of_shopping_cart_software" title="Comparison of shopping cart software">E-commerce</a></li></ul></li> <li><a href="/wiki/List_of_free_and_open-source_Android_applications" title="List of free and open-source Android applications">Android apps</a></li> <li><a href="/wiki/List_of_free_and_open-source_iOS_applications" title="List of free and open-source iOS applications">iOS apps</a></li> <li><a href="/wiki/List_of_commercial_open-source_applications_and_services" title="List of commercial open-source applications and services">Commercial</a></li> <li><a href="/wiki/List_of_formerly_proprietary_software" title="List of formerly proprietary software">Formerly proprietary</a></li> <li><a href="/wiki/List_of_formerly_free_and_open-source_software" class="mw-redirect" title="List of formerly free and open-source software">Formerly open-source</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Community_of_practice" title="Community of practice">Community</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Free_software_movement" title="Free software movement">Free software movement</a></li> <li><a href="/wiki/History_of_free_and_open-source_software" title="History of free and open-source software">History</a></li> <li><a href="/wiki/Open-source-software_movement" class="mw-redirect" title="Open-source-software movement">Open-source-software movement</a></li> <li><a href="/wiki/List_of_free-software_events" title="List of free-software events">Events</a></li> <li><a href="/wiki/Open-source_software_advocacy" title="Open-source software advocacy">Advocacy</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/List_of_free_and_open-source_software_organizations" title="List of free and open-source software organizations">Organisations</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Free_Software_Movement_of_India" title="Free Software Movement of India">Free Software Movement of India</a></li> <li><a href="/wiki/Free_Software_Foundation" title="Free Software Foundation">Free Software Foundation</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Free-software_license" title="Free-software license">Licenses</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Academic_Free_License" title="Academic Free License">AFL</a></li> <li><a href="/wiki/Apache_License" title="Apache License">Apache</a></li> <li><a href="/wiki/Apple_Public_Source_License" title="Apple Public Source License">APSL</a></li> <li><a href="/wiki/Artistic_License" title="Artistic License">Artistic</a></li> <li><a href="/wiki/Beerware" title="Beerware">Beerware</a></li> <li><a href="/wiki/BSD_licenses" title="BSD licenses">BSD</a></li> <li><a href="/wiki/Creative_Commons_license" title="Creative Commons license">Creative Commons</a></li> <li><a href="/wiki/Common_Development_and_Distribution_License" title="Common Development and Distribution License">CDDL</a></li> <li><a href="/wiki/Eclipse_Public_License" title="Eclipse Public License">EPL</a></li> <li><a href="/wiki/Free_Software_Foundation" title="Free Software Foundation">Free Software Foundation</a> <ul><li><a href="/wiki/GNU_General_Public_License" title="GNU General Public License">GNU GPL</a></li> <li><a href="/wiki/GNU_Affero_General_Public_License" title="GNU Affero General Public License">GNU AGPL</a></li> <li><a href="/wiki/GNU_Lesser_General_Public_License" title="GNU Lesser General Public License">GNU LGPL</a></li></ul></li> <li><a href="/wiki/ISC_license" title="ISC license">ISC</a></li> <li><a href="/wiki/MIT_License" title="MIT License">MIT</a></li> <li><a href="/wiki/Mozilla_Public_License" title="Mozilla Public License">MPL</a></li> <li><a href="/wiki/Python_License" title="Python License">Python</a></li> <li><a href="/wiki/Python_Software_Foundation_License" title="Python Software Foundation License">Python Software Foundation License</a></li> <li><a href="/wiki/Shared_Source_Initiative" title="Shared Source Initiative">Shared Source Initiative</a></li> <li><a href="/wiki/Sleepycat_License" class="mw-redirect" title="Sleepycat License">Sleepycat</a></li> <li><a href="/wiki/Unlicense" title="Unlicense">Unlicense</a></li> <li><a href="/wiki/WTFPL" title="WTFPL">WTFPL</a></li> <li><a href="/wiki/Zlib_License" title="Zlib License">zlib</a></li></ul> </div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th id="Types_and_standards23" scope="row" class="navbox-group" style="width:1%">Types and<br /> standards</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Comparison_of_free_and_open-source_software_licenses" title="Comparison of free and open-source software licenses">Comparison of licenses</a></li> <li><a href="/wiki/Contributor_License_Agreement" title="Contributor License Agreement">Contributor License Agreement</a></li> <li><a href="/wiki/Copyleft" title="Copyleft">Copyleft</a></li> <li><a href="/wiki/Debian_Free_Software_Guidelines" class="mw-redirect" title="Debian Free Software Guidelines">Debian Free Software Guidelines</a></li> <li><a href="/wiki/Definition_of_Free_Cultural_Works" title="Definition of Free Cultural Works">Definition of Free Cultural Works</a></li> <li><a href="/wiki/Free_license" title="Free license">Free license</a></li> <li><a href="/wiki/The_Free_Software_Definition" title="The Free Software Definition">The Free Software Definition</a></li> <li><a href="/wiki/The_Open_Source_Definition" title="The Open Source Definition">The Open Source Definition</a></li> <li><a href="/wiki/Open-source_license" title="Open-source license">Open-source license</a></li> <li><a href="/wiki/Permissive_software_license" title="Permissive software license">Permissive software license</a></li> <li><a href="/wiki/Public_domain" title="Public domain">Public domain</a></li></ul> </div></td></tr></tbody></table><div> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Challenges</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Digital_rights_management" title="Digital rights management">Digital rights management</a></li> <li><a href="/wiki/License_proliferation" title="License proliferation">License proliferation</a></li> <li><a href="/wiki/Mozilla_software_rebranded_by_Debian" class="mw-redirect" title="Mozilla software rebranded by Debian">Mozilla software rebranding</a></li> <li><a href="/wiki/Proprietary_device_driver" class="mw-redirect" title="Proprietary device driver">Proprietary device drivers</a></li> <li><a href="/wiki/Proprietary_firmware" title="Proprietary firmware">Proprietary firmware</a></li> <li><a href="/wiki/Proprietary_software" title="Proprietary software">Proprietary software</a></li> <li><a href="/wiki/SCO%E2%80%93Linux_disputes" title="SCO–Linux disputes">SCO/Linux controversies</a></li> <li><a href="/wiki/Software_patents_and_free_software" title="Software patents and free software">Software patents</a></li> <li><a href="/wiki/Open-source_software_security" title="Open-source software security">Software security</a></li> <li><a href="/wiki/Tivoization" title="Tivoization">Tivoization</a></li> <li><a href="/wiki/Trusted_Computing" title="Trusted Computing">Trusted Computing</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Related <br />topics</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Fork_(software_development)" title="Fork (software development)">Forking</a></li> <li><i><a href="/wiki/GNU_Manifesto" title="GNU Manifesto">GNU Manifesto</a></i></li> <li><a href="/wiki/Microsoft_Open_Specification_Promise" title="Microsoft Open Specification Promise">Microsoft Open Specification Promise</a></li> <li><a href="/wiki/Open-core_model" title="Open-core model">Open-core model</a></li> <li><a href="/wiki/Open-source_hardware" title="Open-source hardware">Open-source hardware</a></li> <li><a href="/wiki/Shared_Source_Initiative" title="Shared Source Initiative">Shared Source Initiative</a></li> <li><a href="/wiki/Source-available_software" title="Source-available software">Source-available software</a></li> <li><i><a href="/wiki/The_Cathedral_and_the_Bazaar" title="The Cathedral and the Bazaar">The Cathedral and the Bazaar</a></i></li> <li><i><a href="/wiki/Revolution_OS" title="Revolution OS">Revolution OS</a></i></li></ul> </div></td></tr><tr><td class="navbox-abovebelow" colspan="2" style="font-weight:bold"><div> <ul><li><span class="noviewer" typeof="mw:File"><a href="/wiki/File:Symbol_portal_class.svg" class="mw-file-description" title="Portal"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/e/e2/Symbol_portal_class.svg/16px-Symbol_portal_class.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/e/e2/Symbol_portal_class.svg/23px-Symbol_portal_class.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/e/e2/Symbol_portal_class.svg/31px-Symbol_portal_class.svg.png 2x" data-file-width="180" data-file-height="185" /></a></span> <a href="/wiki/Portal:Free_and_open-source_software" title="Portal:Free and open-source software">Portal</a></li> <li><span class="noviewer" typeof="mw:File"><span title="Category"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/16px-Symbol_category_class.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/23px-Symbol_category_class.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/31px-Symbol_category_class.svg.png 2x" data-file-width="180" data-file-height="185" /></span></span> <a href="/wiki/Category:Free_software" title="Category:Free software">Category</a></li></ul> </div></td></tr></tbody></table></div> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236075235"></div><div role="navigation" class="navbox" aria-labelledby="Programming_languages625" style="padding:3px"><table class="nowraplinks hlist mw-collapsible expanded navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239400231"><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Programming_languages" title="Template:Programming languages"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Programming_languages" title="Template talk:Programming languages"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Programming_languages" title="Special:EditPage/Template:Programming languages"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Programming_languages625" style="font-size:114%;margin:0 4em"><a href="/wiki/Programming_language" title="Programming language">Programming languages</a></div></th></tr><tr><td class="navbox-abovebelow" colspan="2"><div> <ul><li><a href="/wiki/Comparison_of_programming_languages" title="Comparison of programming languages">Comparison</a></li> <li><a href="/wiki/Timeline_of_programming_languages" title="Timeline of programming languages">Timeline</a></li> <li><a href="/wiki/History_of_programming_languages" title="History of programming languages">History</a></li></ul> </div></td></tr><tr><td colspan="2" class="navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Ada_(programming_language)" title="Ada (programming language)">Ada</a></li> <li><a href="/wiki/ALGOL" title="ALGOL">ALGOL</a> <ul><li><a href="/wiki/Simula" title="Simula">Simula</a></li></ul></li> <li><a href="/wiki/APL_(programming_language)" title="APL (programming language)">APL</a></li> <li><a href="/wiki/Assembly_language" title="Assembly language">Assembly</a></li> <li><a href="/wiki/BASIC" title="BASIC">BASIC</a> <ul><li><a href="/wiki/Visual_Basic" title="Visual Basic">Visual Basic</a> <ul><li><a href="/wiki/Visual_Basic_(classic)" title="Visual Basic (classic)">classic</a></li> <li><a href="/wiki/Visual_Basic_(.NET)" title="Visual Basic (.NET)">.NET</a></li></ul></li></ul></li> <li><a href="/wiki/C_(programming_language)" title="C (programming language)">C</a></li> <li><a href="/wiki/C%2B%2B" title="C++">C++</a></li> <li><a href="/wiki/C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a></li> <li><a href="/wiki/COBOL" title="COBOL">COBOL</a></li> <li><a href="/wiki/Erlang_(programming_language)" title="Erlang (programming language)">Erlang</a></li> <li><a href="/wiki/Forth_(programming_language)" title="Forth (programming language)">Forth</a></li> <li><a href="/wiki/Fortran" title="Fortran">Fortran</a></li> <li><a href="/wiki/Go_(programming_language)" title="Go (programming language)">Go</a></li> <li><a href="/wiki/Haskell" title="Haskell">Haskell</a></li> <li><a href="/wiki/Java_(programming_language)" title="Java (programming language)">Java</a></li> <li><a href="/wiki/JavaScript" title="JavaScript">JavaScript</a></li> <li><a href="/wiki/Julia_(programming_language)" title="Julia (programming language)">Julia</a></li> <li><a href="/wiki/Kotlin_(programming_language)" title="Kotlin (programming language)">Kotlin</a></li> <li><a href="/wiki/Lisp_(programming_language)" title="Lisp (programming language)">Lisp</a></li> <li><a class="mw-selflink selflink">Lua</a></li> <li><a href="/wiki/MATLAB" title="MATLAB">MATLAB</a></li> <li><a href="/wiki/ML_(programming_language)" title="ML (programming language)">ML</a></li> <li><a href="/wiki/Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a> <ul><li><a href="/wiki/Object_Pascal" title="Object Pascal">Object Pascal</a></li></ul></li> <li><a href="/wiki/Perl" title="Perl">Perl</a></li> <li><a href="/wiki/PHP" title="PHP">PHP</a></li> <li><a href="/wiki/Prolog" title="Prolog">Prolog</a></li> <li><a href="/wiki/Python_(programming_language)" title="Python (programming language)">Python</a></li> <li><a href="/wiki/R_(programming_language)" title="R (programming language)">R</a></li> <li><a href="/wiki/Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a></li> <li><a href="/wiki/Rust_(programming_language)" title="Rust (programming language)">Rust</a></li> <li><a href="/wiki/SQL" title="SQL">SQL</a></li> <li><a href="/wiki/Scratch_(programming_language)" title="Scratch (programming language)">Scratch</a></li> <li><a href="/wiki/Shell_script" title="Shell script">Shell</a></li> <li><a href="/wiki/Smalltalk" title="Smalltalk">Smalltalk</a></li> <li><a href="/wiki/Swift_(programming_language)" title="Swift (programming language)">Swift</a></li> <li><i><a href="/wiki/List_of_programming_languages" title="List of programming languages">more...</a></i></li></ul> </div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div> <ul><li><span class="noviewer" typeof="mw:File"><span title="List-Class article"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/d/db/Symbol_list_class.svg/16px-Symbol_list_class.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/d/db/Symbol_list_class.svg/23px-Symbol_list_class.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/d/db/Symbol_list_class.svg/31px-Symbol_list_class.svg.png 2x" data-file-width="180" data-file-height="185" /></span></span> <b>Lists:</b> <a href="/wiki/List_of_programming_languages" title="List of programming languages">Alphabetical</a></li> <li><a href="/wiki/List_of_programming_languages_by_type" title="List of programming languages by type">Categorical</a></li> <li><a href="/wiki/Generational_list_of_programming_languages" title="Generational list of programming languages">Generational</a></li> <li><a href="/wiki/Non-English-based_programming_languages" title="Non-English-based programming languages">Non-English-based</a></li> <li><span class="noviewer" typeof="mw:File"><span title="Category"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/16px-Symbol_category_class.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/23px-Symbol_category_class.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/31px-Symbol_category_class.svg.png 2x" data-file-width="180" data-file-height="185" /></span></span> <a href="/wiki/Category:Programming_languages" title="Category:Programming languages">Category</a></li></ul> </div></td></tr></tbody></table></div> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236075235"></div><div role="navigation" class="navbox authority-control" aria-label="Navbox759" style="padding:3px"><table class="nowraplinks hlist navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Help:Authority_control" title="Help:Authority control">Authority control databases</a>: National <span class="mw-valign-text-top noprint" typeof="mw:File/Frameless"><a href="https://www.wikidata.org/wiki/Q207316#identifiers" title="Edit this at Wikidata"><img alt="Edit this at Wikidata" src="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/10px-OOjs_UI_icon_edit-ltr-progressive.svg.png" decoding="async" width="10" height="10" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/15px-OOjs_UI_icon_edit-ltr-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/8/8a/OOjs_UI_icon_edit-ltr-progressive.svg/20px-OOjs_UI_icon_edit-ltr-progressive.svg.png 2x" data-file-width="20" data-file-height="20" /></a></span></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"><ul><li><span class="uid"><a rel="nofollow" class="external text" href="https://d-nb.info/gnd/7547043-3">Germany</a></span></li><li><span class="uid"><a rel="nofollow" class="external text" href="https://id.loc.gov/authorities/sh2004007514">United States</a></span></li><li><span class="uid"><a rel="nofollow" class="external text" href="https://catalogue.bnf.fr/ark:/12148/cb166522948">France</a></span></li><li><span class="uid"><a rel="nofollow" class="external text" href="https://data.bnf.fr/ark:/12148/cb166522948">BnF data</a></span></li><li><span class="uid"><a rel="nofollow" class="external text" href="https://www.nli.org.il/en/authorities/987007563918605171">Israel</a></span></li></ul></div></td></tr></tbody></table></div> <style data-mw-deduplicate="TemplateStyles:r1130092004">.mw-parser-output .portal-bar{font-size:88%;font-weight:bold;display:flex;justify-content:center;align-items:baseline}.mw-parser-output .portal-bar-bordered{padding:0 2em;background-color:#fdfdfd;border:1px solid #a2a9b1;clear:both;margin:1em auto 0}.mw-parser-output .portal-bar-related{font-size:100%;justify-content:flex-start}.mw-parser-output .portal-bar-unbordered{padding:0 1.7em;margin-left:0}.mw-parser-output .portal-bar-header{margin:0 1em 0 0.5em;flex:0 0 auto;min-height:24px}.mw-parser-output .portal-bar-content{display:flex;flex-flow:row wrap;flex:0 1 auto;padding:0.15em 0;column-gap:1em;align-items:baseline;margin:0;list-style:none}.mw-parser-output .portal-bar-content-related{margin:0;list-style:none}.mw-parser-output .portal-bar-item{display:inline-block;margin:0.15em 0.2em;min-height:24px;line-height:24px}@media screen and (max-width:768px){.mw-parser-output .portal-bar{font-size:88%;font-weight:bold;display:flex;flex-flow:column wrap;align-items:baseline}.mw-parser-output .portal-bar-header{text-align:center;flex:0;padding-left:0.5em;margin:0 auto}.mw-parser-output .portal-bar-related{font-size:100%;align-items:flex-start}.mw-parser-output .portal-bar-content{display:flex;flex-flow:row wrap;align-items:center;flex:0;column-gap:1em;border-top:1px solid #a2a9b1;margin:0 auto;list-style:none}.mw-parser-output .portal-bar-content-related{border-top:none;margin:0;list-style:none}}.mw-parser-output .navbox+link+.portal-bar,.mw-parser-output .navbox+style+.portal-bar,.mw-parser-output .navbox+link+.portal-bar-bordered,.mw-parser-output .navbox+style+.portal-bar-bordered,.mw-parser-output .sister-bar+link+.portal-bar,.mw-parser-output .sister-bar+style+.portal-bar,.mw-parser-output .portal-bar+.navbox-styles+.navbox,.mw-parser-output .portal-bar+.navbox-styles+.sister-bar{margin-top:-1px}</style><div class="portal-bar noprint metadata noviewer portal-bar-bordered" role="navigation" aria-label="Portals"><span class="portal-bar-header"><a href="/wiki/Wikipedia:Contents/Portals" title="Wikipedia:Contents/Portals">Portals</a>:</span><ul class="portal-bar-content"><li class="portal-bar-item"><span class="nowrap"><span typeof="mw:File"><span><img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/3/31/Free_and_open-source_software_logo_%282009%29.svg/19px-Free_and_open-source_software_logo_%282009%29.svg.png" decoding="async" width="19" height="19" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/31/Free_and_open-source_software_logo_%282009%29.svg/29px-Free_and_open-source_software_logo_%282009%29.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/31/Free_and_open-source_software_logo_%282009%29.svg/38px-Free_and_open-source_software_logo_%282009%29.svg.png 2x" data-file-width="512" data-file-height="512" /></span></span> </span><a href="/wiki/Portal:Free_and_open-source_software" title="Portal:Free and open-source software">Free and open-source software</a></li><li class="portal-bar-item"><span class="nowrap"><span typeof="mw:File"><a href="/wiki/File:Octicons-terminal.svg" class="mw-file-description"><img alt="icon" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6f/Octicons-terminal.svg/17px-Octicons-terminal.svg.png" decoding="async" width="17" height="19" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/6f/Octicons-terminal.svg/25px-Octicons-terminal.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/6f/Octicons-terminal.svg/33px-Octicons-terminal.svg.png 2x" data-file-width="896" data-file-height="1024" /></a></span> </span><a href="/wiki/Portal:Computer_programming" title="Portal:Computer programming">Computer programming</a></li></ul></div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐b766959bd‐scsbh Cached time: 20250217062456 Cache expiry: 1013716 Reduced expiry: true Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 1.135 seconds Real time usage: 1.396 seconds Preprocessor visited node count: 5772/1000000 Post‐expand include size: 174899/2097152 bytes Template argument size: 11841/2097152 bytes Highest expansion depth: 21/100 Expensive parser function count: 60/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 265534/5000000 bytes Lua time usage: 0.735/10.000 seconds Lua memory usage: 28536634/52428800 bytes Number of Wikibase entities loaded: 1/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 1200.185 1 -total 28.56% 342.788 2 Template:Infobox 24.63% 295.652 1 Template:Infobox_programming_language 18.90% 226.824 2 Template:Reflist 15.22% 182.676 1 Template:Infobox_software/simple 12.43% 149.220 39 Template:Cite_web 12.02% 144.280 3 Template:Wikidata 12.02% 144.239 1 Template:Noexcerpt 9.50% 114.071 1 Template:Langx 7.94% 95.286 4 Template:Navbox --> <!-- Saved in parser cache with key enwiki:pcache:46150:|#|:idhash:canonical and timestamp 20250217062456 and revision id 1275454518. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?useformat=desktop&amp;type=1x1&amp;usesul3=0" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Lua_(programming_language)&amp;oldid=1275454518">https://en.wikipedia.org/w/index.php?title=Lua_(programming_language)&amp;oldid=1275454518</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Categories</a>: <ul><li><a href="/wiki/Category:Lua_(programming_language)" title="Category:Lua (programming language)">Lua (programming language)</a></li><li><a href="/wiki/Category:Brazilian_inventions" title="Category:Brazilian inventions">Brazilian inventions</a></li><li><a href="/wiki/Category:Cross-platform_free_software" title="Category:Cross-platform free software">Cross-platform free software</a></li><li><a href="/wiki/Category:Cross-platform_software" title="Category:Cross-platform software">Cross-platform software</a></li><li><a href="/wiki/Category:Dynamic_programming_languages" title="Category:Dynamic programming languages">Dynamic programming languages</a></li><li><a href="/wiki/Category:Dynamically_typed_programming_languages" title="Category:Dynamically typed programming languages">Dynamically typed programming languages</a></li><li><a href="/wiki/Category:Embedded_systems" title="Category:Embedded systems">Embedded systems</a></li><li><a href="/wiki/Category:Free_and_open_source_interpreters" title="Category:Free and open source interpreters">Free and open source interpreters</a></li><li><a href="/wiki/Category:Free_computer_libraries" title="Category:Free computer libraries">Free computer libraries</a></li><li><a href="/wiki/Category:Free_software_programmed_in_C" title="Category:Free software programmed in C">Free software programmed in C</a></li><li><a href="/wiki/Category:Object-oriented_programming_languages" title="Category:Object-oriented programming languages">Object-oriented programming languages</a></li><li><a href="/wiki/Category:Pontifical_Catholic_University_of_Rio_de_Janeiro" title="Category:Pontifical Catholic University of Rio de Janeiro">Pontifical Catholic University of Rio de Janeiro</a></li><li><a href="/wiki/Category:Programming_languages" title="Category:Programming languages">Programming languages</a></li><li><a href="/wiki/Category:Programming_languages_created_in_1993" title="Category:Programming languages created in 1993">Programming languages created in 1993</a></li><li><a href="/wiki/Category:Prototype-based_programming_languages" title="Category:Prototype-based programming languages">Prototype-based programming languages</a></li><li><a href="/wiki/Category:Register-based_virtual_machines" title="Category:Register-based virtual machines">Register-based virtual machines</a></li><li><a href="/wiki/Category:Scripting_languages" title="Category:Scripting languages">Scripting languages</a></li><li><a href="/wiki/Category:Software_using_the_MIT_license" title="Category:Software using the MIT license">Software using the MIT license</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:CS1_errors:_periodical_ignored" title="Category:CS1 errors: periodical ignored">CS1 errors: periodical ignored</a></li><li><a href="/wiki/Category:CS1_maint:_bot:_original_URL_status_unknown" title="Category:CS1 maint: bot: original URL status unknown">CS1 maint: bot: original URL status unknown</a></li><li><a href="/wiki/Category:Articles_with_short_description" title="Category:Articles with short description">Articles with short description</a></li><li><a href="/wiki/Category:Short_description_matches_Wikidata" title="Category:Short description matches Wikidata">Short description matches Wikidata</a></li><li><a href="/wiki/Category:Use_dmy_dates_from_February_2021" title="Category:Use dmy dates from February 2021">Use dmy dates from February 2021</a></li><li><a href="/wiki/Category:All_articles_with_unsourced_statements" title="Category:All articles with unsourced statements">All articles with unsourced statements</a></li><li><a href="/wiki/Category:Articles_with_unsourced_statements_from_November_2022" title="Category:Articles with unsourced statements from November 2022">Articles with unsourced statements from November 2022</a></li><li><a href="/wiki/Category:Articles_containing_Portuguese-language_text" title="Category:Articles containing Portuguese-language text">Articles containing Portuguese-language text</a></li><li><a href="/wiki/Category:Pages_with_Portuguese_IPA" title="Category:Pages with Portuguese IPA">Pages with Portuguese IPA</a></li><li><a href="/wiki/Category:All_articles_with_dead_external_links" title="Category:All articles with dead external links">All articles with dead external links</a></li><li><a href="/wiki/Category:Articles_with_dead_external_links_from_June_2020" title="Category:Articles with dead external links from June 2020">Articles with dead external links from June 2020</a></li><li><a href="/wiki/Category:Articles_with_permanently_dead_external_links" title="Category:Articles with permanently dead external links">Articles with permanently dead external links</a></li><li><a href="/wiki/Category:Pages_using_Sister_project_links_with_hidden_wikidata" title="Category:Pages using Sister project links with hidden wikidata">Pages using Sister project links with hidden wikidata</a></li><li><a href="/wiki/Category:Pages_using_Sister_project_links_with_default_search" title="Category:Pages using Sister project links with default search">Pages using Sister project links with default search</a></li><li><a href="/wiki/Category:Webarchive_template_wayback_links" title="Category:Webarchive template wayback links">Webarchive template wayback links</a></li><li><a href="/wiki/Category:Articles_with_example_C_code" title="Category:Articles with example C code">Articles with example C code</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 13 February 2025, at 03:29<span class="anonymous-show">&#160;(UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=Lua_(programming_language)&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" lang="en" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><picture><source media="(min-width: 500px)" srcset="/w/resources/assets/poweredby_mediawiki.svg" width="88" height="31"><img src="/w/resources/assets/mediawiki_compact.svg" alt="Powered by MediaWiki" width="25" height="25" loading="lazy"></picture></a></li> </ul> </footer> </div> </div> </div> <div class="vector-header-container vector-sticky-header-container"> <div id="vector-sticky-header" class="vector-sticky-header"> <div class="vector-sticky-header-start"> <div class="vector-sticky-header-icon-start vector-button-flush-left vector-button-flush-right" aria-hidden="true"> <button class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-sticky-header-search-toggle" tabindex="-1" data-event-name="ui.vector-sticky-search-form.icon"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </button> </div> <div role="search" class="vector-search-box-vue vector-search-box-show-thumbnail vector-search-box"> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail"> <form action="/w/index.php" id="vector-sticky-search-form" class="cdx-search-input cdx-search-input--has-end-button"> <div class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia"> <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <div class="vector-sticky-header-context-bar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-sticky-header-toc" class="vector-dropdown mw-portlet mw-portlet-sticky-header-toc vector-sticky-header-toc vector-button-flush-left" > <input type="checkbox" id="vector-sticky-header-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-sticky-header-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-sticky-header-toc-label" for="vector-sticky-header-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-sticky-header-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div class="vector-sticky-header-context-bar-primary" aria-hidden="true" ><span class="mw-page-title-main">Lua (programming language)</span></div> </div> </div> <div class="vector-sticky-header-end" aria-hidden="true"> <div class="vector-sticky-header-icons"> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-talk-sticky-header" tabindex="-1" data-event-name="talk-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbles mw-ui-icon-wikimedia-speechBubbles"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-subject-sticky-header" tabindex="-1" data-event-name="subject-sticky-header"><span class="vector-icon mw-ui-icon-article mw-ui-icon-wikimedia-article"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-history-sticky-header" tabindex="-1" data-event-name="history-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-history mw-ui-icon-wikimedia-wikimedia-history"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only mw-watchlink" id="ca-watchstar-sticky-header" tabindex="-1" data-event-name="watch-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-star mw-ui-icon-wikimedia-wikimedia-star"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-edit-sticky-header" tabindex="-1" data-event-name="wikitext-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-wikiText mw-ui-icon-wikimedia-wikimedia-wikiText"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-ve-edit-sticky-header" tabindex="-1" data-event-name="ve-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-edit mw-ui-icon-wikimedia-wikimedia-edit"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-viewsource-sticky-header" tabindex="-1" data-event-name="ve-edit-protected-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-editLock mw-ui-icon-wikimedia-wikimedia-editLock"></span> <span></span> </a> </div> <div class="vector-sticky-header-buttons"> <button class="cdx-button cdx-button--weight-quiet mw-interlanguage-selector" id="p-lang-btn-sticky-header" tabindex="-1" data-event-name="ui.dropdown-p-lang-btn-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>72 languages</span> </button> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive" id="ca-addsection-sticky-header" tabindex="-1" data-event-name="addsection-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbleAdd-progressive mw-ui-icon-wikimedia-speechBubbleAdd-progressive"></span> <span>Add topic</span> </a> </div> <div class="vector-sticky-header-icon-end"> <div class="vector-user-links"> </div> </div> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-b766959bd-64qwh","wgBackendResponseTime":145,"wgPageParseReport":{"limitreport":{"cputime":"1.135","walltime":"1.396","ppvisitednodes":{"value":5772,"limit":1000000},"postexpandincludesize":{"value":174899,"limit":2097152},"templateargumentsize":{"value":11841,"limit":2097152},"expansiondepth":{"value":21,"limit":100},"expensivefunctioncount":{"value":60,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":265534,"limit":5000000},"entityaccesscount":{"value":1,"limit":400},"timingprofile":["100.00% 1200.185 1 -total"," 28.56% 342.788 2 Template:Infobox"," 24.63% 295.652 1 Template:Infobox_programming_language"," 18.90% 226.824 2 Template:Reflist"," 15.22% 182.676 1 Template:Infobox_software/simple"," 12.43% 149.220 39 Template:Cite_web"," 12.02% 144.280 3 Template:Wikidata"," 12.02% 144.239 1 Template:Noexcerpt"," 9.50% 114.071 1 Template:Langx"," 7.94% 95.286 4 Template:Navbox"]},"scribunto":{"limitreport-timeusage":{"value":"0.735","limit":"10.000"},"limitreport-memusage":{"value":28536634,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-b766959bd-scsbh","timestamp":"20250217062456","ttl":1013716,"transientcontent":true}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"Lua (programming language)","url":"https:\/\/en.wikipedia.org\/wiki\/Lua_(programming_language)","sameAs":"http:\/\/www.wikidata.org\/entity\/Q207316","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q207316","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2002-03-27T06:57:17Z","dateModified":"2025-02-13T03:29:44Z","image":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/c\/cf\/Lua-Logo.svg","headline":"lightweight programming language"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10