Repository navigation
v0.5.0
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.
Ordderives, andEq/Ordreach a payload enum.E9055retires.E9054narrows to
Hash,EncodeandDecode— those three stay[not yet].set[T]is a type, with a constructor and members.E9064retires.- A
structmay contain itself through a carrier.E4026narrows 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;
nilas a
pattern; a range as a value.inasks the equality rule in its own words.E9009narrows to
p?.m(…);E9010andE9068retire;E9077narrows to a range of a type this compiler cannot
compare. - A
specmember is neverunsafe. The leftover of 0.4.0 —
#123 — closes:E9036retires into a position. - 62 gates, up from 60. The two new names are
formulaandrelease-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 --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.