Luau – fast, small, safe, gradually typed scripting language derived from Lua
8 hours ago
- #Luau
- #Lua
- #Roblox
- Roblox adopted Lua 5.1 in 2006 and evolved it into Luau for better performance, ease of use, and tooling.
- Luau includes a gradual type system to support large codebases and team sizes.
- Sandboxing in Luau limits standard libraries and adds extra features to run unprivileged and privileged code together.
- Luau aims for backward compatibility with Lua 5.1 but doesn't fully incorporate later Lua versions.
- Luau extends Lua 5.1 syntax for better ergonomics and familiarity.
- Luau provides analysis tools like a linter and type checker to help write correct code.
- Luau features a custom front end, new bytecode, interpreter, and compiler optimized for performance.
- An optional JIT compiler is available for x64 and arm64 platforms to speed up certain programs.
- Luau's standard library is a superset of Lua 5.1, with some functions removed and others added.