From ad336b928d31a3ad59e82d3bc77c703f51736eab Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Mon, 26 Oct 2026 18:30:21 +0000 Subject: [PATCH] Docs for v0.25.0: README's versions, CLAUDE.md, PLAN.md --- diff --git a/CLAUDE.md b/CLAUDE.md index d929417..6cea667 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -87,6 +87,19 @@ checks. `site/releases` lists website releases whose tags aren't pushed yet (none now); it never makes a tag. +v0.25.0, report 2026-10.38, the Moss work (`PLAN.md` 3), the last before +the hard freeze: a code procedure names a procedure or a global in +`call p`, `jmp p` and `lea r, [v]`; the report's least an implementation +accepts, and this compiler's errors past its own limits (a nesting of +256, 1024 values waiting); `Host`, the compiler's five asks of the +system it runs on, and `Files.argCount`; `-lib DIR`; `Rt`'s places +linked only as `Rt` declares them; `push` of a constant, `cld`, `std` +and the SHA and shuffle instructions; and in `doc/compiler.md`, a +program with its own `Rt`, the machine as the code leaves it, the +recipe for an interrupt's entry, and what `src/` asks of `lib/`. +Module lookup keeps the root, `/`. `BOOT` names v0.23.0. The tests need +no Python. + v0.24.0, report 2026-10.37 still, ends the safety thaw (`PLAN.md` 2): the old forms are errors. What `SYSTEM` fences is refused outside a module that imports it; strings, constants' slices and `MSG` are `[]const`; @@ -414,6 +427,21 @@ indexed), a constant's slice (`ofConst`), `MSG` and a slice of a `const` parameter's array are `[]const`; a constant's slice part must be declared `[]const`. +- A procedure or a global in a code procedure (report 2026-10.38, 8) + is found by `Parse.asmName`, beside `asmConst`, after the + procedure's labels, which `X64.findLabels` enters first: a label + wins wherever it is written. `call p` and `jmp p` are E8 and E9 with + a fixup, `[v]` rip-relative, as ordinary code's; `[v]` stands alone + (`[g + 8]` is an error), a label is only for a jump, and C's names + are refused, their chunk holding C's address. A variable another + module exports may be written through `lea`: its type isn't + checked. A code procedure's body has a scope of its own, so a name + not yet declared is poison there only. +- The limits (report 2026-10.38, 10): one count, `Parse.nest`, of + statements, expressions and types nested, to 256; 1024 values + waiting in one expression (`Gen.MaxStack`), past which the compile + ends; the other limits are `Parse`'s constants, listed under "This + compiler's choices". - `ROL(x, n)` and `ROR(x, n)` (report 2026-10.35) are done at `x`'s own width, `rol al, cl` for a `U8`, with no mask of the count: x86 takes it modulo 32 or 64, and a byte's or a word's rotation goes diff --git a/PLAN.md b/PLAN.md index 08e6649..b05a7c1 100644 --- a/PLAN.md +++ b/PLAN.md @@ -127,7 +127,7 @@ 4. "A freestanding program, stated", "The assembler's instructions" and "Implementation limits, and a compiler for a small stack" (the report's least and the errors only), in the appendix. -5. Release. +5. Release. Done 2026-10-26: v0.25.0, report 2026-10.38. ## 4. The hard freeze diff --git a/README.md b/README.md index 0291db5..1f02b24 100644 --- a/README.md +++ b/README.md @@ -255,16 +255,16 @@ The compiler says its own version and that of the report it follows: $ ./raz --version - raz 0.24.0, report 2026-10.37 + raz 0.25.0, report 2026-10.38 The compiler's version is git's name for the commit it was built from: -`0.24.0` at the tag `v0.24.0`, `0.24.0-5-g38d29a8` five commits past it. +`0.25.0` at the tag `v0.25.0`, `0.25.0-5-g38d29a8` five commits past it. To release, check `main` and tag it; the tag's message is what `raz --version` will print: $ make check - $ git tag -a v0.24.0 -m 'raz 0.24.0, report 2026-10.37' - $ git push origin v0.24.0 + $ git tag -a v0.25.0 -m 'raz 0.25.0, report 2026-10.38' + $ git push origin v0.25.0 GitHub then builds and checks the tag, and makes a release of it with a tarball of `raz`, its `lib/` and its manual pages, made by `make @@ -273,7 +273,7 @@ tag's tarball to the website's `download/` (it builds it from the tag, apart from the tree at hand); commit `site/public/` and push to publish it. A release whose tag isn't pushed yet goes there too, by `make site -RELEASES="v0.24.0=COMMIT"`: `make dist REV=COMMIT VERSION=0.24.0` makes +RELEASES="v0.25.0=COMMIT"`: `make dist REV=COMMIT VERSION=0.25.0` makes the tarball the tag will, byte for byte. Every release since 0.7.1 stays there, at its own name, and is never made again, so that its SHA-256 holds: programs pin raz by it. From 0.15.0 on, `make dist` makes the same tarball, byte for byte, @@ -307,8 +307,8 @@ change that must break programs keeps the old form for one minor version beside the new; the release notes list the old forms, and the next version removes them. Thaws, by the owner's word, changed it since; -the last, for safety, was v0.24.0. After the Moss work (v0.25.0) it is -frozen hard: no more thaws, the language mended only where it does +the last, for safety, was v0.24.0, and v0.25.0 the last change. It is +now frozen hard: no more thaws, the language mended only where it does other than the report says. ## Not here