awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
luau-lang avatar

luau-lang/luau

0
View on GitHub↗
5,635 stars·600 forks·C++·MIT·14 viewsluau.org↗

Luau

Luau is a high-performance programming language evolved from Lua 5.1. It consists of a bytecode virtual machine, an embeddable scripting engine, and a static code analyzer designed to provide a secure, sandboxed execution environment for host applications.

The project is distinguished by its gradual typing system, which combines automatic type inference with optional manual annotations to detect bugs without requiring full static typing. It also features native vector mathematics for high-performance operations and a specialized debugging system that uses bytecode patching to minimize execution overhead.

The runtime includes a wide array of execution optimizations, including incremental garbage collection, inline caching for tables, and peephole bytecode optimization. The type system supports configurable strictness levels, control-flow type refinement, and structural table shape validation.

The project provides a C API for embedding the engine into applications and a command-line interface for script execution and development.

Features

  • Bytecode Virtual Machines - Provides a specialized bytecode virtual machine with a tuned interpreter for high-performance script execution.
  • Language Dialects - Provides a high-performance evolution of the Lua 5.1 language with enhanced speed and safety features.
  • Embeddable Scripting Engines - Ships an embeddable scripting engine with a C API for integrating sandboxed execution into host applications.
  • Bytecode Interpreters - Implements a tuned bytecode interpreter designed for efficient assembly generation and fast instruction dispatch.
  • Embedded Scripting Engines - Provides a lightweight scripting engine that can be embedded into host applications via a C API.
  • Gradual Typing Systems - Implements a gradual typing system that combines automatic type inference with optional manual annotations.
  • High-Performance Runtimes - Provides a high-performance execution engine combining a fast bytecode compiler and incremental garbage collector.
  • Incremental Garbage Collection - Minimizes stop-the-world pauses via incremental marking for coroutines and a specialized remark step.
  • Sandboxed Code Execution Environments - Provides a secure, sandboxed execution environment to protect host systems from untrusted or unstable code.
  • Virtual Machine Optimizations - Accelerates code execution through a specialized virtual machine that optimizes loops and method calls.
  • General Bug Detection - Detects potential errors, dead code, and stylistic inconsistencies through automated linting passes.
  • Static Code Analysis - Ships a static code analyzer that checks source files for type errors and linting warnings.
  • Memory Allocators - Employs a domain-specific pool allocator tuned for scripting workloads to outperform general-purpose memory allocators.
  • Configurable Strictness Levels - Provides configurable type checking modes ranging from no checks to strict enforcement for individual files.
  • Bytecode Iteration Optimization - Avoids function calls on every loop cycle by emitting optimized bytecode for common iteration idioms.
  • Inline Caches - Accelerates table and global lookups by storing the results of previous hash slot resolutions.
  • Static Code Analyzers - Ships a static code analyzer for performing linting and type validation to detect bugs and stylistic inconsistencies.
  • Bytecode Patching Debuggers - Features a specialized debugging system using bytecode patching to provide low-overhead breakpoints and stepping.
  • Script Debugging Tools - Provides tools to inspect and control the state of running scripts to identify and fix runtime issues.
  • Game Logic Scripting - Supports game logic development with specialized native vector math and efficient table management.
  • Fixed-Size Memory Pool Managers - Uses a paged pool allocator to organize objects into fixed-size pages for better cache locality and faster reclamation.
  • Table Capacity Preallocation - Reduces allocation overhead by creating tables with preallocated capacity or using object-like templates.
  • Analysis-Phase Type Transformations - Modifies existing types or generates new ones during the analysis phase based on type-level inputs.
  • Runtime Bytecode Instrumentation - Implements a debugging system that modifies live bytecode to enable breakpoints and stepping without execution overhead.
  • Method Call Specialization - Minimizes interop costs by specializing method call sequences and using a namecall mechanism for reflected data.
  • Adaptive Pacing Controllers - Schedules memory reclamation outside critical paths using a controller that estimates allocation rates.
  • Inline Caching - Reduces the cost of accessing table members and global variables by predicting hash slots using inline caching.
  • Type Narrowing - Narrows the type of a variable using truthiness tests and type guards to ensure safety within specific blocks.
  • Explicit Variable Typing - Allows overriding inferred types with specific declarations to ensure precise validation and catch incompatible assignments.
  • Paged Memory Reclamation - Implements a paged pool allocator that organizes objects into fixed-size pages to improve cache locality and reclamation speed.
  • Lua - Ensures compatibility with Lua 5.1 by incorporating core features and standard libraries for consistent script execution.
  • Scripting Runtimes - Provides a high-performance runtime optimized for low memory overhead and fast bytecode execution.
  • Peephole Optimizers - Performs peephole optimizations and constant folding during compilation to simplify instruction sequences.
  • Vector Mathematics - Provides native 3-component float types and SIMD-accelerated mathematical operations for high-performance vector math.
  • Vector Operations - Provides native 3-component 32-bit float vector types for high-performance mathematical operations.
  • Object Shape Validation - Determines table compatibility based on their structural shapes rather than explicit class definitions.
  • Scripting and Bindings - Fast, safe, and gradually typed scripting language derived from Lua.

