Teal: A Statically-Typed Lua Dialect
2025-05-16
Teal is a statically-typed dialect of Lua, extending Lua with type annotations for arrays, maps, records, interfaces, union types, and generics. It aims to fill a niche similar to TypeScript in the JavaScript world, but maintaining Lua's minimalism, portability, and embeddability. The Teal compiler, `tl`, compiles `.tl` source code into `.lua` files. Installation is via LuaRocks, with pre-compiled binaries available for Linux and Windows. A build tool, Cyan, is recommended for larger projects. VS Code and NeoVim extensions are also available. The project is open source under the MIT license.
Development