Docs for v0.25.0: README's versions, CLAUDE.md, PLAN.md
| @@ -87,6 +87,19 @@ | ||
| 87 | 87 | checks. `site/releases` lists website releases whose tags aren't |
| 88 | 88 | pushed yet (none now); it never makes a tag. |
| 89 | 89 | |
| 90 | +v0.25.0, report 2026-10.38, the Moss work (`PLAN.md` 3), the last before | |
| 91 | +the hard freeze: a code procedure names a procedure or a global in | |
| 92 | +`call p`, `jmp p` and `lea r, [v]`; the report's least an implementation | |
| 93 | +accepts, and this compiler's errors past its own limits (a nesting of | |
| 94 | +256, 1024 values waiting); `Host`, the compiler's five asks of the | |
| 95 | +system it runs on, and `Files.argCount`; `-lib DIR`; `Rt`'s places | |
| 96 | +linked only as `Rt` declares them; `push` of a constant, `cld`, `std` | |
| 97 | +and the SHA and shuffle instructions; and in `doc/compiler.md`, a | |
| 98 | +program with its own `Rt`, the machine as the code leaves it, the | |
| 99 | +recipe for an interrupt's entry, and what `src/` asks of `lib/`. | |
| 100 | +Module lookup keeps the root, `/`. `BOOT` names v0.23.0. The tests need | |
| 101 | +no Python. | |
| 102 | + | |
| 90 | 103 | v0.24.0, report 2026-10.37 still, ends the safety thaw (`PLAN.md` 2): the |
| 91 | 104 | old forms are errors. What `SYSTEM` fences is refused outside a module |
| 92 | 105 | that imports it; strings, constants' slices and `MSG` are `[]const`; |
| @@ -414,6 +427,21 @@ | ||
| 414 | 427 | indexed), a constant's slice (`ofConst`), `MSG` and a slice of a |
| 415 | 428 | `const` parameter's array are `[]const`; a constant's slice part must |
| 416 | 429 | be declared `[]const`. |
| 430 | +- A procedure or a global in a code procedure (report 2026-10.38, 8) | |
| 431 | + is found by `Parse.asmName`, beside `asmConst`, after the | |
| 432 | + procedure's labels, which `X64.findLabels` enters first: a label | |
| 433 | + wins wherever it is written. `call p` and `jmp p` are E8 and E9 with | |
| 434 | + a fixup, `[v]` rip-relative, as ordinary code's; `[v]` stands alone | |
| 435 | + (`[g + 8]` is an error), a label is only for a jump, and C's names | |
| 436 | + are refused, their chunk holding C's address. A variable another | |
| 437 | + module exports may be written through `lea`: its type isn't | |
| 438 | + checked. A code procedure's body has a scope of its own, so a name | |
| 439 | + not yet declared is poison there only. | |
| 440 | +- The limits (report 2026-10.38, 10): one count, `Parse.nest`, of | |
| 441 | + statements, expressions and types nested, to 256; 1024 values | |
| 442 | + waiting in one expression (`Gen.MaxStack`), past which the compile | |
| 443 | + ends; the other limits are `Parse`'s constants, listed under "This | |
| 444 | + compiler's choices". | |
| 417 | 445 | - `ROL(x, n)` and `ROR(x, n)` (report 2026-10.35) are done at `x`'s |
| 418 | 446 | own width, `rol al, cl` for a `U8`, with no mask of the count: x86 |
| 419 | 447 | takes it modulo 32 or 64, and a byte's or a word's rotation goes |
| @@ -127,7 +127,7 @@ | ||
| 127 | 127 | 4. "A freestanding program, stated", "The assembler's instructions" and |
| 128 | 128 | "Implementation limits, and a compiler for a small stack" (the |
| 129 | 129 | report's least and the errors only), in the appendix. |
| 130 | -5. Release. | |
| 130 | +5. Release. Done 2026-10-26: v0.25.0, report 2026-10.38. | |
| 131 | 131 | |
| 132 | 132 | ## 4. The hard freeze |
| 133 | 133 |
| @@ -255,16 +255,16 @@ | ||
| 255 | 255 | The compiler says its own version and that of the report it follows: |
| 256 | 256 | |
| 257 | 257 | $ ./raz --version |
| 258 | - raz 0.24.0, report 2026-10.37 | |
| 258 | + raz 0.25.0, report 2026-10.38 | |
| 259 | 259 | |
| 260 | 260 | The compiler's version is git's name for the commit it was built from: |
| 261 | -`0.24.0` at the tag `v0.24.0`, `0.24.0-5-g38d29a8` five commits past it. | |
| 261 | +`0.25.0` at the tag `v0.25.0`, `0.25.0-5-g38d29a8` five commits past it. | |
| 262 | 262 | To release, check `main` and tag it; the tag's message is what |
| 263 | 263 | `raz --version` will print: |
| 264 | 264 | |
| 265 | 265 | $ make check |
| 266 | - $ git tag -a v0.24.0 -m 'raz 0.24.0, report 2026-10.37' | |
| 267 | - $ git push origin v0.24.0 | |
| 266 | + $ git tag -a v0.25.0 -m 'raz 0.25.0, report 2026-10.38' | |
| 267 | + $ git push origin v0.25.0 | |
| 268 | 268 | |
| 269 | 269 | GitHub then builds and checks the tag, and makes a release of it with |
| 270 | 270 | a tarball of `raz`, its `lib/` and its manual pages, made by `make |
| @@ -273,7 +273,7 @@ | ||
| 273 | 273 | tag's tarball to the website's `download/` (it builds it from the tag, |
| 274 | 274 | apart from the tree at hand); commit `site/public/` and push to publish |
| 275 | 275 | it. A release whose tag isn't pushed yet goes there too, by `make site |
| 276 | -RELEASES="v0.24.0=COMMIT"`: `make dist REV=COMMIT VERSION=0.24.0` makes | |
| 276 | +RELEASES="v0.25.0=COMMIT"`: `make dist REV=COMMIT VERSION=0.25.0` makes | |
| 277 | 277 | the tarball the tag will, byte for byte. Every release since 0.7.1 stays there, at its own name, and is |
| 278 | 278 | never made again, so that its SHA-256 holds: programs pin raz by it. |
| 279 | 279 | From 0.15.0 on, `make dist` makes the same tarball, byte for byte, |
| @@ -307,8 +307,8 @@ | ||
| 307 | 307 | change that must break programs keeps the old form for one minor version |
| 308 | 308 | beside the new; the release notes list the old forms, and the next |
| 309 | 309 | version removes them. Thaws, by the owner's word, changed it since; |
| 310 | -the last, for safety, was v0.24.0. After the Moss work (v0.25.0) it is | |
| 311 | -frozen hard: no more thaws, the language mended only where it does | |
| 310 | +the last, for safety, was v0.24.0, and v0.25.0 the last change. It is | |
| 311 | +now frozen hard: no more thaws, the language mended only where it does | |
| 312 | 312 | other than the report says. |
| 313 | 313 | |
| 314 | 314 | ## Not here |