# Changelog Newest first. One entry per release: the version (the one `nibc --version` prints, read from `dune-project`), what a program can observe that changed, and a breaking-change line ("none" is written out). The diagnostics digest in the banner moves only when the code table's prose does; a digest change is listed here. Between releases `main` carries the next version with a `-pre` suffix, and its section below collects every change as it lands. A release is cut only when enough of it is polished to be worth shipping: the suffix is dropped, the section is dated, and the tag, binaries and site follow (AGENTS.md, "Releases"). ## 0.3.0 — 2026-11-24 A nib program can be run in a simulated world and checked against a model. `Net.Sim` and `Time.Sim` run a cluster in one process — the network's delays and drops, a host's crash and restart, which fibre runs next and every random draw are choices the world makes, written in the journal — so a run is a value: replayed with no network, steered from a world file, shrunk to its fewest choices and judged by `nib-tla` against a TLA+ specification. The release archive carries `nib-tla` and the model checker it runs, and `areas/examples/raft-nib` is Raft written this way. Native builds cover closures and recursions that wait, channels and failures as values, and run much faster (unboxed Floats, hash-trie Maps, a parallel `Vec.map`); a native executable says which nib built it. A wire's entry is a header clause, `wire W runs E where …`. Some 0.2 programs need changes, and each change that can break one is marked **Breaking** below. - **`./app --version`: a native executable says what it is.** Two lines: the `nibc --version` line of the compiler that built it, then `program (wire W of FILE)`, the identity a journal of its runs carries. Only alone: `./app --version 3` is still refused, exit 2. - **A native build refuses a program as `--check` does.** A program the front end refuses — a type, name, load or syntax error — used to end `nibc build --target native` with an OCaml exception and exit 2; it now prints the coded diagnostic `--check` prints (`… [nib-t000]`) and exits 1. A wasm build's refusals print through the same printer. The build no longer prints the front end's stage lines (`Parsed N declarations.`). - **`nibc --help` and `nibc build` name the native target first.** The usage said wasm32 was the only target the build emits; it now lists `--target native`, says it is the executable nib is built for, and a `build` without `--target` names all three. - **Channels build natively.** `Channel.make`, `send`, `recv` and `close` compile in a native fibre program, which used to refuse `Channel` by name. Each is a park the native host answers with the walker's meaning: a send copies its value into the channel's own region and a receive copies it into the receiver's, so a value crosses fibres and cores whole; the channel goes with its switch, after which a receive or close is refused and a send answers `false`. A run whose every fibre waits, one of them on a channel, ends with the walker's deadlock sentence (exit 70) instead of waiting for ever. A wasm fibre module still refuses `Channel` (`docs/language/fibres.md` §5b). - **The release archive carries `nib-tla`.** `bin/nib-tla` beside `bin/nibc`, and TLC (the TLA+ tools' v1.7.4 jar, TLC 2.19, MIT) in `share/nib-tla/`: nib-tla finds both beside itself, so checking a journal against a TLA+ spec needs only a Java runtime, not a Quint or Apalache install (`release.nix`; `docs/language/tla.md`). - **A concurrent server's journal replays.** It used to be refused at load: a served `recv` does not wait, so a replay's fibres reached the file's entries in fork order rather than the order the network gave them. A replay now keeps a turnstile — a fibre whose next entry is another fibre's waits its turn — so the file's order is the run's, and a replay whose next entry's fibre never comes is refused naming both. A journal numbers fibres from where the process's id counter stood when the run began, so a recording and its replay in one process agree (in a fresh process the numbers are unchanged) (`docs/language/journal.md`). - **A wire names the world it runs in: `wire W runs E in WORLD`.** `WORLD` is a function of no arguments, no effects and no raises answering a `World.World`, declared by the new `std/world.nib` along with `World.calm()`, the world a wire without `in` runs in; the checker refuses any other function by name. `--world FILE` is now read *over* the wire's world: a key it gives replaces that field, and `{ "seed": 7 }` is the wire's world under another seed. **Breaking:** the file's keys are the record's field names, so `net.delay_ms: [low, high]` is now `net.min_delay_ms` and `net.max_delay_ms` (`docs/language/world.md`, "A wire's world"; `docs/decision-history.md`, 2026-11-23). - **`Fiber.await` says it raises `HandleRefused`.** **Breaking:** it always raised it for a killed fibre or one whose switch had exited, but its type said nothing, so a `rescue HandleRefused` around an await was refused as never taken. A function that awaits now declares `raises HandleRefused` or rescues it; a fork body that awaits rescues it, since a fork body may not raise (`docs/decision-history.md`, 2026-11-23). - **A world can crash a host, and restart it.** The world file gains `crashes`: `{ "node": host, "at_ms": t, "restart_ms": later }`. At `t` every fibre of the host's nodes dies, its connections close and its listener goes; an effector's cells survive, which is where a program keeps what must outlive a crash. A `listen` on a host that is down waits for its restart. The journal records `World.crash` and `World.restart` with host and time, so a replay needs no world file (`docs/language/world.md`, "Crashes"). - **`#{ r with field: value }`: a record like another.** The record `r` with the named fields replaced; each must be a field `r` has, at the type `r` gives it, and the answer has `r`'s type (`docs/language/types.md`). It is `Record.update(r, #{…})`, and `--fmt` prints it back as written. - **`Json.int`, `Json.bool` and `Json.string`.** Readers for a member of an object whose wrong shape raises `Err.WrongType`, a new builtin tag a `rescue` arm can name — a message from a peer is input, not a bug. `Json.text` and its `NotAString` panic are unchanged. - **`Map.keys` answers a `Vec`.** **Breaking:** it answered a `List`, which has no operations; a program that matched it against `[x, ...rest]` now folds the `Vec` (`docs/decision-history.md`, 2026-11-23). `Map.pairs` still answers a `List`. Boolean negation, `!x`, is documented at last (`docs/language/types.md`). - **A recorded run's choices, as a world file.** The world file gains `draws` (given `Random.Sim` draws), so every choice a run can make is something it can say, and `nib-tla world --journal run.jsonl` writes the world file that makes a journal's choices: run the program with it and the recording is the same journal, byte for byte. Edit it to steer a run, cut it down to shrink a failing one. - **`Random.Sim`: randomness from the simulated world.** It answers `Random.Source` from the world file's seed; each draw is a `World.random` choice entry, served on replay, so a program that randomises (an election timeout) is a function of its world and an explorer can steer it. - **Channels between fibres.** `Channel.make(sw)` makes a `Channel` belonging to a switch; `Channel.send(ch, x)` queues a value and answers whether it went in (it never waits and never raises, so a fork body can send); `Channel.recv(ch)` takes the oldest, waiting until there is one, and raises `Closed` once the channel is closed and empty or `HandleRefused` once its switch has exited; `Channel.close(ch)` ends the sends. No effect row and no journal entries: what a `recv` answers is decided by the schedule, which is what a journal records. A run whose every fibre waits on a channel nobody will send to ends with a deadlock that names the channel. Native builds compile them too (see "Channels build natively" above; `docs/language/fibres.md` §5b). - **A scheduling policy written in nib.** `std/sched.nib` declares `Sched.Policy` with one operation, `pick(ready: Vec) -> Int`, and a wire may bind it to an effector of the program's: the runtime asks it which ready fibre runs next. No function names it in an effect row, because no function asks it anything. Its pick is recorded as the same `World.schedule` entry a seeded pick is, so the run replays without consulting it. A `pick` that answers out of range, forks, waits or performs an effect ends the run by name, and `nibc build` refuses a wire that binds a policy (a compiled program runs its host's queue) rather than ignore it. - **The schedule is a choice.** Which ready fibre runs next is still the FIFO queue by default; a world file can make it `"schedule": "random"` (drawn from the seed) or give `picks`, indices into the ready fibres. A pick that is not the queue's own is a `World.schedule` choice entry, so a recording replays without its world file and a FIFO run's journal is unchanged. `docs/language/examples/world/race.nib` is a program that is only right in FIFO order: a seeded schedule shows it wrong and one pick reproduces it. - **A simulated world: a cluster in one process.** `Net.Sim` answers `Net.Socket` and `Time.Sim` answers `Time.Clock`, so a program tests against them by changing its wire (`docs/language/world.md`). Every node is a fibre, named by the address it listens on; time is virtual and moves only when no fibre can run, so ten virtual minutes take no wall time; each send's delay, loss or duplication is the world's choice, drawn from `--world FILE`'s seed (or given by its `script`) and written to the journal as a `choice` entry (`World.deliver`, `World.partition`). A replay serves the choices and performs every simulated operation again, comparing answers; two runs with one world write the same journal. `until_ms` ends a run at a horizon. Walker only. - **A server can be recorded, and replayed with no network.** Every `Net.Socket` operation is now a reading: a recording writes what the network answered (a connection as its per-run ordinal, a buffer as hex, `poll`'s positions as a list), and a replay serves all seven from the file and never listens or dials, as `System.Remote` is served. `send` is checked by its argument digest, which now holds the bytes, so a replay that sends other bytes stops at that send. A fibre that listens names its node (`"node":"127.0.0.1:8080"`) and the fibres it forks inherit it, and an entry's `fibre` is the program's own fibre (the run's thread is 0), not the fibre the runtime makes to perform a wait. A journal whose socket entries come from more than one fibre is recorded but refused at replay, naming the scheduler as the missing piece. **Breaking:** `listen`, `accept`, `recv` and `poll` no longer refuse a recording; `connect`, `send` and `close` are served on replay instead of performed again. - **Journal revision 6: every file says how its run ended.** A recorded run's last entry is `"kind":"end"`, `"op":"Run.end"`, with `method` `returned`, `raised` (the outcome names the tag) or `failed`; it is counted and chained like any entry, a file without exactly one end entry, last, is refused, and a replay that ends another way is refused naming both endings. Every entry gains `node` and `msg` after `fibre` (`""` and `0` until a run names a node, `specs/nib-world`), and a handle is written with its per-run ordinal, `{"symbol":"conn","n":1}`. The walker, a native executable and `nib-tla` read and write it (the native build and `nib-tla` still read revision 5; `nibc --run` reads 1 to 6). `nib-tla` keeps the end entry out of `Trace` and writes it as `Ending`. **Breaking:** a revision-6 journal is refused by an older runtime, and a tool that counts a journal's lines counts one more. - **`wire Main runs App.main where Io.Print = Io.Stdout`.** The entry a wire invokes is named by `runs`, a clause of the header like an effector's `is`, and `where` opens the body — the bindings — as it opens every other declaration's body (`data`, `interface`, `effector`, `module`). A wire with nothing to bind stops at its entry (`wire Main runs App.main`); a session has no `runs` and is only `wire W where` and its bindings, so no valid program writes `with` any more. `nibc --fmt` writes the new form, and the tree-sitter grammar, the VS Code extension, the language docs, every example in the tree and the site use it. **Breaking:** the 0.2 spellings — `wire W where ENTRY with …` and `wire W with …` — are syntax errors whose message spells out the rewrite, and `runs` is now a reserved word. - **A native executable records and replays the journal.** `./app --journal-out FILE` writes the journal `nibc --run --journal-out` writes, byte for byte: the same format revision (5), identity, digests and refusals, so `nibc --run --journal-in` replays a native recording. `./app --journal-in FILE` replays one, the walker's or its own: the file is read and checked whole before the entry runs (header, count, sequence, chain, digests, the writer's exact text, then the program, runtime and wire), a reading is served from it, a print is performed again and compared, and every refusal is the walker's sentence at the walker's place. A native build reads revision 5 only; an older journal is refused with a pointer to `nibc --run`, which reads revisions 1 to 5. This slice covers programs whose entry does not wait: the clock, `Io.Disk`'s `read` and `exists`, `Random.System`'s `next_int` (answers and raises) and printing. An operation the journal cannot hold (`Io.Disk.list`) is refused at its place on both sides and a refused recording leaves no file; `NIB_JOURNAL=off` refuses as the walker does. Journalling a program whose entry waits is still refused by name (`specs/nib-native-journal`). - **More of the language builds natively.** `s(x)` on a Set (membership) and `xs(i)` on a List (the element, or `IndexOutOfRange` with the walker's sentence); a method of a value whose type is a bounded type variable (`a.area()` for `'s includes Shape`); a field of a field whose layout the build cannot see (`h.held.name`); `Switch.run(body)` with a function value; `assert` (`AssertionFailed` is now a numbered tag); and `Secret` — `Secret.of`, `label`, `reveal` and `@Env.Secrets.secret`, whose missing variable raises `Err.Missing` as the walker's does. `Io.Disk`'s `list` (sorted, without `.` and `..`) and `exists`, and `Random.System`'s `next_int` (self-seeded, as the walker's; `Err.OutOfRange` for a bound that is not positive), are answered by the runtime; the Linux sandbox of a program that reads files now also allows listing a directory and asking whether a path exists. A package's interface bound by the wire can be performed from outside the package by the name the package offers. - **Closures and recursions that wait build natively (the frame chain).** A closure value whose body waits — stored in a record, passed to a function, called from a `Vec` walk — and a recursion that waits outside tail position now compile: a function that parks takes a frame of its own in the fibre's region (only then, so code that never waits pays one flag test per closure call), its callers park with it, and resuming re-enters the chain from the fibre's root. Raises, `try` inside and around the closure, a host's raised answer and forked fibres all behave as before. - **A method of one key runs in that key's storage natively.** A method whose claim covers one key (every cell site names the same cell and key, computable at entry, and no other instance is called) and whose operation raises nothing runs its body with that key's stripe region as its heap: reading the slot is the stored value with one more owner, writing it stores what the body built, and only an argument kept as it is and the answer are copied across. The accounts benchmark with 32 KB per account: 183 -> 212 k req/s at 64 connections, 105 -> 130 k at 256, on eight cores. `NIB_CELL_COPY=1` at build time keeps the copying path. - **Freeing stays inlined natively.** The large-block merge and the free routing (both rare) are kept out of `release` on native builds, so it inlines into every free again: the merge had made it a call, which cost binary-trees 8 % (10.4 -> 9.6 s). - **A method that reads its slot once and writes it updates in place natively.** In a method running in its key's storage, when the slot is read once and written on the body's main path afterwards (every way the body finishes passes the write: it raises nothing), the read moves the value out of the slot (`Cell#.ktake`), so `Vec.push`, `Vec.set` and the rest find one owner and work in place; the write puts it back. A fibre that traps between the two ends the run rather than leave the slot without a value. `NIB_CELL_TAKE=0` at build time shares it instead. - **`Vec.drop` works in place on a vector nobody else holds natively.** The ownership pass upgrades a drop whose vector dies there (`OVecDropU`): the dropped slots let go and the rest move down in the same block. Together: 2 million deposits into 1 024 accounts of 4 096, 2.8 -> 1.1 s and 113 -> 29 MB; the accounts server with 32 KB per account, 154 -> 250 k req/s (Rust 264 k, Go 119-213 k). - **Keeping a cell's value checks less natively.** A write in a method running in its key's storage keeps the value without a copy when every block it reaches is already there; the setter now says when the cell's type lets a value reach no block but its own (a scalar, a String, a vector of scalars), and only that block is checked. A `Vec` of 4096 was walked slot by slot on every write: 2 million deposits into 1024 such accounts, 4.8 -> 2.8 s. - **A core waiting for a cell stripe yields.** It spins briefly, then gives its time slice back between tries; the Linux sandbox allows `sched_yield`. - **`nibc --run --arg` gives an `Int` parameter an Int.** The value was always handed over as a String, so `n + 1` failed and `i == n` never held (a recursion over `n` ran to the step limit). An Int parameter's value is parsed, one that does not parse is refused by name, and a parameter of a type a command line cannot carry is refused rather than given a String. - **Native memory is reused where it was not.** Three leaks, each found by a server keeping per-key state in a cell: - a vector copied out of a cell, pushed to and dropped once per call grew in place at the heap top each time and left the bigger block it had freed on a list nothing asked from — one dead block per call (52 MB after 100 000 calls). Growing in place now takes a free block of the new size first; - a value growing by a word per write freed a block one word too small for the next write, in the size classes and in the large list alike, so a cell holding 1 024 growing vectors used memory quadratically and ran out after a million writes. From 512 bytes up a block's size is rounded up to one of eight steps per doubling (at most 1/8 more), and adjacent free large blocks merge; - running out of a cell's storage retired a fibre with the thread still working in that storage, which corrupted it; it now ends the program with its own message. 6 million writes into 1 024 4 096-element vectors run in 142 MB. The wasm runtime is unchanged. - **A pure `Vec.map` runs on every core natively.** When the callback performs no effect and raises nothing, and it maps Ints, Floats or Bools to Ints, Floats or Bools, the compiled program splits the vector into chunks and runs them on a pool of threads, one per core the process may use (`NIB_CORES` sets the count; `NIB_CORES=1` runs it serially). The callback may call functions, recurse, allocate and capture any value: each worker has its own heap and its own copy of the closure, so no counted value is shared between threads. A map inside the callback runs serially. Fibre programs keep the serial loop. A row-by-row mandelbrot written with `Vec.map` runs as fast as hand-threaded Rust and Go (`bench/xlang/nib/mandelpar.nib`). - **Counting into a map is one walk natively.** `Map.set(m, k, Map.get_or(m, k, d) + n)` (either operand order, `m` and `k` the same variables in both calls, Int values, `n` not mentioning the map) finds the key once and adds in place where the map has one owner, instead of a lookup followed by an insert. k-nucleotide 6.69 -> 5.16 s on Linux. - **Repeated writes to one vector check it once natively.** Along a straight run of code, once a write to a `Vec` has proven it a vector with one owner holding raw doubles, later writes to it are plain stores, and its length is loaded once; any call, copy, loop boundary or join of two branches forgets what was proven. The rare paths (a shared vector, a boxed one) are out-of-line cold calls, so the hot path keeps its Floats in registers. n-body 0.77 -> 0.48 s on Linux. - **A `Vec` holds raw doubles natively.** Once a vector holds a Float, its slots are the IEEE bits rather than pointers to boxes (block kind `FVEC`); every write path keeps that true. The compiler knows from the checked types which vectors are `Vec`, so reading one is a plain load and other vectors pay nothing; only a vector whose element type is a type variable asks its kind at run time. n-body 0.90 -> 0.76 s and spectral-norm 0.41 -> 0.35 s on Linux. - **Vector element access costs less natively.** An in-place `Vec.set` of a Float on a vector the loop owns is emitted inline instead of calling the runtime, and an inlined helper's parameter that is only read (`f(b, i, k)` binding `b`) no longer takes and gives back a count on every call. n-body went from 1.80 s to 0.90 s on Linux. - **A Float a loop carries stays raw.** A Float local that a move carries round a loop's back-edge was reboxed every iteration when its result left the loop into a boxed local; a move is now where raw and boxed meet (one load in, one box out), so the loop keeps raw doubles. spectral-norm went from 1.3 s to 0.22 s on an M-series Mac; n-body, whose cost is its boxed `Vec` elements, from 1.05 s to 0.90 s. - **A division by zero is a declared raise.** An Int `/` or `%` raises `Err.DivisionByZero` unless its divisor is a non-zero literal (`n / 2` raises nothing), on the walker and natively, so it is in the function's row and caught by name: `rescue Err.DivisionByZero(m) => …`. It used to be a runtime error no named arm could take. **Breaking:** a function that divides by a value must declare `raises Err.DivisionByZero` (or handle it), and a fork body must handle it. - **`Float.to_int` raises `Err.OutOfRange`** for a Float with no Int value (NaN, an infinity, past the Int range), declared in its type. The walker raised an undeclared `OutOfRange` and native code a runtime error. **Breaking** as above. - **A runtime error is fatal.** With arithmetic declared, what a well-typed program can fail by on its own is a raise; what is left — memory or the step limit run out, a trap, an internal failure — is taken by no arm, `rescue _` included, runs no `Switch.defer` cleanup, and ends the run (natively, a fibre that exhausts its region or traps is still retired alone). So a fork body's failure no longer resumes its switch's opener: the body cannot fail except fatally. **Breaking** for a program that caught a runtime error with `rescue _`. - **`Server.run` has no connection cap; `Server.run_capped` sets one.** `Server.run` took at most 64 connections and answered the next with `503`; it now takes every connection, as many as the process's descriptors and memory allow, and `Server.run_capped(cap, host, port, handler)` keeps the old behaviour at a cap the program chooses (0 or less is no cap). `Server.cap` is gone. **Breaking** for a program that relied on the 503. nibble's `serve-checks.py` tests a cap only when given `--limit`. - **`accept` survives running out of file descriptors.** On EMFILE, ENFILE, ENOBUFS or ENOMEM, `Net.Socket.accept` — walker and native — no longer raises at once, which made the serve loop spin on a listener that stayed readable: it waits on the clock (5 ms, doubling to 1 s), asks again until its own timeout, and says on stderr when it starts to wait. The listener stays up and open connections keep being served. - **Strings have an order.** `<`, `<=`, `>` and `>=` compare two Strings by their bytes — the order a Map's String keys already walk in — on the walker and natively (a wasm build refuses it by name for now), and a String can satisfy an `Ord` bound, so `Vec.sort(names, { a, b -> a < b })` works. Bool and the rest still have no order. The refusal's sentence now says "only Int, Float and String have an order"; `examples/types/bad-ord-string.nib` is `bad-ord-bool.nib`. - **Native functions that tail-call each other loop.** A cycle of module functions whose calls to one another are tail calls is compiled as one function with a tag, so the calls are jumps: even/odd ten million deep runs in a fraction of a second where it used to exhaust the stack. A call through a constant closure (a module function taken out of line, a capture-free lambda) is a direct call LLVM can inline, and Map keys hash and compare a word at a time. - **A large native `Map` is a hash trie.** Past 64 entries a Map was a B-tree that compared keys at every level; it is now a CHAMP hash trie — one hash and one key comparison per lookup, persistent as before (an update copies one path of a shared map, never all of it). Iteration is still in key order everywhere it shows (keys, pairs, fold, rendering, printing), so no program sees a difference but the time: k-nucleotide 11.7 → 3.6 s on macOS. The wasm build shares the change. - **Native Floats are unboxed where they stay Floats.** Within a function, a Float that only Float operations make and read lives in a register as its IEEE bits: its arithmetic, comparisons, `Float.sqrt`/`round`/`floor`/ `ceil`/`abs` and `Float.of_int` are inline machine instructions and it is never allocated or counted. It is boxed only where it meets generic code (a container, a record, a closure, an interpolation). A `Vec` element only Float operations read is loaded straight to its bits, and a Float stored into a vector its loop owns rewrites the slot's own box. mandelbrot 22.1 → 0.74 s, spectral-norm 6.05 → 1.31 s on macOS. - **Native standard output is buffered.** `print` and `println` copy into one 64 KiB buffer (shared by every core, so lines keep their order) instead of making a system call each; it goes out before anything is written to stderr, before the answer, when a core is about to wait for events (so a server's lines are not held back), and at exit. fasta 2.06 → 0.74 s and reverse-complement 1.56 → 0.32 s on macOS. - **Bare `resume` and `resume e` across calls build natively.** A raise of a tag some `try` resumes, inside a function the `try` reaches by a call (a closure, an out-of-line recursion, a lens), suspends: every frame up to the `try` saves itself, as for a wait, and the `try` — which runs its body as a closure of its own — catches it. `resume e` runs that suspended chain on with `e` as the raise's answer; a bare `resume` is a continuation value, and each application runs a copy of the chain, so one continuation can be applied more than once, as the walker's can. Five more corpus wires build (433 → 438). Two limits for now: a resumable raise may not cross a `Switch.run` boundary, and a continuation's saved frames are reclaimed when its fibre ends, not when the continuation is dropped. - **A fork copies every capture natively.** A value a forked child captures whose type gives no copy plan — a record holding a closure, a closure with captures — used to be shared with the parent's region (the static check a wasm build makes was a no-op natively), and the child's drop of it could free the parent's block into its own allocator. It is now copied whole into the child's region by its blocks' own kinds. - **`resume e` builds natively.** A `try` whose arm for a tag ends in `resume e` (after any work: `let a = @Store.read(k); resume(a)`) runs that arm where the raise is, in the `try`'s scope, and the raise answers `e` — through inlined functions, a fold's callback, or a callback parameter; an inner `try` that catches the tag still takes it first. The arm is a branch, not an unwind, so it costs about as much as the work it does. A raise the build cannot see inline (inside a closure value, or behind an out-of-line call) and the bare `resume` (a continuation as a value) still refuse. - **Printing from a closure builds natively.** `println`, `print`, `now` and `flush` are calls into the native runtime rather than parks (the host answered them at once anyway, ahead of every other fibre), so a lambda stored in a record or a lens may print, and a module function that performs may be passed as a value. - **Effector methods that wait build natively.** A method that performs an operation the host answers (a sleep, a print, a file write), or calls a method that does, keeps its claim across the wait, as the walker's does: other fibres that call the instance park until it is released, then go in the order they arrived, on one core or many; a spinning claim is never held across a park. A method that only calls into another user instance needs no wait and is a plain call. Thirteen more corpus wires build (391 → 404), each answering as the walker does. - **A method that fails gives its claim back, on the walker too.** A raise inside an effector method used to leave that method's claim held, so after a `rescue` the next call to the instance was refused as "in flight"; it is released with the failure now, on both runtimes. - **Floats build natively, and any answer prints as the walker's.** A Float is a boxed block natively: literals, `+.` `-.` `*.` `/.` and `-.x`, ordering, `==` (IEEE: `nan` is not itself), splices in the walker's shortest round-trip text (`0.30000000000000004`, `1e+24`, `-0.0`), the `Float` namespace (`round` half away from zero, `to_int`'s failure a runtime error a `rescue _` takes), and `Vec`. A native answer of any type the walker prints — a record, a sum, a List, a Vec (ten shown, then "… (n more)"), a Float — now prints the same bytes, through a descriptor of the entry's type. Eight more corpus wires build (383 → 391). - **Wired interfaces called directly, or passed as values, build natively.** `Iter.Iterable.iter()` or `Counter.next()` from pure code reaches the bound instance's method, cells included, and a wired interface named as a value (`twice(Iter.Iterable)`) is a record of closures over the instance. A native `Vec` answer prints as the walker's. Seventeen more corpus wires build (366 → 383). - **A configured effector builds natively.** An effector's `config` fields are the wire's values (`Capped { limit: 7 }`), else their declared defaults, read by name in its methods; four more corpus wires build. - **The native host answers more operations, and a renamed builtin.** File writes and appends (`Io.Fs.Write`, atomic as the walker's: staged beside the destination, given its mode, renamed over it, and allowed through the Linux sandbox only when the program writes), `Io.Print.print`, and `Env.Vars.get`; a program's own interface bound to a builtin instance (`Clock = Time.System`, `Out = Io.Stdout`, a `File = Io.Disk` read) waits on the builtin's operation. `Vec.first` and `Vec.last` compile, raise and message included; an `Err.Missing` arm may bind its message; a native `()` answer prints nothing, as `--run` does; and an uncaught raise reports its message (`IndexOutOfRange("an empty Vec has no first element")`). Twenty-one more corpus wires build (341 → 362). - **More function values build natively.** A lambda handed to a function that keeps it (`Iter.map(i, { x -> x * 2 })` stores it in the walk's closure) becomes a closure value; `v(i)` on a `Vec` and `m(k)` on a `Map` are the walker's container calls, raise and message included; and a product applied to its record (`Note(#{ … })`, bare or qualified) is the record. Eleven more corpus wires build (330 → 341), the othello demo among them. - **A switch's slot is freed natively when its last fibre leaves.** A killed or failed switch's slot used to be kept for the life of the process. - **`rescue _` builds natively**, catching any raise as the walker's catch-all does. Fixed in the walker with it: `x % 0` escaped as `Unexpected error: Division_by_zero`. - **`rescue f =>`, `Failure` and `Switch.defer` build natively.** A failure is the tag's word and the raise's payload; `Failure.tag`, `Failure.message`, `raise f` and a `match` over its tags give the walker's answers. A `Switch.run` compiles in a program with no fibres too, and its cleanups run newest first — each only if its `Switch.defer` ran — with `None`, or with `Some(failure)` before the raise goes on. A defer inside a lambda (which could register more than once) is refused by name natively. `docs/language/examples/builtins/failure.nib` and `fibres/defer.nib` now build natively and answer what the walker does. - **Native raises: several pieces, product tags, and a named report.** A raise of several pieces (`raise Over(n, "too big")`, or a source `raise Err.IndexOutOfRange(0, "…")`) carries them as one tuple, the shape a builtin raise's pair already has, and an arm binding a declared variant's pieces (`rescue Over(n, why) =>`) reads them back; a product `data` raised as a tag (`data Boom where push :: Int`) is numbered and caught like a variant. An uncaught raise in a native build names its tag (`nib: a raise nothing caught: Err.IndexOutOfRange`), not its number. Fifteen more corpus wires build (313 → 328). A native builtin raise now carries the walker's payload, message included — `(5, "index 5 is outside a Vec of 2")` from `Vec.get`, `("\"k\"", "a Map of 2 keys has no key \"k\"")` from `Map.get`, the `String.slice`, `Vec.slice` and `Bytes` sentences — so `rescue Err.IndexOutOfRange(i, msg) =>` and `rescue Err.MissingField(k, msg) =>` compile natively and bind what the walker binds. - **Fixed: a native field read through a narrower record type read the wrong slot.** A record is accepted wherever a narrower one is expected (a `data` that `includes` another, or a literal with more labels), and a native build took the field's slot from the declared type: `greet :: p: Named` given a `Person` read `age` where `name` was and crashed. Natively every record now carries its layout's id, and a field read whose value is not a literal in hand finds its slot in the program's layout table (two loads, no call). A forked child that captures a record wider than its type now traps by name instead of copying part of it. Ten more corpus wires build (303 → 313), among them `examples/rows.nib` and the site's template snippet. - **Native `==` compares by content, as the walker does.** Vectors, sums, records, tuples, lists, maps and sets compare natively through the runtime's content walk (`nibrt_eq`): sums by constructor then payload, maps by their entries whatever their shape, and a function is never equal, not even to itself. It is used where the operands' type holds no Json, Float or function and no unresolved type variable; anywhere else the build still refuses by name. To make the walk possible, a constant block's word now marks itself uncounted (bits 63..62 `01`), so every native word says whether it is an Int or a pointer. Nine more corpus wires build (290 → 299). Inside an inlined generic function (`equal :: a: 't, b: 't = a == b`) the operands' type is what the call site binds `'t` to, so generic `==` compiles too (299 → 303). - **Native builds read the type checker where their own reading gives up.** `let s = id("nib"); String.length(s)` compiles: the lowering's shape and kind of an expression fall back to the checker's inferred type whenever the expression's form does not say (a record's layout is never taken from it, since a `data` value may be a wider record at run time). Six more corpus wires build natively (284 → 290 of 498), each answering what the walker does. A native `Vec` answer now prints as `#[1, 2]`, not as an address. - **A native binary refuses the runtime flags it does not have.** `./app --journal-out x`, `--journal-in`, `--capture`, `--adopt`, `--hot` and `--inspect-journal` exit 2 naming the flag and pointing at `nibc --run`, and any other `--` option is refused too; before, the flag was read as the entry's argument and the run went ahead unrecorded. Fixed with it: a native build of an entry that never waits read `--arg n=21` as `0`; both drivers now read `--arg name=value` as `nibc --run` does. - **An arrow type may spell its effects: `((Int) -> Int ! Store raises Boom)`.** A bracketed arrow takes `! I, J`, `raises T`, or both, in a `func`'s order. A `data` field, a `var` or a parameter written that way is a ceiling on the closure it holds, and applying the value bills that row, so the code that *builds* a stored closure is no longer charged for what it will do. `nibc --fmt`, the diagnostics and the tree-sitter grammar print and parse the form. - **Fixed: a closure stored in a rowless field lost its effects.** `data Box where f :: pin (Int) -> Int`, filled with a closure that performs `Store`, passed `--check` and died at run time with no instance bound; a raising closure stored the same way escaped its `raises` row. The store is now a hand-over, billed to the body that stores — the rule a closure passed as an argument already followed — so the wire must cover it and the raise must be declared or rescued. **Breaking:** a program that stores performing or raising closures in rowless fields now needs the row (on the storing function, or on the field's arrow). - **A raise can be held as a value: `rescue f =>`.** A lowercase name in an arm catches whatever the arms above it left and binds it as a `Failure` — the raise's tag and payload, typed by the row still reaching it. A `match` opens it with the arms a `rescue` uses, checked against the row (exhaustive, no arm for a tag it cannot be, a name binds the rest); `raise f` raises it again and charges only that row; `Failure.tag`/`Failure.message` read it; a smaller row fits a larger one. Failures stay raises — this gives the one error mechanism a value form rather than adding a second. Walker only for now: a native build refuses these by name. **Breaking:** a lowercase bare name at the top of an arm binds; it was read as a tag name, which no declaration could ever be. - **`Switch.defer(sw) { outcome -> … }`: cleanup written where it is needed.** Cleanups run when the switch closes — after its body and every fibre it forked — newest first, handed `None`, or `Some(f)` with the failure that ended the switch (which then goes on). A cleanup may not raise and is charged to the `Switch.run`. A lambda parameter may now be `_` (`{ _ -> … }`). Walker only for now. Breaking: none. - **`Symbol` is renamed `Handle`.** The type, the namespace (`Handle.make`) and the print (`Handle(desc)#n`) — the name says what it is for: an identity whose state lives in an effector, as a connection's does (`HandleRefused` already said so). `Symbol` is still accepted, as the same type and namespace, through the 0.3 cycle. `Handle.make` now compiles natively. Breaking: diagnostics and printed values say `Handle`. - **`cell.remove(k)` drops one slot of a keyed cell.** The cell's form of `Map.remove`, at the granularity a claim has: a write that empties the slot, claimed by its key, so removing one entry does not touch another's. With handle keys this makes a cell a table of instances — per-request or per-session state whose scope is written in the effector, minted by the caller and removed when it is done (`docs/language/handle.md` §5a). Natively too. Breaking: none. - **nibble answers with a value.** `Dispatch.route` is a function from an `Http.Request` to an `Http.Response`; the `Serve.Exchange` seam, the `Listen.Cursor` that recorded what routes wrote, and `Probe.Forward` are gone. One cursor served every connection and was safe only while no route parked mid-request — and not at all once native cells were shared across cores. (A `per fibre` wire binding was added to rescue that design and removed the same day: request state belongs in a value, or in a cell keyed by a `Handle`, not in a wire's choice of scope.) Breaking: none. - **Native effector cells are the program's, on any number of cores.** Until now a `var` was one value per scheduler core, so under `NIB_CORES=4` a counter was four counters. A cell's slots now live in 16 stripes shared by every core, chosen by the key's hash; an effector method claims the stripes of the keys it touches before its body runs (a key is a function of the call) and gives them back when it returns, or when a raise lands in a handler, or when the host fails the fibre. One key is one operation at a time; different keys run together. 8 fibres × 2000 increments of one key on 4 cores answer 16000, the walker's answer. **Keyed cells** (`K => V`), which the native build refused, compile; a slot no write has named is the walker's refusal. nibble on 4 cores answers 32,000 keep-alive requests byte for byte as the walker does (apps-1, io_uring). Breaking: none. ## 0.2.0 — 2026-11-20 nib compiles to native code. `nibc build --target native` turns a wire into an executable through LLVM — servers included, run by a fibre host on io_uring or kqueue across `NIB_CORES` cores in a sandbox derived from the program — and nibble, a real site, builds and serves natively, answering what the walker answers byte for byte. Every effector is journalled, and an effector can be another process. - **`nibc build --target native`** (`specs/nib-native-backend`, N1). The wire's entry, lowered and counted as for wasm, is written as LLVM IR and linked by `clang` with nibc's native runtime into an executable: `OUT ARG` prints the answer. Pointers are 64-bit; Ints stay 63-bit. On the probe's ten programs the native build is faster than every wasm engine measured (the site's request handler 1.49× V8's speed; `push` at Rust's), and `test_aot` with `NIB_AOT_RC=1 NIB_AOT_NATIVE=1` runs every program it runs under wasmtime natively too, agreeing on all 386 and freeing every block. An entry that parks is a fibre program — a server built on `Server.run` is one — and the runtime's host runs its fibres over non-blocking sockets: the site serves natively, 2.6× its throughput under wasmtime, answering what the walker answers byte for byte. On Linux the host submits each `recv` and `send` to io_uring as itself (receive buffers shared from a ring); on macOS it waits with kqueue (`poll()` where neither is to be had). It holds 10,000 idle connections at 8–17 KB each. `NIB_CORES=N` runs a program's fibres on N cores (four serve the site at 3.0× one; fibres on different cores may interleave their output differently from the walker, each fibre's own order kept). A fibre that traps, overflows its stack, exhausts its region or raises past every handler is retired alone, by name; the server carries on. On Linux the server runs in a sandbox derived from what it does — a seccomp allowlist, rings restricted to the operations it uses (`NIB_SANDBOX=0` turns it off). `--check` links the runtime's check build. A park on an operation the host does not answer is refused by name (`ENativeOp`). Needs `clang` (or `NIB_CLANG`); this tree carries the runtime for aarch64 macOS and x86-64 Linux, where the same corpus agrees too. With a clang on the LLVM rustc wrote the runtime with (21, the devenv's `NIB_CLANG`), the runtime is linked into the program as bitcode before it is optimised (LTO: the site's handler 8% faster, map inserts 30%); with an older one (Apple's) it is linked as an object, and `nibc build` says which. The runtime crate's addresses are now `usize`, so its wasm objects keep their 32-bit layout. Breaking: none. - **nibble builds natively** (`specs/nib-native-nibble`). `nibc build --target native --wire Serve app/main.nib` compiles nibble whole — its page, its JSON API, its effectors — and the executable (`OUT --arg source=data/notes.json`) answers every route the walker answers, byte for byte, on 17 data files and under 64 concurrent keep-alive connections, at 35k requests a second on one core and 79k on four for the page (the walker: 621). What the native backend gained for it: `Json` (`parse`, `field`, `text`, `items`, `stringify`, with the walker's messages), list patterns, `Set` and the `Map` walks, `Json.render` of typed values, interface values, effectors with `var` cells (an effector's methods become functions resolved from the wire; a cell lives in a region of its own, one per core), `Io.File.read` (the Linux sandbox allows opening files only for a program that reads them), a String entry argument, package-scoped seams, and types the source left to inference. A `Vec.sort` comparator that raises is raised after the merge it failed in, as the walker does. A walker panic (`NotAString`) retires the connection natively instead of ending the server; a Float inside a Json document is not printed yet (`Err.Unrenderable` names it). `Switch.run`'s re-raise carried a wrong tag; the native build's is fixed. Breaking: none. - **`nibc build --target wasm32 --rc`: reference-counted heap blocks** (`specs/nib-native-alloc`). Each block keeps a count of its owners and is freed when the last one lets go. `Vec.push`, `Vec.set` and `Map.set` on a container nobody else holds update it in place. Counting applies to fibre modules (`--fibres`, `wasm32-wasip2`) too: each fibre's region keeps its own free lists. Loops that used to run out of heap now run in their live set: - a vector threaded through 1 000 000 pushes (it trapped at about 10 000) is one allocation; - `examples/site.nib`'s request handler serves 1 000 000 requests in one call at a constant 6 KiB of heap, where the plain build ran out below 100 000. Short-lived blocks cost 1.0–1.5× the bump allocator, and container loops are 2.4–3.8× native Rust (`specs/nib-native-alloc/REPORT.md`). A counted module may grow to 1 GiB. Without `--rc`, every module is byte-identical to before. Breaking: none. - **The counted runtime is Rust** (`specs/nib-native-runtime`). The nine slow paths a `--rc` module calls (allocation, release, the free that follows a list's tail in a loop, the vector push/set/truncate, the reset) are now the `no_std` crate `system/tools/nibrt` rather than hand-emitted instructions. nibc links the crate's wasm32 object into each counted module itself, so a module is still one self-contained file and no host changes. The inline fast paths are unchanged. Counted modules answer and count exactly as before; programs that lean on the runtime run 3–10% faster under Node, and the vector loops, which barely call it, run equal under wasmtime and 3–6% slower under Node (`specs/nib-native-runtime/REPORT.md`). Check mode (`NIB_AOT_RC_CHECK=1`) now also traps on a list tail whose count is already zero. The same crate builds as a C-ABI `staticlib` for aarch64-apple-darwin and x86_64-unknown-linux-gnu, for the native backend to link. Without `--rc`, every module is byte-identical to before. Breaking: none. - **Fixed: a counted fibre module could free a block twice.** In a `--rc` fibre module, a `fork` inside a forked child (a child that opens its own `Switch.run`) held every sibling's captures, not only its own. The child then dropped a String or vector it never captured, freeing the parent's block a second time. The parent also dropped a frame slot it had never written: the nested child's switch. Each fork now holds only its own child's captures, and a park with no arguments no longer counts as reading its destination. `nib-wasm-rt/nib/fibres-w5.nib` trapped under `NIB_AOT_RC_CHECK=1` and now passes. Only counted fibre modules change; every other build is byte-identical. Breaking: none. - **Counted modules: faster container loops, fewer leaks, maps in key order, large blocks reused** (`specs/nib-native-alloc/REPORT.md`, rev 4). Answers are unchanged everywhere; under Node at 10^6 iterations: - **Container loops.** A loop that threads a vector keeps its length and capacity in locals, and its `push` and `set` skip the owner test: `push` 0.79×, `vecset` 0.87×, `vecmap` 0.91× the previous build. - **Reuse tokens.** A loop that frees a record or sum and builds one of the same size next iteration hands the block across: `records` 0.54×, one allocation where it made 2 000 000. - **`Map` in key order.** Lookups are a binary search and `Map.set` inserts in place on a map nobody else holds: `mapset` 0.10×. A map literal is laid out sorted, so plain builds that use `Map` change bytes too. - **`Bytes.set` in place** on a buffer nobody else holds: decoding an 8 KiB query string takes 1.2 ms instead of 135 ms. - **Blocks larger than 6 KiB are reused** (a first-fit list in nibrt). Before, one was never reused until the region's reset, so a 7 KiB query string exhausted the served site's 512 KiB region and stopped the server; a 64 KiB one is now answered, as the walker answers it. - **Leaks fixed:** a value only a parking `try`'s handler needed was never dropped on the body's normal exit, and a String the host raises into a `rescue` was never freed before the region's reset. The served site's throughput is unchanged. Without `--rc`, only modules that use `Map` change bytes. Breaking: none. - **Faster counters and Strings built by appending** (`specs/nib-native-alloc/REPORT.md`, rev 5). A loop counter's `i + 1`, under the guard that keeps the loop going, no longer pays the 63-bit wrap (plain builds too): `push` 0.81×, `vecset` 0.83×, `vecmap` 0.86×. In counted builds, `a ++ b` appends in place to a String nobody else holds, with doubling capacity: 4,000 appends make 10 allocations instead of 4,000, and `strings` runs 0.56×. Answers are unchanged. Without `--rc`, a module with a counted loop changes bytes. Breaking: none. - **Counted maps become B-trees past 64 entries** (`specs/nib-native-alloc/REPORT.md`, rev 6). Lookups and updates of a large map are `nibrt`'s, persistent as before: 100,000 keys inserted and looked up take 16.5 ms instead of 545 (1.5× Rust's `BTreeMap`). Small maps stay flat and inline. Breaking: none. - **A fibre that runs out of its region fails alone** (wasm32-wasip2). Past the first eighth of its region a fibre is doomed; at its next park the host answers its `recv` with `Err.Closed`, so the program's own cleanup closes the connection and frees its seat, where the whole server used to stop. The served site now fails a 100 KB–1 MB POST body's connection and keeps serving. Two new status words in `nib-wasm-rt/wit/host.wit` (2: parked past the limit; 3: failed); the host must be the one in this tree. Breaking: none for programs. A host built before this change runs new modules as before (it takes status 2 for an ordinary park), except that it does not understand status 3, which only a doomed fibre reports. - **Journal revision 5: every effector is journalled.** An operation answered by a source-declared effector is now an entry of its own (`"kind":"operation"`), written when its body answers or a raise leaves it. Every entry gains `argv` (the arguments as data, not only a digest), `call`, `in` (the operation it ran inside, also across a performer fibre) and `fibre`, so a journal is a call tree a model can walk. A replay re-runs effector bodies and checks each operation's answer against its entry; an effector that answers differently stops the replay there, naming both answers. Revisions 1–4 still read and replay unchanged. Nothing new is pushed when no journal is recording or replaying. `--inspect-journal` prints the new fields; `nib-tla` reads revision 5 and hands a model `call`, `in`, `fibre`, `argv` and `vData`. - **`System.Remote`** (`use "std/system.nib"`). `Iface = System.Remote{ at: "unix:/path" }` binds an interface to a daemon in another process, and composes like any instance (`System.Remote{ … } |> Wrapper`). It conforms to whatever interface it is bound to, provided every value that interface moves is data; the checker refuses a function, an interface, a handle, a type parameter or a missing address by name. Answers are decoded against the declared types, so a program receives its own records and sums. A daemon's raise is one of the operation's declared tags; a transport failure is a runtime error naming the address and operation. In a journal a remote answer is a `"kind":"remote"` entry, and a replay serves it without connecting. - **`system/tools/nib-remote`**: a Rust crate for writing such daemons, and `nib-sqlite`, which answers `Sql.Db` (`exec`, `query`) over one SQLite file. - **`Secret`.** A credential a program can use but never print, render or have journalled. `Secret.of(label, value)`, `Secret.label(s)`, and `Secret.reveal(s)`, the one way the value comes out. A splice of one is a type error, `Json.render` refuses it, and it prints as `Secret(LABEL)`. `Env.Secrets.secret(name)` (in `std/env.nib`, answered by `Env.Process`) reads one from the environment. A journal records a secret as `{"secret":"LABEL"}`, never its value, and a replay serves it hollow (revealing it answers `«secret:LABEL»`). As a best-effort net, the journal also writes that marker wherever the exact bytes of a revealed value appear in what it records. It matches content, not origin, so an encoded or transformed value (base64, a hash, a slice) is not caught. Across `System.Remote` the daemon receives the value and the journal still records only the label. - **`phantom` type arguments.** `data Id where Id(Int)` keeps a type argument no value carries, so `Id` and `Id` are different types with one shape, and one generic function serves every tag. A phantom is compared by name and invariant, `==` asks nothing of it, and it is erased at run time. Only a sum takes one: a product is structural, so a record literal would forge any instance; a package that keeps a sum's constructor behind its wall makes the tag a guarantee. `phantom` is a word only in front of a quoted variable in a `data`'s parameter list; a function or interface that writes it, a phantom a payload uses, or another word in that place is refused by name. The unused-parameter refusal now names `phantom` as the way out. `docs/language/types.md`, "Phantom type arguments". - **Float arithmetic.** `+. -. *. /.` and a unary `-.`, as in OCaml; `+ - * / %` and `-` stay Int-only. One operator per type is what lets inference read the type off the operator, so `func mean :: a, b = (a +. b) /. 2.0` is `Float, Float -> Float` with nothing annotated. A minus written on a Float literal is part of it (`-1.5`). Division follows IEEE (`1.0 /. 0.0` is infinity), and there is no Float `%`. The wrong operator is refused with the right one named ("`+` is Int arithmetic; the Float operator is `+.`"). The `Float` namespace has `of_int`, `to_int` (truncates; faults on NaN, an infinity or past the Int range), `is_finite`, `round` (half away from zero), `floor`, `ceil`, `abs` and `sqrt`. A parallel `Vec.map` compiles a Float kernel with the new operators; a Float `Vec.fold` sum is declined and runs serially. The AOT (wasm) subset refuses Float arithmetic by name, as it does Float literals. `docs/language/types.md`, "Type variables and inference". - **A Float prints as the shortest text that reads back as it.** A `{…}` splice, `--run`'s answer and a test's printed value used OCaml's `string_of_float`: `4.`, and twelve significant digits, so `0.1 +. 0.2` showed as `0.3`. They now print as Python's `repr` does: `4.0`, `0.1`, `0.30000000000000004`, an exponent only below 1e-4 or from 1e16 (`1e-05`, `1e+16`), and `nan`, `inf`, `-inf`. `Json.render` and the journal are unchanged (`%.17g`): a journal's digests are over that text. - **`--fmt` kept brackets it was dropping.** A looser left operand lost its brackets, so `(a + b) / 2` was printed as `a + b / 2`, which is a different program. It is now printed as written. Breaking: a journal written by this version is revision 5, which 0.1.7 refuses as a newer revision. `System.Remote` is a new tool-installed instance, so the "unknown effector" message lists it. `Float` is now a builtin namespace, so a program's own `module Float` (or `namespace Float`) is refused, as one named `String` or `Bytes` already was. A Float's printed text changed (`4.` is now `4.0`), so a test or a consumer that compared `--run` output with it changes. ## 0.1.7 — 2026-11-18 A `{…}` splice bounds its operand instead of guessing it. - **`Show`.** A splice used to default an operand of unknown type to `String` the moment it was typed. 0.1.6's `match` fix made that default reach the scrutinee, so `{ o -> match o Some(n) => "got {n}" … }` fixed `o` to an `Option` and a call with `Option.Some(7)` was refused. A splice now puts a `Show` bound on the variable (`Int`, `Float`, `Bool` or `String`), checked at each use the way `Ord` is: `func greet(name) = "hi {name}"` prints `<'a includes Show> 'a -> String` and takes all four, and `greet(#[1])` is refused at the call. `Show` is also writable: `<'t includes Show>`. - **A callback may interpolate its parameter.** `Vec.map(#[1], { x -> "{x}" })` compiles; it needed the `"{x + 0}"` nudge before (a recorded wart). Breaking: none that 0.1.5 accepted. A function whose only use of a parameter is a splice now prints `<'a includes Show> 'a` where it printed `String`, and it accepts the other printable types. ## 0.1.6 — 2026-11-18 Bounds on type variables, and three soundness holes closed. - **`<'t includes …>`.** A function (`func pick<'t includes Named>`), a `data` (`data Keyed<'k includes Eq, 'v>`) or an interface (`interface Sorted<'t includes Ord>`) may bound its type variables. A bound is a product `data` or an interface (the variable is a type with at least those labels or operations, and the rest of the caller's value survives the call), or one of the builtin relations `Eq` and `Ord`. A shape bound is a ceiling on the body: reading a label the bound does not declare, or answering with a record the body built, is refused. A sum, or a name with type parameters, cannot be a bound. `docs/language/types.md`, *Bounds on type variables*. - **`<` is checked.** `<`, `<=`, `>` and `>=` ask their operands for an order: `Int` and `Float`. Ordering a `String`, a `Symbol` or a record is now a type error where it is written, or at the call that supplies the type when it goes through a type variable, instead of `Incompatible operands` at run time. - **`Map` keys and `Set` elements are `Eq`.** A key that has no equality (a function, a `pin`, a `Bytes` buffer) is refused even when it reaches the `Map` through a generic helper. Before, only a literal or a written key type was checked. - **The signature dump prints bounds**, written or inferred, after the colon: `func get : <'a includes Eq> Map<'a, 'b>, 'a -> Option.Option<'b>`. Dump version 4; one golden line moved (`MapOpt.get`). - **Soundness: a record through a generic function keeps its labels' types.** `func f(r) = let n = r.name; r` answered `{name: String, …}` for `f(#{ name: "x", tag: "s" })`, so `.tag + 1` typechecked and died at run time. The argument's extra labels now bind the parameter's row variable. - **Soundness: a `match` payload has the scrutinee's type argument.** `match Box(2) Box(x) => x ++ "!" end` typechecked (the payload was a fresh variable) and died at run time; the pattern now instantiates the sum once. - **`interface Box`** keeps its refusal and now says why: a parameter is quoted, and a capital in that list is a bound. Breaking: programs that relied on the holes above are refused — `<` on anything but `Int`/`Float` (including a String comparator handed to `Vec.sort`), a key without equality through a generic `Map`/`Set` helper, and a `match` or a generic call whose answer was used at a type it does not have. Each of these died at run time before. The signature dump gains a prefix on lines with a bounded variable. ## 0.1.5 — 2026-11-18 - **Linux binaries.** `nix-build release.nix` on x86_64-linux builds a static musl `nibc`. The check phase now takes `wasmtime` from the ordinary package set, so a static build no longer compiles Rust and LLVM from source just to run a test. The default build is unchanged apart from its store path. Breaking: none. ## 0.1.4 — 2026-11-18 - **`with` is optional when a wire binds nothing.** `wire Main where Hello.main` stops at its entry. A dangling `with` still parses, `--fmt` now writes the shorter form, and a session wire (no entry) still needs its `with`. The language docs, examples and the tree-sitter grammar use the new form; the test fixtures keep the old one, so it stays covered. - **Failed checks are named in the summary.** `test_nib` repeats each failed check's name after the run, because a check that failed while a test had stdout redirected printed its FAIL line into the redirect. - **Linux binaries.** `release.nix` builds a static musl `nibc` for `x86_64-linux`. Breaking: none. ## 0.1.3 — 2026-11-18 Downloadable binaries. - **`release.nix`.** `nix-build release.nix` writes `nib--.tar.gz` and its `.sha256`: `bin/nibc` and `std/` side by side, a README and this changelog. The binary runs the suite before it is packed, carries no store path, and prints its platform in the version line (`build macos-arm64`). On Linux it is static against musl. Archive entries are owned by 0:0, dated 1980-01-01 and sorted, and gzip records no name or time, so the archive names neither the machine nor the person that built it. - **`package.nix` takes `system` and `release`.** Both are optional, and the default build is the one nibble pins. - **std through a symlink.** nibc also looks for `std/` beside its real path, so `ln -s …/bin/nibc ~/bin/nibc` works on macOS (Linux already resolved it). - **`--run` prints nothing for a `()` answer.** A program that prints its own output no longer ends with a stray `()`. - **Tests.** The version golden reads the build field as `dev`, because the field names the artifact (store path, release label or `dev`). Breaking: `--run` of an entry that answers `()` no longer prints `()`. ## 0.1.2 — 2026-11-18 macOS: `nix-build package.nix` builds and its whole suite passes. Before this, the checked build failed on a Mac, and the install steps had to say to turn the checks off. - **nibd on macOS.** The daemon identifies its peer with `getpeereid` and `LOCAL_PEERPID` where `SO_PEERCRED` does not exist. It used to refuse every connection there. - **select backend.** A watched descriptor closed while a domain waits (a loop stopped from another domain) ends the wait instead of raising EBADF out of the domain. Linux's `select` never raised it; macOS's does. - **Package bodies are matched by exact name.** On a case-insensitive filesystem a body directory spelt `Shop/` was accepted for package `Shop` (the body is `shop/`), so the same tree loaded on a Mac and was refused on Linux. Now both refuse it. - **Tests.** The epoll runs of `test_reactor` and `test_io_backend` are enabled on Linux only; the select runs cover every platform. Breaking: none. Deployed: `/nix/store/bh00m2l7immic3dm8pd0jm6nrcgycwzx-nib-0.1.2` (`--version`: `nib 0.1.2 (diagnostics 15f24566a233, build bh00m2l7)`); on aarch64-darwin the checked build is `build 3dfvydcg`. ## 0.1.1 — 2026-11-18 The output release: what nibc prints by default, and one new inspection flag. - **CLI output.** `--run` prints the program's output and nothing else, plus a diagnostic when something is refused. `--check` (and a bare `nibc FILE`) answers one line: `FILE: ok — parsed, typed, effects and wires checked`. The stage lines (declaration count, packages, every module's signatures, the pass banners) are behind the new `--verbose` / `-v`, on stderr under `--run`. `--transcript` is unchanged. The signature dump's bytes are unchanged, but where it prints moved, so the dump version is 3. - **`--kernels`.** Prints one row per `Vec.map`/`Vec.fold` in the program's own files with the certifier's verdict: `parallel` (may run in chunks on `--parallel` lanes) or `serial` with the reason. - **Tests.** The `net_send` allocation check asks for a socket buffer large enough for its 10 000-byte write instead of assuming one. It failed on macOS, where the default buffer is 8 KiB. Breaking: tools that scraped `Type inference passed.` or the signatures from `--run`'s stderr or a bare `nibc FILE`'s stdout must add `--verbose`. Deployed: `/nix/store/8ncrv2sq6ra1zfrqpbwwmgyfbxsixi3w-nib-0.1.1` (`--version`: `nib 0.1.1 (diagnostics 15f24566a233, build 8ncrv2sq)`). The source is served at `/dl/nib-0.1.1.tar.gz` on the Nib site. ## 0.1.0 — 2026-11-18 The first named release. It promises what the suite and the nibble deployment exercise; `nibc build --target wasm32` is experimental and outside the promise. Observable changes since the untagged tree: - **Types.** A `data` name no longer answers a field it does not declare: a sum never unifies with a record type, and a declared product meets a structural projection only on declared labels. Programs that passed `--check` and died with `Field access on non-record` or `Field 'x' not found` are now refused at check time. - **Equality.** `==` through a type variable is checked at the caller: a generic `equal(a, b)` applied to values holding a function or a `pin` is refused instead of answering `false`. - **Containers.** Any comparable value is a `Map` key or `Set` element (`Bool`, `Float`, tuples, records, sums, `Vec`, `Map`, `Set`, `Json`, `Symbol`, `Fiber`), with key equality exactly `==`. Before, only `String` and `Int` worked at run time. - **Isolation.** Two fibres of one switch reaching one cell through a closure (a factory's answer, a record field, an `if`, a `pin` var) are refused with `[nib-i000]`; a closure passed in as a parameter is refused at run time when a second live fibre touches the same slot. - **Fibres.** A sleep parks its fibre instead of holding the domain. A finished fibre leaves the scheduler. On apps-1, nibble's resident memory over 20,000 requests went from 21 → 437 MB before to 11 → 15 MB in this release. A callback that parks inside `Vec.each`/`map`/ `filter`/`flat_map`/`any`/`all`/`find_index` under a fork no longer deadlocks. - **Library.** `std/server.nib` (`Server.run(host, port, handler)`: the serve loop nibble used, as a library) and `std/route.nib` (routes with `:name` and `*`, query strings, form bodies). A site is a handler plus a Caddyfile (`docs/language/server.md`, `examples/site.nib`). - **Parallel kernels, measured.** `examples/parallel-site.nib` serves a route whose work is a certified kernel: 904 ms at `--parallel=1`, 480 ms at 4, the same answer at every lane count (`docs/language/parallelism.md`). - **CLI.** `--help` lists `build`. `--version` gains a build field: `nib 0.1.0 (diagnostics 15f24566a233, build )`. Deployed: `/nix/store/wsq05b1mjp6kfndfwm6sgji0j69lkjds-nib-0.1.0` (`--version`: `nib 0.1.0 (diagnostics 15f24566a233, build wsq05b1m)`), CI run `20261118-074811-482c4508`. Breaking: the `--version` line gains `, build …` before its closing parenthesis (the `nib (diagnostics ` prefix is unchanged); programs that relied on the run-time refusals listed above are now refused at check time instead. Diagnostics digest: unchanged (`15f24566a233`).