Repository navigation
Nihil v4.18.0
Records take 8 bytes less: their header is one word instead of two. bench/workload (1,000,000 sales, an M4) peaks
at 140 MB instead of 156, in the same time and with the same files; on Linux x86-64, where a record of five INT
fields is 48 bytes instead of 64, from 167 to 137 MB. A real program whose memory goes mostly to texts and maps (a
planogram generator, about 800 MB on Linux) peaks the same, with the same output. No program changes.
-
Records take 8 bytes less: a header of one word instead of two (no length word; SPEC §20.12). A record of five
INT fields is 48 bytes instead of 64 on Linux x86-64 and 48 instead of 56 on ARM64.bench/workload(1,000,000
sales, an M4): peak memory 156 → 140 MB, the same time and the same files. Both collectors scan a block from its
second word, so a record's first field is seen; an ARRAY's length word, scanned too, is no address- Why: a record's length word was read by nothing once the prelude went through the record contract (v4.18's
first part): two million records of the workload carried 16 MB of it
- Why: a record's length word was read by nothing once the prelude went through the record contract (v4.18's
-
Records have a contract of their own, apart from ARRAY's: the prelude makes a record in one place
(__nihil_rec_new) and reads a field with__nihil_rec_get(r, i), an ARRAY's load without the limit (a record's
length word is no longer read by anything), and the compiler finds a record's header word at one offset
(REC_FLAGS). No program changes;bench/workloadthe same (139 ms). The groundwork for records with a header of
8 bytes instead of 16- Why: the prelude read and wrote a record's fields as an ARRAY's elements, which checked each index against
the length word before the record: that word could not go
- Why: the prelude read and wrote a record's fields as an ARRAY's elements, which checked each index against
Install
curl -fsSL https://nihil-lang.dev/install.sh | shLinux 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.