Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 29 Aug 15:25
· 1466 commits to main since this release

The release in which the specification stops disagreeing with the compiler, and the file becomes the unit
a name belongs to. → full notes

  • No [deviation] markers. 0.1.0 shipped a specification that named the places it was wrong; this one
    has none. Every marker it carried was closed three ways only — the compiler was fixed, the spec moved, or
    the requirement became a door in FUTURE.md — and then the tree was searched for the ones nobody had
    written down.
  • The file is the unit. Visibility and imports are the file's, a folder is a module by holding mod.zg,
    and a project's own modules are spelled ./. A module is what an import RESOLVED to, not how it was
    spelled, so one directory reached two ways is one module.
  • A public name is not program-global. Two modules may each declare pub fn helper. The module tag that
    separated private names was simply not given to public ones.
  • Every refusal carries a code and a place, and a code's range names the stage that reports it. Sixty-odd
    numbers moved to the range that answers their question; the ones that stayed in E9xxx are the forms this
    compiler has not built.
  • A marker names its rule. Every [not yet] in the specification quotes a code the compiler still
    raises, or names the ticket for the rule that does not exist yet.
  • Five more gates, and two that had been passing without checking anything now prove they can see before
    they report what they saw.
  • Tooling. An ignore file and the first pattern matcher this toolchain has; fmt, lint and desugar
    take files; zerg test no longer follows a symlink into itself.

Still no compatibility promise. The surface moves, and a [not yet] becoming built is the ordinary way
it will move. Eighteen specified features remain refused by name — pattern matching beyond the binding and
literal forms, the f-string's format spec, command literals, asm, and the rest are listed in the notes.

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.2.0-<platform>.tar.gz
./zerg-0.2.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