Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 09 Sep 01:21
· 1188 commits to main since this release

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, impl and fn; Ref[T] and deref; associated functions
    and associated values; destructuring both ways; struct, list, tuple and or-patterns; pattern as name;
    the array type [T; N]; a spec member with a body; a mut & in a function type; the command literal;
    an f-string's {x!r} / {x=} / {x:spec} tails; asm; ptr; a standalone unsafe 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 --version

Verify what you downloaded against SHA256SUMS:

sha256sum -c SHA256SUMS        # macOS: shasum -a 256 -c SHA256SUMS

A 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.

→ the full account, with every gap named