Quick start
Create hello.zz:
name := "World"println("Hello, {name}!")Run it (VM, no build artifacts):
zz run hello.zzBuild a real binary (needs clang or zig cc):
zz build hello.zz./helloFrom zero to a project
Section titled “From zero to a project”# Create a new CLI project (templates: cli | lib | web | plugin)zz new my-app --template clicd my-app
# Run the generated src/main.zz (VM, fast)zz run
# Build a native binaryzz build./my-appThe 60-second tour
Section titled “The 60-second tour”// Variables: := infers, : T = checks.x := 42pi: float = 3.14
// Named functions return through `return`.func add(a: int, b: int) -> int { return a + b}
// Pipelines read left to right.result := " Hello World " |> str.trim() |> str.to_upper()// "HELLO WORLD"
// Safe parsing with Option + fallback.age := int("42") ?? 0
// Match must handle every case.match int("nope") { .some(v) => println("got {v}"), .none => println("not a number"),}ZZ’s sweet spot — an HTTP server in a few lines:
import std.http
func main() { s := http.server() s = s.route("GET", "/", |req| "ok") s = s.route("GET", "/users/:id", |req| "user-{http.param(req, "id") ?? "?"}") http.listen(s, 8080)}Run it:
zz run main.zzThen curl http://localhost:8080/ and curl http://localhost:8080/users/42.
Verify
Section titled “Verify”zz check hello.zz # type-check, rich errors + suggestionszz fmt hello.zz # format in placezz eval "1 + 2" # quick eval, prints 3zz test # run @test functions (uses ./tests/ if present, else .)Next: Project layout and REPL tour. Deep grammar: syntax.md.