Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Lua
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Derived languages == ===Languages that compile to Lua=== * MoonScript is a [[Dynamic programming language|dynamic]], [[Whitespace character|whitespace]]-sensitive [[scripting language]] inspired by [[CoffeeScript]], 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 [[Line break (computing)|line breaks]] and [[indentation style]].<ref>{{Cite web|title=Language Guide - MoonScript 0.5.0|url=https://moonscript.org/reference/|access-date=2020-09-25|website=moonscript.org}}</ref><ref>{{Cite web|last=leaf|title=leafo/moonscript|website=[[GitHub]] |date=2020-09-23|url=https://github.com/leafo/moonscript|access-date=2020-09-25}}</ref><ref name=":1">{{cite web |url=https://andregarzia.com/2020/06/languages-that-compile-to-lua.html |title=Languages that compile to Lua |website=AndreGarzia.com |last1=Garzia |first1=Andre Alves |access-date= 25 September 2020}}</ref> A notable use of MoonScript is the video game distribution website [[Itch.io]]. * [[Haxe]] supports compiling to some Lua targets, including Lua 5.1-5.3 and [[LuaJIT]] 2.0 and 2.1. * Fennel, a Lisp dialect that targets Lua.<ref name=":1"/> * Urn, a [[Lisp (programming language)|Lisp]] dialect built on Lua.<ref>{{Cite web|title=Urn: A Lisp implementation for Lua {{!}} Urn|url=https://urn-lang.com/|access-date=2021-01-12|website=urn-lang.com}}</ref> * Amulet, an [[ML (programming language)|ML]]-like [[functional programming]] language, which compiler emits Lua files.<ref>{{Cite web|title=Amulet ML|url=https://amulet.works/|access-date=2021-01-12|website=amulet.works|language=en-US}}</ref> * LunarML, Standard ML compiler that produces Lua/JavaScript<ref>{{Cite web|title=LunarML, Standard ML compiler that produces Lua/JavaScript|website=[[GitHub]] |url=https://github.com/minoki/LunarML}}</ref> === Dialects === * [[LuaJIT]], a just-in-time compiler of Lua 5.1.<ref>{{cite web |title=LuaJIT |url=https://luajit.org/luajit.html |website=LuaJIT}}</ref><ref>{{cite web |title=Extensions |url=https://luajit.org/extensions.html |website=LuaJIT}}</ref> * [[Roblox#Roblox Studio and game design|Luau]] developed by [[Roblox Corporation]], a derivative of and backwards-compatible with Lua 5.1 with [[gradual typing]], additional features and a focus on performance.<ref>{{Cite web |title=Why Luau? |url=https://luau-lang.org/why |access-date=2024-08-03 |website=Luau |language=en |quote=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.}}</ref> Luau has improved sandboxing to allow for running untrusted code in embedded applications.<ref>{{Cite web |title=Sandboxing |url=https://luau.org/sandbox |access-date=2025-03-27 |website=Luau |language=en}}</ref> * Ravi, a JIT-enabled Lua 5.3 language with optional static typing. JIT is guided by type information.<ref>{{cite web |title=Ravi Programming Language |url=http://ravilang.github.io/ |website=GitHub}}</ref> * Shine, a fork of [[LuaJIT]] with many extensions, including a module system and a macro system.<ref>{{cite web |last1=Hundt |first1=Richard |title=richardhundt/shine |website=[[GitHub]] |url=https://github.com/richardhundt/shine |date=2021-04-22}}</ref> * Glua, a modified version embedded into the game [[Garry's Mod]] as its scripting language.<ref>{{cite web |title=Garry's Mod Wiki |url=https://wiki.facepunch.com/gmod/ |website=wiki.facepunch.com}}</ref> * Teal, a [[Type system#Static type checking|statically typed]] Lua dialect written in Lua.<ref>{{Citation |title=teal-language/tl |date=2024-12-23 |url=https://github.com/teal-language/tl |access-date=2024-12-23 |publisher=Teal language}}</ref> * [[PICO-8]], a "fantasy video game console", uses a subset of Lua known as PICO-8 Lua. In addition, the Lua users community provides some ''power patches'' on top of the reference C implementation.<ref>{{cite web |title=Lua Power Patches |url=http://lua-users.org/wiki/LuaPowerPatches |website=lua-users.org |access-date=18 May 2021 |archive-date=18 May 2021 |archive-url=https://web.archive.org/web/20210518114041/http://lua-users.org/wiki/LuaPowerPatches |url-status=dead}}</ref>
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Lua
(section)
Add topic