Back to projectsExperimental programming language

ain.

Software for machine authors

Less code.
More capability.

A general-purpose language designed for code written by AI, not optimized for human typing.
Prefix syntaxInferred typesBroad standard libraryRust + experimental LLVM
Language

Only what matters.

example.ainsource
add a b = + a b
square x = * x x

print add square 3 square 4
Output25

Fewer symbols. No call parentheses. No mandatory function keyword.

The compiler handles the structure; the model focuses on expressing the operation. That is the experiment, not a claim that Ain already outperforms other languages.

Read language reference
Design

Deliberately excessive.

01

Small expressions

Fixed-arity prefix syntax and inferred types reduce the scaffolding a model has to generate.

02

An enormous vocabulary

An extensive built-in library aims to express complex operations in very little source code.

03

Real compilation

Rust-backed native compilation today, with a limited experimental AIR and LLVM path.

Token benchmark

Less code. Fewer tokens?

Source-code token counts from the latest published Ain benchmark snapshot, refreshed from GitHub approximately every hour.

Benchmark data temporarily unavailable

The site could not load a valid published snapshot from Ain. No cached historical numbers are being presented as current results.

Check the benchmark source ↗

Research, not a finished language.

Ain is pre-alpha. The Rust backend supports more builtins than the experimental LLVM backend. Performance and token claims should be judged using real, repeatable benchmarks.

Documentation