A closed-source language with public docs and binaries · What’s new (July 2026) · Docs roadmap

The Alef Programming Language

Learn Alef from zero: install the command, write one file, run it, then grow into syntax, data, errors, runtime, and real programs.

Quickstart

One file. One command.

Alef programs are plain `.alef` files. The native runtime starts at `main` and prints directly to your terminal.

Terminal
alef run main.alef

Beginner path

Learn the language in the order you need it.

Runnable example

A small program that already looks like work.

main.alefsource
fn priority(plan, blocked) {
    if plan == "enterprise" and blocked {
        return "P0"
    }
    return "P2"
}

fn main() {
    let ticket = {
        "id" => "TD-101",
        "plan" => "enterprise",
        "blocked" => true
    }

    let p = priority(ticket["plan"], ticket["blocked"])
    let id = ticket["id"]
    println("{id}: {p}")
}
Run
alef run main.alef
Output
TD-101: P0
Walk through this program

Reference

There is now a real language spec.

The syntax reference is quick lookup. The language specification is the public contract for `.alef` files: source files, lexical elements, declarations, statements, expressions, types, `Result`, `Option`, imports, and execution.

A Language Specification For implementers, advanced users, and exact behavior.

Core language

What you learn first

Functions

`fn`, parameters, return values, typed signatures.

Values

`let`, strings, numbers, booleans, arrays, maps.

Control flow

`if`, `for`, `while`, and `match`.

Data modeling

Maps for JSON-like data, structs and enums for named shapes.

Errors

`Result`, `Option`, explicit failure, and the `?` operator.

Runtime

The `alef` command, native runtime, tests, HTTP, JSON, and AI stdlib.

Still growing

We keep expanding these docs.

Baseline is usable today (install, book, core stdlib). The rest is active work: agent-backend recipes, deeper stdlib, cookbooks, better nav. The roadmap is a progress bar — not a finish line.

R Documentation Roadmap Live · Building · Queued · Horizon

Public docs, private source.

Alef's documentation, examples, tutorials, release binaries, and example repositories can be public. The compiler and native runtime source repository remain private.

Book

Chapters