Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 21 Sep 02:21
· 1022 commits to main since this release
9a317e9

The release in which the language stops saying no while a user writes a library. →
full notes

0.4.0 let a user write a LIBRARY. 0.5.0 stops the language saying no while they write one.

  • Ord derives, and Eq / Ord reach a payload enum. E9055 retires. E9054 narrows to
    Hash, Encode and Decode — those three stay [not yet].
  • set[T] is a type, with a constructor and members. E9064 retires.
  • A struct may contain itself through a carrier. E4026 narrows to a cycle with no carrier.
    struct Node { pub next: Node } is still not a program.
  • A callee may be an expression. A named argument in a call and a construction; nil as a
    pattern; a range as a value. in asks the equality rule in its own words. E9009 narrows to
    p?.m(…); E9010 and E9068 retire; E9077 narrows to a range of a type this compiler cannot
    compare.
  • A spec member is never unsafe. The leftover of 0.4.0 —
    #123 — closes: E9036 retires into a position.
  • 62 gates, up from 60. The two new names are formula and release-sums.

Two leftovers of 0.4.0 ship unfixed — #165, whose
GitHub close was the 0.4.0 notes naming it, not a fix, and
#166, still a generic method's receiver polluting a
later solve, though the observed program has shifted. Both are loud; neither miscompiles.

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.5.0-<platform>.tar.gz
./zerg-0.5.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