Skip to content

Nihil v4.17.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 22:07
· 26 commits to main since this release
bdf8ac8

Nihil runs on Linux on ARM64 (Graviton and other ARM servers, 64-bit boards), with static executables that need no
C library: a third package, nihil-linux-arm64, checked on GitHub's ARM64 runners like the other two. A LIST of
records is written as a table without a copy (bench/workload: 8 MB less at its peak), and Nihil installs with
Homebrew (brew install nihillang/tap/nihil).

  • Linux on ARM64: -native-linux writes a program as ARM64 assembly for Linux with its whole runtime, which as
    and ld (binutils) make into a static executable with no C library. The ARM64 backend of macOS, with ELF's
    syntax, a layer of the system of its own (src1/native_linux.nihil: Linux's calls on x86-64, which the prelude
    speaks, made with ARM64's) and the 25 C functions its runtime calls written over Linux's calls (src1/nhlibc.c).
    The compiler built there compiles itself to the same text the Mac's writes for it; the tests pass as usual,
    without optimizations and with the collector under pressure. A new package, nihil-linux-arm64, built and
    checked on GitHub's ARM64 runners (linux-arm64/ci.sh, in tests.yml and the release workflow); install.sh
    installs it. bench/workload (1,000,000 sales, Linux in a container on an M4): about 145 ms, the same results
    as on the Mac. See docs/linux-arm64.md

    • Why: ARM servers (Graviton) and boards run Linux on ARM64; the backend existed, only the system around it
      was macOS's
    • The macOS layer of the runtime moved to src1/native_mac.nihil, unchanged
  • Install with Homebrew: brew install nihillang/tap/nihil (the tap github.com/nihillang/homebrew-tap; its formula
    is written from each release's checksums by dist/brew-formula.sh). install.sh no longer asks for objdump on
    macOS, which only the translator needed

  • Tables: @>> path, list; writes a LIST of records straight from its items, the same file and the same errors as
    @>> path, list.array();, without copying them into an ARRAY first. bench/workload writes its sales that way:
    peak memory 165 → 157 MB at 1,000,000 sales, about 1% fewer cycles (an M4)

    • Why: .array() made a second ARRAY of a million pointers only to hand it to the writer, and a LIST was refused
      with a message that did not say why

Install

curl -fsSL https://nihil-lang.dev/install.sh | sh

Linux on x86_64 and on ARM64 (with binutils), and macOS on Apple silicon (with the Xcode Command Line Tools).

Each package has a build provenance attestation: gh attestation verify nihil-linux-x86_64.tar.gz --repo nihillang/nihil.