Star history

Star history chart for luau-lang/luauStar history chart for luau-lang/luau

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does luau-lang/luau do?

Luau is a high-performance programming language evolved from Lua 5.1. It consists of a bytecode virtual machine, an embeddable scripting engine, and a static code analyzer designed to provide a secure, sandboxed execution environment for host applications.

What are the main features of luau-lang/luau?

The main features of luau-lang/luau are: Bytecode Virtual Machines, Language Dialects, Embeddable Scripting Engines, Bytecode Interpreters, Embedded Scripting Engines, Gradual Typing Systems, High-Performance Runtimes, Incremental Garbage Collection.

What are some open-source alternatives to luau-lang/luau?

Open-source alternatives to luau-lang/luau include: yuin/gopher-lua — Gopher-lua is a complete implementation of the Lua language and its standard libraries written natively in Go. It… c3lang/c3c — c3c is the compiler for the C3 programming language, transforming source code into executable binaries, static… wren-lang/wren — Wren is an embeddable, class-based scripting language and bytecode interpreter. It provides a dependency-free virtual… microsoft/typescript-handbook — This project is a comprehensive guide and educational resource for the TypeScript language. It covers the fundamental… facebook/infer — Infer is a static analysis toolset for Java, C, C++, and Objective-C designed to detect memory leaks, null… lua/lua — Lua is an embeddable scripting language written in ISO C, designed to be integrated into host applications for runtime…

Open-source alternatives to Luau

Similar open-source projects, ranked by how many features they share with Luau.
  • yuin/gopher-luayuin avatar

    yuin/gopher-lua

    6,933View on GitHub↗

    Gopher-lua is a complete implementation of the Lua language and its standard libraries written natively in Go. It serves as an embedded scripting engine and virtual machine that allows Go applications to execute Lua scripts and exchange data between the host and the script environment. The project provides a bytecode compiler to transform source code into a binary format for faster execution. It enables deep integration between the two languages by allowing the registration of native Go functions to be called from scripts, and the invocation of script functions directly from Go. The engine c

    Gogogopher-lualua
    View on GitHub↗6,933
  • c3lang/c3cc3lang avatar

    c3lang/c3c

    5,147View on GitHub↗

    c3c is the compiler for the C3 programming language, transforming source code into executable binaries, static libraries, or dynamic libraries using an LLVM backend. It implements a system based on result-based error handling, scoped memory pooling, and a semantic macro system. The compiler provides first-class support for hardware-backed SIMD vectors that map directly to processor instructions and enables runtime polymorphism through interface-based dynamic dispatch. The project covers a broad set of low-level capabilities, including manual and pooled memory management, inline assembly inte

    C3c3compilerlanguage
    View on GitHub↗5,147
  • wren-lang/wrenwren-lang avatar

    wren-lang/wren

    8,043View on GitHub↗

    Wren is an embeddable, class-based scripting language and bytecode interpreter. It provides a dependency-free virtual machine designed for integrating dynamic script execution into host applications via a C API. The language is centered on a modern object-oriented model featuring inheritance, method overloading, and first-class functions. It utilizes a concurrent fiber runtime to manage lightweight, cooperatively scheduled execution paths without relying on operating system threads. The project includes a comprehensive suite of object-oriented primitives, closure-based state capture, and a m

    Wrenbytecodecfibers
    View on GitHub↗8,043
  • microsoft/typescript-handbookmicrosoft avatar

    microsoft/TypeScript-Handbook

    4,855View on GitHub↗

    This project is a comprehensive guide and educational resource for the TypeScript language. It covers the fundamental principles of the language, including its structural type system, static type analysis, and the process of transpiling typed source files into JavaScript. The material details how to model complex data and reusable type logic using generics, conditional types, and mapped types. It also explains the use of declaration files to provide type safety for external JavaScript libraries and the integration of type checking into existing JavaScript projects via JSDoc annotations. The

    JavaScriptdocumentationlearntypescript
    View on GitHub↗4,855
  • See all 30 alternatives to Luau→