├ /markup/ HTML • CSS • XML
├ /low_level/ Assembly • C • C++ • C# • Holy C • Rust
└ /high_level/ Java • Go • PHP • Python • SQL • Bash • JavaScript • PowerShell • ActionScript • Scratch • Ruby • Lua • P
Due to recent financial constraints faced by Quote, we regret to inform our users that this wiki has been sold to a new ownership group. The buyers, North and MarketPliers, are currently finalizing the details of the transfer, and more information will be shared once the process is complete.
We want to reassure everyone that no immediate changes are planned, and the wiki will continue to operate as usual during and after this transition.
SNCA:Lua

Lua is a lightweight yet high-level programming language made by brapzillian programmer Roberto Ierusalimschy, it's very similar to Python in terms of syntax. Its main purpose is to be embedded in other applications. A fork of Lua, which is Luau, is used as the main scripting language for Roblox.
Its package manager is LuaRocks, it handles the distribution, installation, and management of Lua modules, modules being reusable lines of code.
Lua means "Moon" in Portuguese, hence the logo.
Lua is often embedded into C and C++ programs as a scripting language, and can interact with those C/C++ applications. This is why it is often used as a scripting language in many games. This is because Lua provides its own header <lua.hpp> for these purposes.
Unusual aspects[edit | edit source]
- In Lua, any value that is not
nilorfalseis considered true. - Lua uses indexes beginning with 1, not 0, even though most languages index beginning with 0.
- Lua doesn't have a
continuekeyword. Instead, to exit the current iteration of a loop, you need to usegotostatements. Some forks of Lua (like Luau) do have acontinuekeyword by default though.
Example[edit | edit source]
-- seed the random number generator with the current time
math.randomseed(os.time())
-- determines whether the tranny should ack based on a probability
-- ackProbability: number between 0 and 100 representing the chance of acking
-- returns true if the random chance is less than ackProbability, false otherwise
local function shouldAck(ackProbability)
-- generate a random number between 0 and 100
local prob = math.random() * 100
-- clamp the probability to ensure it's between 0 and 100
ackProbability = math.max(0, math.min(ackProbability, 100))
-- return true if random number is less than ack probability
return prob < ackProbability
end
-- main function that decides whether to ack or print "TRANS RIGHTS ARE HUMAN RIGHTS!!!!"
local function main()
if shouldAck(41) then
print("ACK!!!!")
else
print("TRANS RIGHTS ARE HUMAN RIGHTS!!!!!!!!")
end
end
-- run the main function
main()
Snopes
➜ /languages
➜ /software
├ /imageboards/ nusoi • Vichan • Yotsuba • OpenYotsuba
├ /operating_systems/ Windows • Linux • Android • TempleOS • BSD
└ /misc/ Babybot • McChallenge • CAPTCHA • Systemd • MS Paint • JS Paint • Photoshop • Flash • IRC • Ad blocking • Dark Web • Ricing • Free-software license • 4get • Game development • Snarkysnappydoxingtool.bat
➜ /ai
└ ChatGPT • Gemini • Grok • Vibe coding • Generative AI • Stable Diffusion
