Lua
Lua is a lightweight, fast, and embeddable scripting language designed to be integrated into larger applications written in C and other languages.
31 resources across 3 libraries
Glossary Terms(7)
Lua
Lua is a lightweight, fast, and embeddable scripting language designed to be integrated into larger applications written in C and other languages.
Terra
Terra is a low-level, statically typed systems programming language embedded inside Lua, letting developers use Lua as a compile-time meta-language to generate…
Janet (language)
Janet is a functional and imperative Lisp-dialect programming language and bytecode virtual machine designed to be small, fast, and easily embedded into C appl…
Wren (language)
Wren is a small, fast, class-based scripting language with C-like syntax, built-in concurrency via fibers, and designed to be embedded inside applications such…
Self (language)
Self is a prototype-based, object-oriented programming language descended from Smalltalk that eliminated classes in favor of object cloning, and whose research…
Io (language)
Io is a small, dynamic, prototype-based programming language in which everything is an object and all computation happens by sending messages between objects,…
Tcl
Tcl (Tool Command Language) is a dynamic, interpreted scripting language designed for easy embedding into applications, extensibility, and rapid prototyping, h…
Study Notes(23)
Arrays vs Dictionaries in Lua
See how Lua uses one table type to model both array-like sequences and dictionary-like maps, and learn the rules that keep each style predictable.
Closures in Lua
Understand how Lua closures capture upvalues by reference, how to use them for private state and per-iteration loop callbacks, and common closure-based pattern…
Conditionals in Lua
Learn how Lua's if/elseif/else statement works, why only nil and false are falsy, and how to replace long conditional chains with idiomatic and/or expressions…
Coroutines in Lua
Understand Lua's cooperative multitasking primitive: creating, resuming, and yielding coroutines to write generators and non-blocking logic.
Error Handling in Lua (pcall/error)
Learn how Lua signals and catches errors using error(), pcall(), and xpcall(), instead of try/catch exceptions.
Functions in Lua
Learn how to define and call Lua functions, treat them as first-class values, use colon syntax for methods, and understand local vs global function scope.
Installing Lua
A practical walkthrough of installing the Lua interpreter on Linux, macOS, and Windows, verifying it, and adding the LuaRocks package manager.
Loops in Lua
A practical guide to Lua's while, repeat...until, numeric for, and generic for loops, plus how break and Lua's lack of a continue keyword affect loop control.
Lua and C Interop
How Lua's stack-based C API lets Lua scripts call C functions and C programs embed and drive a Lua virtual machine in both directions.
Lua and Embedded Scripting
Why Lua's small, sandboxable runtime made it a favorite embedded scripting language across networking, databases, and system tools like OpenResty, Redis, and W…
Lua and Neovim Configuration
How Neovim replaced much of Vimscript with a first-class embedded Lua runtime, and how init.lua, plugin managers, and the vim.* API structure a modern editor c…
Lua Best Practices
Practical conventions and patterns for writing clean, efficient, and maintainable Lua code.
Lua in Game Development
How Lua's lightweight, embeddable design made it the standard scripting layer for game engines, from Roblox and LOVE2D to World of Warcraft addons.
Lua Interview Questions
Common Lua interview questions and answers covering tables, metatables, scoping, closures, and coroutines.
Lua Operators
A tour of Lua's arithmetic, relational, logical, concatenation, and length operators, including the truthiness rules that surprise newcomers.
Lua Quick Reference
A condensed cheat sheet of core Lua syntax, standard library functions, and idioms for quick lookup.
Lua Types and Variables
How Lua's dynamic typing, variable scope, number/string types, and tables work, with the specifics that trip up newcomers.
Lua vs Python
A practical comparison of Lua and Python covering syntax, performance, embedding, typing, and when to choose each language.
Object-Oriented Lua
Learn how Lua uses tables, functions, and metatables to build objects, methods, and encapsulation without a built-in class system.
String Library in Lua
Master Lua's built-in string library -- immutable strings, extraction, case conversion, lightweight pattern matching, and formatted output.
Tables in Lua
Learn how Lua's single, versatile data structure -- the table -- powers arrays, dictionaries, objects, and modules across every Lua program.
What Is Lua?
An introduction to Lua's history, design philosophy, and defining traits as a lightweight, embeddable scripting language.
Your First Lua Script
Write, run, and structure a small real Lua script, covering command-line execution, comments, print, and basic input.