Documentation - The ZZ Programming Language
Welcome to ZZ.
Start here (in order)
Section titled “Start here (in order)”- Download and Install — One script.
- Quick start — A program in under a minute, including an HTTP server.
- Project layout —
zz.toml, entry point, imports, tests, benches, assets. - REPL tour — Interactive stdlib probing.
- Cheatsheet — One-page reference for commands and syntax.
ZZ in 30 seconds
Section titled “ZZ in 30 seconds”- Values, not references. Variables hold independent values; functions get copies. No borrow checker, no aliasing to reason about.
- Inferred, then checked.
:=infers,: T =pins. The checker reports every error in one pass with a fix hint. - Pipelines over nesting.
|>passes the left value as the first argument;match+?+??keep happy-path code flat. - Same on VM and native.
zz run(VM) andzz build(AOT) agree bit-for-bit on ints and floats.
Browse by topic
Section titled “Browse by topic”- Language — Values, types, control flow, modules, and the mental model behind ZZ.
- Standard library — Strings, data, HTTP, databases, crypto, concurrency, and more.
- Tooling — CLI, formatter, test runner, package manager, editor integration.
- Guides — Recipes, diagnostics explained, VM vs native parity.
- Compiler — Architecture, checker, runtime, and code generation.
API reference
Section titled “API reference”The complete stdlib signature index lives on one page: Stdlib reference.
Next: Install.