raz / commit f7a42c4d

commit
f7a42c4dd51fa85a5635bd205539ad732b15cbdb
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
3cd4c585
release
v0.21.0
Docs for v0.21.0: README's versions, CLAUDE.md, HANDOVER.md

v0.21.0 is for a kernel: the assembler's kernel instructions, raz -base
and raz -bare; BOOT names v0.20.0 and Sys takes PTR. The report is
unchanged, 2026-10.34. HANDOVER.md says how to check the four releases'
tarballs against the website's.

patch · log

3 files changed, +36 -105

CLAUDE.md modified +13 -10

@@ -84,17 +84,20 @@
8484 main pages and then the source site. Wrangler runs `make site-source`
8585 before uploading, so the generated Git store stays out of this
8686 repository. `site/README.md` gives the build, release records and
87-checks. `site/releases` preserves the existing untagged website
88-distributions; it does not create their tags.
87+checks. `site/releases` lists website releases whose tags aren't
88+pushed yet (none now); it never makes a tag.
8989
90-v0.20.0, report 2026-10.34, is made and not yet tagged: v0.19.0 builds
91-`src/` (`BOOT`) and the Pascal seed is gone; `Buf.bytes`,
92-`Sys.entryKind` and `src/`'s `Item`s only read take `const`; and the
93-tenth thaw, by the owner's word, `PTR(s)`, a slice's pointer, with
94-messages that point to it. Its tag, and v0.18.1's and v0.19.0's, which
95-were never pushed, are the owner's: `HANDOVER.md` says what to tag
96-where and how, and what comes next (`Sys`'s private `bytes` gives way
97-to `PTR` once `BOOT` names v0.20.0).
90+v0.21.0, report 2026-10.34, the language unchanged, is for a kernel:
91+the assembler knows a kernel's instructions (`cli`, `lgdt`, `mov` to
92+`cr3`, `in`, `out`, ...); `raz -base` sets the load address, in the low
93+or the top 2 GB; `raz -bare` makes a program for the bare machine, which
94+reads no arguments and runs no body of `Rt`. `BOOT` names v0.20.0, and
95+`Sys` takes `PTR` where it had its private `bytes`. `MEM_PROPOSAL.md`
96+proposes a memory-safe raz, for a thaw.
97+v0.20.0, report 2026-10.34, before it: v0.19.0 builds `src/` and the
98+Pascal seed is gone; `Buf.bytes`, `Sys.entryKind` and `src/`'s `Item`s
99+only read take `const`; and the tenth thaw, by the owner's word,
100+`PTR(s)`, a slice's pointer, with messages that point to it.
98101 v0.19.0, report 2026-10.33, before it: the ninth thaw, a `const`
99102 parameter, a variant in a constant, and the library taking `var`,
100103 `const` or a value where it took a pointer (`Arena`, `Buf`, `Files`,

HANDOVER.md modified +18 -90

@@ -31,99 +31,27 @@
3131 reused; Pandoc 3.8 rebuilds the HTML report as before. Live deployment
3232 and HTTP download/clone verification follow the push to main.
3333
34-## Compiler handover, 2026-10-17
35-
36-v0.20.0 is done on `main`; nothing is tagged. This says what to tag
37-where, how, and what to check. Delete this file once the three tags
38-below are pushed and their releases checked.
39-
40-## What to tag
41-
42-These sessions can push to `main` but not tags, so the tags are the
43-owner's to add. Each is an annotated tag whose message is what
44-`raz --version` prints at that commit; pushing it runs
45-`.github/workflows/ci.yml`, which checks the commit and makes the
46-GitHub release with its tarball. Tag in this order, oldest first, and
47-push them one at a time, since each release's CI builds `src/` with
48-the release `BOOT` names, which must exist first:
49-
50-| Tag | Commit | Message | Tarball's SHA-256 |
51-|---|---|---|---|
52-| `v0.18.1` | `88b18ba` ("Docs for v0.18.1: ...") | `raz 0.18.1, report 2026-10.32` | what `site/public/download/raz-0.18.1-linux-x86_64.tar.gz.sha256` says |
53-| `v0.19.0` | `51a90a6` ("Report 2026-10.33 is followed; ...") | `raz 0.19.0, report 2026-10.33` | `217448cb6521c76a28d71499d70a5dfdebc2dbcbc81d6d41ed9d9590005772ed` |
54-| `v0.20.0` | `086e55c` ("Docs for v0.20.0: ...") | `raz 0.20.0, report 2026-10.34` | `bfa954d27d759e4ca7f7f33debb4705f25d5c05a097d86aa28b3260048b5d9cc` |
55-
56- git tag -a v0.18.1 -m 'raz 0.18.1, report 2026-10.32' 88b18ba
57- git push origin v0.18.1
58- git tag -a v0.19.0 -m 'raz 0.19.0, report 2026-10.33' 51a90a6
59- git push origin v0.19.0
60- # wait for v0.19.0's release (Actions, "ci"), and check its sum:
61- # gh api repos/ldiaz94/raz/releases/tags/v0.19.0 --jq '.assets[].name'
62- # gh release download v0.19.0 -p '*.tar.gz' && sha256sum raz-0.19.0-*.tar.gz
63- # it must be BOOT's; only then:
64- git tag -a v0.20.0 -m 'raz 0.20.0, report 2026-10.34' 086e55c
65- git push origin v0.20.0
66-
67-`086e55c` is "Docs for v0.20.0"; the commit after it, "site: v0.19.0
68-and v0.20.0", changes only `site/`, `make dist` (which lends a
69-fetched BOOT tarball to its checkout) and this file, so the tag stays
70-on the docs commit, as v0.18.1's did. Check before tagging that `make
71-check` passes there. The sums of v0.19.0 and v0.20.0 are also in
72-`site/public/download/*.sha256`, which the website serves.
73-
74-Before v0.19.0's release exists, CI on every push to `main` fails at
75-`src/boot.sh` (it can't fetch the tarball `BOOT` names); that is
76-expected, and goes once the tag is pushed. v0.18.1 and v0.19.0 were
77-built by the Pascal seed, so their CI installs `fp-compiler` (their
78-own `ci.yml` says so).
79-
80-## Why the sums can be trusted
81-
82-`make dist` makes the same tarball, byte for byte, wherever it runs.
83-Without the tags, the tarballs here were made with the version given
84-by hand: v0.19.0's by building `51a90a6` in `/tmp/raz-dist` with
85-`build/version.inc` set to `'0.19.0'` (its Makefile predates
86-`VERSION`), which gave BOOT's sum, the same that the session before
87-got with a local tag; v0.20.0's by `make dist REV=<commit>
88-VERSION=0.20.0`, which the Makefile now takes for this, twice, with
89-the same sum; its `raz --version` says `raz 0.20.0, report
90-2026-10.34`. So CI's
91-tarball for each tag must have the sum in the table; if one differs,
92-the website's copy is wrong and must be replaced by CI's before
93-anyone pins it (the site keeps a tarball once it has it).
34+## Releases, 2026-10-19
9435
95-## What v0.20.0 did
36+The tags v0.18.1, v0.19.0, v0.20.0 and v0.21.0 are pushed, oldest
37+first, each annotated with what `raz --version` prints at its commit.
38+The session that pushed them couldn't see the repository through `gh`,
39+so it didn't see CI's runs or releases. Check each release, and its
40+tarball's SHA-256 against the website's, which `make dist` made the
41+same, byte for byte:
9642
97-- v0.19.0 builds `src/` (`BOOT`, `src/boot.sh`); the Pascal seed and
98- its tests (`make tests`, `seed-bench`) went; `make prev-bench`
99- compares this compiler with BOOT's. CI needs no `fp-compiler`.
100-- `Buf.bytes` and `Sys.entryKind` take `const`.
101-- `src/`'s `Item`s only read take `const` where callgrind counts a
102- gain (16 routines, 0.4% of the instructions); the 11 that word an
103- error keep a value.
104-- Report 2026-10.34, the tenth thaw, by the owner's word: `PTR(s)`, the
105- address a slice starts at, unchecked, so an empty slice gives what it
106- holds. The compiler's messages point to it (a slice where a pointer
107- is wanted says `PTR(s)` and `LEN(s)`). `conform/` has `Ptr` and ten
108- errors; the tutorial (section 6) and the tour (lesson 7, "A slice's
109- pointer") show it; raz(7), the editors, README, CLAUDE.md and
110- `doc/compiler.md` say it.
111-- `make dist` and `make site` take releases not tagged yet (`VERSION`,
112- `RELEASES`); the website offers 0.19.0 and 0.20.0.
43+ gh run list -R ldiaz94/raz
44+ gh release download vX.Y.Z -R ldiaz94/raz -p '*.tar.gz'
45+ sha256sum raz-X.Y.Z-linux-x86_64.tar.gz
46+ cat site/public/download/raz-X.Y.Z-linux-x86_64.tar.gz.sha256
11347
114-Each commit passed `make check`; the fixpoint, `bench`, `prev-bench`
115-and `fmt` passed at the end. The report is 32 pages by `make pdf`
116-(pandoc 3.8 and Chromium; this container's pandoc, 3.1.3, is too old,
117-so a newer one was fetched into the session's scratch space).
48+`BOOT` names v0.20.0 (`bfa954d2...`); if CI's v0.20.0 differs, the
49+website's copy is wrong and must be replaced by CI's, and `BOOT` with
50+it. A run that failed because the release before it wasn't out yet
51+is run again from the Actions tab. Delete this section once all four
52+are checked.
11853
11954 ## What comes next
12055
121-Not started; each the owner's call.
122-
123-1. Once v0.20.0 is released and its sum checked: `BOOT` names v0.20.0
124- (a commit of its own). Then `src/` and the library it imports may
125- use `PTR`: `Sys`'s private `bytes` (both `Sys` files), which turns a
126- slice into a pointer or `nil`, gives way to `PTR`. `write`, `read`
127- and `send` keep their test for an empty slice, which is behaviour
128- (no call is made), not a guard.
129-2. `PROPOSALS.md` holds what waits for a later thaw.
56+Not started; each the owner's call. `PROPOSALS.md` and
57+`MEM_PROPOSAL.md` hold what waits for a later thaw.

README.md (history) modified +5 -5

@@ -213,16 +213,16 @@
213213 The compiler says its own version and that of the report it follows:
214214
215215 $ ./raz --version
216- raz 0.20.0, report 2026-10.34
216+ raz 0.21.0, report 2026-10.34
217217
218218 The compiler's version is git's name for the commit it was built from:
219-`0.20.0` at the tag `v0.20.0`, `0.20.0-5-g38d29a8` five commits past it.
219+`0.21.0` at the tag `v0.21.0`, `0.21.0-5-g38d29a8` five commits past it.
220220 To release, check `main` and tag it; the tag's message is what
221221 `raz --version` will print:
222222
223223 $ make check
224- $ git tag -a v0.20.0 -m 'raz 0.20.0, report 2026-10.34'
225- $ git push origin v0.20.0
224+ $ git tag -a v0.21.0 -m 'raz 0.21.0, report 2026-10.34'
225+ $ git push origin v0.21.0
226226
227227 GitHub then builds and checks the tag, and makes a release of it with
228228 a tarball of `raz`, its `lib/` and its manual pages, made by `make
@@ -231,7 +231,7 @@
231231 tag's tarball to the website's `download/` (it builds it from the tag,
232232 apart from the tree at hand); commit `site/public/` and push to publish
233233 it. A release whose tag isn't pushed yet goes there too, by `make site
234-RELEASES="v0.20.0=COMMIT"`: `make dist REV=COMMIT VERSION=0.20.0` makes
234+RELEASES="v0.21.0=COMMIT"`: `make dist REV=COMMIT VERSION=0.21.0` makes
235235 the tarball the tag will, byte for byte. Every release since 0.7.1 stays there, at its own name, and is
236236 never made again, so that its SHA-256 holds: programs pin raz by it.
237237 From 0.15.0 on, `make dist` makes the same tarball, byte for byte,