Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Teal – A statically-typed dialect of Lua

Teal is a statically-typed language built as an extension to Lua. It introduces type annotations, enabling developers to define arrays, maps, records, interfaces, union types, and generics. The Teal project seeks to address a similar audience as TypeScript in the JavaScript ecosystem, while maintaining the Lua philosophy of simplicity, portability, and embeddability.

Compiled Teal code is transformed into Lua files by the tl compiler. A hands-on experience with Teal can be had via the Teal Playground, an online tool. For LuaRocks users, the compiler can be installed using a specific command. Pre-compiled binaries for Linux and Windows are also available.

When managing larger projects, using Cyan, a build tool tailored for Teal, is recommended. Integration with popular code editors is also supported, through plugins such as vscode-teal for Visual Studio Code and teal-language-server for NeoVim, among others.

Comprehensive Teal documentation is accessible online. The project's development history, motivations, and progress are detailed in various recorded talks. Teal's development community is hosted on GitHub, and real-time communication with the project's team is possible via Matrix at #teal-language_community:gitter.im.

Launched by Hisham Muhammad, Teal is a collaborative, open-source project. Its source code is written using Teal itself, and it is released under the MIT license, identical to Lua.

Rewritten by urgent.news; may contain errors — check the original.

Source: teal-language.org

Read the original at teal-language.org →

Report a problem with this story

More in Tech

More from Friday 16 October →