# ATS: A Programming Language That Lets You Prove Your Code Correct

Original title: Introduction to Programming in ATS

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

▲ 85 · by [ibobev](<https://news.ycombinator.com/user?id=ibobev>) · 💬 9
[original](<https://ats-lang.sourceforge.net/DOCUMENT/INT2PROGINATS/HTML/book1.html>) · [HN discussion](<https://news.ycombinator.com/item?id=50356913>)

## Summary

Hongwei Xi's book introduces ATS, a syntax- and feature-rich language covering functional programming, datatypes, polymorphism, dependent types, linear types, and theorem-proving. It walks through practical topics like interaction with C, modularity, and template-based programming, with worked examples from binary search trees to red-black trees. Xi warns the material is dense for readers without considerable programming experience, but no prior familiarity is assumed.

## Key quote

> Although the reader is not assumed to be familiar with programming in general, the book is likely to be rather dense for someone without considerable programming experience.

## HN discussion (9 comments)

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

> ATS used to be discussed quite a lot on HN
>
> https://hn.algolia.com/?query=The%20ATS%20Programming%20Lang...
>
> MLton and Felix would be two other ML inspired languages that whole program optimizes to generate fast code.
>
> http://www.mlton.org/
>
> https://felix.readthedocs.io/en/latest/

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

> Fun talk on this language here: https://www.youtube.com/watch?v=zt0OQb1DBko ("A (Not So Gentle) Introduction To Systems Programming In ATS" by Aditya Siram)

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

> Abstract Tree Syntax

---

## Cite

- Page: https://zeli.app/story/50356913
- Date: 2026-11-03
- Source: ats-lang.sourceforge.net (https://ats-lang.sourceforge.net/DOCUMENT/INT2PROGINATS/HTML/book1.html)
- Hacker News: https://news.ycombinator.com/item?id=50356913

## Other languages

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