# Teal brings static typing to Lua without sacrificing its minimalism

Original title: Teal – A statically-typed dialect of Lua

> Hacker News story 50124730 · language: en · submitted 2026-10-16
> Web version: https://zeli.app/story/50124730
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 181 · by [Lyngbakr](<https://news.ycombinator.com/user?id=Lyngbakr>) · 💬 72
[original](<https://teal-language.org/>) · [HN discussion](<https://news.ycombinator.com/item?id=50124730>)

## Summary

Teal is a statically-typed dialect of Lua that adds type annotations, arrays, maps, records, interfaces, union types, and generics. It aims to fill a niche similar to TypeScript in the JavaScript world, but stays true to Lua's spirit of minimalism, portability, and embeddability. The compiler, tl, turns .tl source into .lua files, and the project is written in Teal itself.

## Key quote

> It aims to fill a niche similar to that of TypeScript in the JavaScript world, but adhering to Lua's spirit of minimalism, portability and embeddability.

## HN discussion (72 comments)

### [ufo](<https://news.ycombinator.com/item?id=50140999>)

> A good example of a large Teal codebase is Luarocks, the Lua package manager: https://github.com/luarocks/luarocks/tree/main/src/luarocks

### [Kinrany](<https://news.ycombinator.com/item?id=50139752>)

> I'm curious if there is a comparison to Luau.

### [shevy-java](<https://news.ycombinator.com/item?id=50140327>)

> Hisham is one of the key devs there. He started GoboLinux, htop and some more.
>
> Personally I am not the biggest fan of lua as it really is such a light language in every sense of the word (meaning, syntax too and features - too light IMO). But it's good that creativity keeps pushing things forward.

### [arisAlexis](<https://news.ycombinator.com/item?id=50139447>)

> What is the purpose of these kind of experiments if not for artistic purposes in the new age of AI?

---

## Cite

- Page: https://zeli.app/story/50124730
- Date: 2026-10-16
- Source: teal-language.org (https://teal-language.org/)
- Hacker News: https://news.ycombinator.com/item?id=50124730

## Other languages

- zh: https://zeli.app/zh/story/50124730 · markdown: https://zeli.app/zh/story/50124730.md
- ja: https://zeli.app/ja/story/50124730 · markdown: https://zeli.app/ja/story/50124730.md
- ko: https://zeli.app/ko/story/50124730 · markdown: https://zeli.app/ko/story/50124730.md
- de: https://zeli.app/de/story/50124730 · markdown: https://zeli.app/de/story/50124730.md
- es: https://zeli.app/es/story/50124730 · markdown: https://zeli.app/es/story/50124730.md
- ru: https://zeli.app/ru/story/50124730 · markdown: https://zeli.app/ru/story/50124730.md
