Repository navigation
v0.3.0
The release in which the grammar stops being a promise: the forms GRAMMAR derives are lowered, not
refused. → full notes
- Seventeen forms built. Generic
struct,implandfn;Ref[T]andderef; associated functions
and associated values; destructuring both ways; struct, list, tuple and or-patterns;pattern as name;
the array type[T; N]; aspecmember with a body; amut &in a function type; the command literal;
an f-string's{x!r}/{x=}/{x:spec}tails;asm;ptr; a standaloneunsafe fn. - A generic is a name. A declaration is a template and an application is an ordinary type with that
name, so nothing in the type tree grew a case — measured before it was chosen. - What is still not built is named row by row, each with the code that refuses it, and
chapter-codes
fails if a row outlives its form. Seventeen rows had. - The gates were audited against themselves. A skip list that only checked one direction, an exclusion
that outlived its reason, four gates that compared what a program prints and not what it dies with, and a
file list that read 347 of 769 sources under a line claiming all of them. - The corpus runs under the sanitizers. 179 cases that had never been measured; sixteen leaked, six are
closed, and the ten that remain are listed by name with what allocates. - 58 gates, up from 52.
Install
Download the tarball for your platform, unpack it anywhere, and put its bin on your PATH.
Nothing has to be exported: the compiler finds its runtime and standard library from its own
path.
tar xzf zerg-0.3.0-<platform>.tar.gz
./zerg-0.3.0-<platform>/bin/zerg --versionVerify what you downloaded against SHA256SUMS:
sha256sum -c SHA256SUMS # macOS: shasum -a 256 -c SHA256SUMSA C compiler is required to build a program, not only to build Zerg: zerg build emits C17
and hands it to cc.
There is no Intel-Mac binary — Rosetta runs x86_64 on Apple Silicon and not the reverse, so an
Intel Mac builds from source, which needs Go as well as cc.