| | @@ -31,99 +31,27 @@ |
| 31 | 31 | reused; Pandoc 3.8 rebuilds the HTML report as before. Live deployment |
| 32 | 32 | and HTTP download/clone verification follow the push to main. |
| 33 | 33 | |
| 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 |
| 94 | 35 | |
| 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: |
| 96 | 42 | |
| 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 |
| 113 | 47 | |
| 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. |
| 118 | 53 | |
| 119 | 54 | ## What comes next |
| 120 | 55 | |
| 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. |