Nazm 0.11.0 — the toolchain written in Nazm
Published 2026-11-28.
Toolchain 0.11.0. Language: the 1.0 draft. Targets: macOS on Apple Silicon (aarch64-apple-darwin),
macOS on Intel (x86_64-apple-darwin) and Windows on x86_64 (x86_64-pc-windows-gnu). This file
records what the release is, what was checked for it and what was not; it is not updated as the
project moves. Current implementation truth is
../../internal/capability-matrix.md; what is not done is
../limitations.md.
What this release is
0.10.0 made the language ready to write its own toolchain. 0.11.0 is that toolchain: the compiler,
the interpreter, the commands, the test harness and the tests are written in Nazm, and the nazm you
download is built by Nazm from Nazm. The Rust implementation that came before it is frozen as the
bootstrap seed — the program that builds the first Nazm-written compiler — and changes only by a
recorded decision of the copyright holder (docs/internal/seed-freeze.txt).
As for 0.9.0 and 0.10.0: no compatibility promise until 1.0, and external contributions are not
accepted yet. Language changes since 0.10.0 are in ../spec.md; a program that built
with 0.10.0 builds with 0.11.0 unless a changed rule named there says otherwise.
Four changed rules can break a 0.10.0 program:
List[T]is now the growable list; the immutable sequence isChain[T], and thelist_from_vec,list_empty,list_lenandlist_getbuilt-ins are nowchain_*(a missinglist_*built-in is N0637, naming its replacement).[1, 2, 3]with no[T; n]expected type is a shared growable list, not a fixed array: writelet a: [Int; 3] = [1, 2, 3]for an array. An untyped empty[]is N0618.- A pattern
letbinds in the scope it is written in, so rebinding a name in the same block is N0202. nazm runcompiles natively;nazm run --interpretis the interpreter, and--max-iterationsand--max-depthneed--interpret.
Linux, WebAssembly, WASI, Android, iOS and the boards are refused by name by nazm build in this
release (they return in 0.12.0 and 1.0), and --backend cranelift is refused, naming llvm and nazm.
Installing
Download the archive for your machine and SHA256SUMS from the release page, check, unpack, and put
bin/nazm on PATH:
| Machine | Archive |
|---|---|
| Apple Silicon Mac | nazm-aarch64-apple-darwin.tar.gz |
| Intel Mac | nazm-x86_64-apple-darwin.tar.gz |
| Windows, x86_64 | nazm-x86_64-pc-windows-gnu.tar.gz (MinGW build, bin/nazm.exe) |
On a Mac the binary is ad-hoc signed and not notarized: clear the quarantine flag once. nazm build
needs the Xcode Command Line Tools on a Mac. Homebrew: brew install nazm-lang/tap/nazm.
What is in it
| Area | What |
|---|---|
| The toolchain in Nazm | The lexer, parser and checker agree with the Rust reference on every input they carry; the intermediate representations, ownership and cleanup, the runtime’s units and the object cache are identical to the reference’s on both Mac targets; the interpreter and every command are ported and compared against the reference |
| Nazm’s own code generator | nazm build --backend nazm writes Mach-O objects for both Mac targets, checked against LLVM program by program; LLVM stays the default and Cranelift stays available |
| Self-hosting | The compiler built by itself is byte-identical to the build before it (stages 1 to 3), and the self-built interpreter and checker agree with the seed’s on the corpus; the build holds a bounded heap |
| A host rule | One Nazm-built program may run on the macOS host, under a counted 2 GiB heap, one at a time and never beside a container; everything else Nazm builds runs only in the container (xtask host-run) |
| Windows | The toolchain runs on a real Windows x86_64 machine (Windows 11, build 26200): the Windows archive’s nine programs, built for it twice by the self-built Mac toolchain with identical objects and executables, run there one at a time under the runner’s limits, and 507 of their answers agree with the Mac build’s (414 byte for byte, 93 after normalising line endings, paths and .exe), 0 differ; one is refused on Windows by decision (TLS, N0830) |
| Speed | Compile and run speed work from R1.5 and stage P; the cross-language comparison is ../performance.md. Cold builds are slower than in 0.10.0 (a fourth shared runtime unit and function sections, which make the programs faster); making them cheaper is planned for 0.12.0 |
| Build modes | build.sh modes (llvm, cached, report-cached, lib, summary, timings) and BUILD_ARGS=1 agree with the reference: 899 agree, 0 differ; 161 agree, 0 differ |
What the gate found and fixed
The gate is run to find things. Between 0.10.0 and this release it found, and the release fixes:
- A recursion that never ended. A user type that referred to itself made
UserTypes::depthloop (the seed-freeze exemption for it was approved by the copyright holder). The check now stops at a cycle and reports it. - A fuzz run that could hang unseen. The fuzz harness gained a watchdog that kills a stuck target and reports it.
- A test that did not test. The mutation campaign let one mutant survive — the Cranelift backend’s version string leaving out its optimisation level, so an object built at one level could be reused at another. The test compared cache keys that differed for another reason, so it passed. It now checks the version string itself, and fails on the mutant. Four more tests were strengthened for mutants whose killer passed on the mutant (the registry republish, equality of handle sequences, the stdlib module lookup, the order of a native comparison’s operands).
- Windows and arm CI. Ten tests that need a Unix host are compiled only on Unix; one lock test that raced a forking neighbour waits the race out.
Licences
Unchanged from 0.9.0 and 0.10.0; third-party notices ship in the archive.
What was checked, and what was not
Run on macOS 27 on Apple Silicon, on 5159429d (the commit the archives were built from; the tag adds only these notes and the docs).
- The host suite (
cargo nextest run --workspace): 3,136 passed, 85 skipped, 41 refused. The self-hosting tests refuse on the host by design and run in the container. - In the container (4 GiB, 4 CPUs): the whole test suite, the self-hosting gate, the bootstrap and the self-build all passed. On the bumped commit: 3,130 tests passed, 0 failed; selfhost, bootstrap and self-build agree.
- Fuzzing: five targets, 600 s each, 5,116,989 executions, 0 crashes, 0 out-of-memory. The
runtarget reports programs that block on purpose (waiting for input that never comes) as hangs; they are the target’s design, not defects. - Mutation testing: the full targeted campaign, 2,113 mutants, run in the container. 2,081 were decided by the fast tier and the remaining 32, which need the whole baseline suite, in a second run with a longer deadline. 0 survivors at the end (the one that survived once is named above). No mutant was dropped or excepted and no test was weakened.
- Windows (a second Windows x86_64 machine, reached over SSH; programs and the toolchain against
the Mac builds): host programs 70 agree, 0 differ, 15 skipped (they need C, input or arguments);
the toolchain on Windows (
run --interpret,check,fmt --check,run,build,nazm test) 94 agree, 2 differ. The two arehttpd’s native run and build, the same two as every earlier Windows run:httpduses@std/http, whose TLS has no binding forx86_64-pc-windows-gnuyet, so Windows refuses it by name (N0830), so its two answers are not the Mac’s (Windows TLS is planned). The Windows self-build’s check ran 434 steps and 75 built programs there, one at a time, under the runner’s deadline, output and memory limits. - Benchmarks: no regression against the baseline commit, but not measured in a quiet window.
The bench ran alone in the container, while the Mac itself was busy (load 10 to 36 on 10 cores), so
every number, the unchanged C, Rust and Python reference programs’ included, came out slower than
the saved baseline. It was judged instead by alternating runs of the release commit and the commit
the baseline was saved on (
7b7bdee8), twice each, under the same load: no measurement more than 5 ms apart differs by more than 10% (the largest,arithcold build at-O0, +9%), while the unchanged Rust reference program moved by 126% between runs. Between those two commits the measurednazmchanged only in its version text. The baseline itself (2026-11-10) accepted slower cold builds, named under Speed above. - Reproducible build: each Mac self-build’s stage 2 and stage 3 are byte-identical (nine programs
each), and the Windows build equals its second build;
SELFBUILD.txtin each archive says how to check it.
The archives’ SHA-256 are in SHA256SUMS beside them on the release page.
Not done for this release, and named so:
- The full mutation strategy (
--strategy full) is infeasible at this size; the targeted campaign above is the release’s mutation evidence. - Platforms. Linux, wasm32 and WASI are planned for the next release; this one ships the three targets above.
- Signing. Binaries are ad-hoc signed and not notarized; the Windows archive is unsigned.
- Legal. The CLA’s legal review and a trademark search are open.