A typed programming language with errors as values, pipes for data, and goroutines, shipped with a single CLI toolchain.
At a Glance
About Ant
Ant is an open-source programming language created by Anton Medvedev. It combines static types, JavaScript-like syntax, Go-style goroutines and channels, and Result values for expected failures. A single ant binary runs programs, checks types, formats code, runs tests, and prints documentation. The latest GitHub release listed is v0.5.0.
What It Is
Ant is a general-purpose, garbage-collected language. A file of statements runs top to bottom with no main. Data is modeled as records and tagged unions, expected failures are returned as Result values, and absence is null, allowed only where a type permits it. The standard library (arrays, strings, time, files, processes, HTTP, JSON and more) is available without imports.
Language Design
The docs list four principles: no implicit coercion, everything is an expression, errors are values, and minimal syntax. The pipe operator passes the value on its left as the first argument of the call on its right, so transformations read top to bottom. try passes errors up to the caller, is narrows union types, and HTML is a typed expression with escaped interpolation. Parallel.map runs a function over a list on goroutines with a concurrency limit.
Built-in Toolchain
ant checkis a type checker that points at exact characters, suggests fixes, and warns about issues such as discardedResultvalues.ant fmtformats with a single style and no options.ant testruns tests that sit beside the code.ant docshows documentation for the standard library or your own modules.ant codequeries types, definitions and references from the command line.antalone opens a REPL with highlighting, completion and history.ant lspandant dapprovide editor language-server and debugger support.
Editors, Embedding and Setup
Editor support exists for VS Code, IntelliJ IDEA and Neovim, plus a web playground and an Ant Editor. Ant can be installed with go install ant-lang.org/cmd/ant@latest. A Go package lets host programs load, check and run Ant scripts, call Ant functions, and expose Go functions as namespaces. npm packages @ant-lang/wasm and @ant-lang/monaco are listed for embedding. Guides map concepts for developers coming from Go, JavaScript and Python.
Collections
Popular collections
- Black Friday 2026: AI APIs and Creative Tools
Collection by @priyashah
- Harness Setup
Collection by @joemseifi
- Code Knowledge Graphs
Collection by @evtuff
- Obsidian Agentic & AI plugins
Collection by @samofcode
Add Ant to one of your collections.
Community Discussions
Be the first to start a conversation about Ant
Share your experience with Ant, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
Ant language and toolchain released under the MIT License; free to use, copy, modify, and distribute.
- MIT License
- Type checker, formatter, test runner, REPL, docs, language server (LSP) and debugger (DAP) in one binary
- Editor support for VS Code, IntelliJ IDEA, and Neovim
- Embeddable in Go applications
Capabilities
Key Features
- Static type checker with fix suggestions and warnings
- Errors as values via Result and try
- Pipe operator for left-to-right data flow
- Goroutines, channels, select and Parallel.map
- Typed HTML expressions with safe escaping
- Unions of records with is-narrowing
- Single binary for run, check, fmt, test and doc
- REPL with completion and history
- Language server (LSP) and debugger (DAP)
- Code queries for types, definitions and references
- Embeddable in Go applications
- Shell completion for zsh, bash and fish
- Web playground
