raz / commit ad336b92

commit
ad336b928d31a3ad59e82d3bc77c703f51736eab
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
59aa1588
release
v0.25.0
Docs for v0.25.0: README's versions, CLAUDE.md, PLAN.md

patch · log

3 files changed, +36 -8

CLAUDE.md modified +28 -0

@@ -87,6 +87,19 @@
8787 checks. `site/releases` lists website releases whose tags aren't
8888 pushed yet (none now); it never makes a tag.
8989
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+
90103 v0.24.0, report 2026-10.37 still, ends the safety thaw (`PLAN.md` 2): the
91104 old forms are errors. What `SYSTEM` fences is refused outside a module
92105 that imports it; strings, constants' slices and `MSG` are `[]const`;
@@ -414,6 +427,21 @@
414427 indexed), a constant's slice (`ofConst`), `MSG` and a slice of a
415428 `const` parameter's array are `[]const`; a constant's slice part must
416429 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".
417445 - `ROL(x, n)` and `ROR(x, n)` (report 2026-10.35) are done at `x`'s
418446 own width, `rol al, cl` for a `U8`, with no mask of the count: x86
419447 takes it modulo 32 or 64, and a byte's or a word's rotation goes

PLAN.md (history) modified +1 -1

@@ -127,7 +127,7 @@
127127 4. "A freestanding program, stated", "The assembler's instructions" and
128128 "Implementation limits, and a compiler for a small stack" (the
129129 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.
131131
132132 ## 4. The hard freeze
133133

README.md (history) modified +7 -7

@@ -255,16 +255,16 @@
255255 The compiler says its own version and that of the report it follows:
256256
257257 $ ./raz --version
258- raz 0.24.0, report 2026-10.37
258+ raz 0.25.0, report 2026-10.38
259259
260260 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.
262262 To release, check `main` and tag it; the tag's message is what
263263 `raz --version` will print:
264264
265265 $ 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
268268
269269 GitHub then builds and checks the tag, and makes a release of it with
270270 a tarball of `raz`, its `lib/` and its manual pages, made by `make
@@ -273,7 +273,7 @@
273273 tag's tarball to the website's `download/` (it builds it from the tag,
274274 apart from the tree at hand); commit `site/public/` and push to publish
275275 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
277277 the tarball the tag will, byte for byte. Every release since 0.7.1 stays there, at its own name, and is
278278 never made again, so that its SHA-256 holds: programs pin raz by it.
279279 From 0.15.0 on, `make dist` makes the same tarball, byte for byte,
@@ -307,8 +307,8 @@
307307 change that must break programs keeps the old form for one minor version
308308 beside the new; the release notes list the old forms, and the next
309309 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
312312 other than the report says.
313313
314314 ## Not here