Skip to content

v0.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Sep 05:21
· 829 commits to main since this release
dfac6ef

The release in which the tools say what the compiler says. →
full notes

0.5.0 stopped the language saying no. 0.6.0 makes the tools say what the compiler says.

  • zerg lsp publishes the check's own findings, at the place the compiler named — a decorator's
    expansion at the decorator — on the program the editor holds: every open buffer stands in for its
    file, and a change reaches the files that import it.
  • A name has a declaration. Definition and references answer from one index the checking walk
    builds, and hover is the document zerg doc prints. The outline is a view of the program.
  • A check is one walk, a quick fix is a lookup, and a long session stays in the band of one check.
  • zerg doc runs the fences (--check), reads ## as the reader's text and # as the
    maintainer's (--all), finds a declaration by prefix (-s), and writes static HTML (--html).
  • Eleven leftovers close, #166 among them. Two were
    silent wrong answers: a caller's local answered a default's names, and a call through the second of
    two same-named imports took the first one's defaults.
  • A select reads a channel in the order it was sent. Under several workers a value could overtake
    ones already buffered — a silent wrong answer, seen once on CI
    (#260).
  • 63 gates, up from 62. The new name is compiler-test.

One leftover of 0.4.0 ships unfixed — #165, closed and
re-measured: E3079 still names a spelling E3069 refuses. It is loud; it does not miscompile.

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.6.0-<platform>.tar.gz
./zerg-0.6.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