Skip to content

Systems programming language

Native speed,
written like a script.

curl -fsSL https://zz-lang.pages.dev/install.sh | sh

Then run zz setup once to finish PATH and shell completions.

0GC pausesarena + ARC memory — no collector to pause for
VM + AOTtwo enginesVM for instant runs, AOT for native binaries
asyncby defaultpure-async I/O in the stdlib
0.4.0current releaseApache-2.0 licensed, open source

Get started

Five minutes to a native binary.

Install the toolchain, write a program, compile it. No project template and no build file to learn — the whole workflow is one command.

  1. 01

    Install

    curl -fsSL https://zz-lang.pages.dev/install.sh | sh
    zz setup
  2. 02

    Write

    hello.zzzz
    Run
    name := input("What is your name? ")
    println("Hello, {name}!")
  3. 03

    Run, then build

    zz run hello.zz

    Runs on the VM. No build artifacts, nothing to clean up.

    zz build hello.zz

    Compiles ahead of time to a native binary. Then run ./hello.

One binary does it all — run, build, check, format, test, benchmark, package and publish. No separate linter, no package manager to install, no dependency tree to audit.

Full CLI reference

Capabilities

Two engines. No collector. No black box.

Everything below ships in the release, and every claim is written down in the docs — which are generated from the language repository, so this page cannot drift away from it.

Dual engine

VM for dev, AOT for release

zz run starts on the tree-walker interpreter and bytecode VM — no build step, no artifacts to clean up. zz build compiles ahead of time to a native binary — -O3 -flto=thin, optionally profile-guided. Same language, same semantics, two engines.

zz run hello.zz         # VM — no build step
zz build hello.zz       # native binary
zz build --pgo main.zz  # profile-guided (native host)

Memory

Arena plus ARC

Values are arena-allocated, and anything shared is reference counted with atomic counters — ARC. Cloning is an O(1) bump; a write copies once, and only when the value is actually shared. No collector, no references, no lifetimes, nothing to free by hand.

b := fs.read_bytes("data.bin")?
head := b[0:4]   // zero-copy — shares the store

Code

Reads like pseudocode. Compiles like C.

Three small programs that do ordinary work: a set of sensor readings, a grade sheet, a receipt. Every construct is in the release, and each one runs in the playground — no install, no setup.

Open the playground

zz
Run
struct Reading { sensor: str, celsius: int }

func is_hot(r: Reading) -> bool {
    return r.celsius >= 21
}

readings := [
    Reading{ sensor: "north", celsius: 19 },
    Reading{ sensor: "south", celsius: 24 },
    Reading{ sensor: "east", celsius: 22 },
]

for r in filter(readings, |r: Reading| is_hot(r)) {
    println("{r.sensor} reads {r.celsius}C")
}

Only the sensors that are reporting a high temperature.

zz
Run
func letter(score: int) -> str {
    if score >= 90 {
        return "A"
    }
    if score >= 80 {
        return "B"
    }
    return "C"
}

scores := [88, 92, 79, 95]

for score in scores {
    println("{score} -> {letter(score)}")
}

total := 0
for score in scores {
    total = total + score
}
println("average: {total / len(scores)}")

A grade sheet: letter for each score, and the average.

zz
Run
struct Line { name: str, qty: int, cents: int }

items := [
    Line{ name: "coffee", qty: 2, cents: 350 },
    Line{ name: "sandwich", qty: 1, cents: 725 },
    Line{ name: "juice", qty: 3, cents: 180 },
]

subtotal := 0
for item in items {
    subtotal = subtotal + item.qty * item.cents
}

tax := subtotal * 8 / 100

println("subtotal: {subtotal}c")
println("tax:      {tax}c")
println("total:    {subtotal + tax}c")

A receipt: line items, subtotal, tax, and the total.

Standard library

Batteries included.

Sockets, TLS, SQL, files, processes, terminal control and the test runner ship with the language. The dependency tree starts empty and stays that way unless you ask for it.

Concurrency

Green threads, channels, and a task scheduler.

Networking

HTTP server and client, TCP, TLS, Unix sockets.

Data & databases

One query API over SQLite, Postgres and MySQL.

Strings & arrays

Strings, slices, buffers and compiled patterns.

Files & OS

The filesystem, paths, env, args and child processes.

Terminal & testing

Terminal control, colours, logging, crypto and the test runner.

Browse the standard library