raz / commit 6d5471f9

commit
6d5471f970000c8914a19b9386ae605e880199a2
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
b056b617
release
v0.11.0
Docs for v0.11.0: report 2026-10.22, the two volumes, status 2 for stops

patch · log

4 files changed, +21 -19

CLAUDE.md modified +15 -13

@@ -1,8 +1,9 @@
11 # Working on raz
22
33 Read `PLAN.md` (the milestone under way and its steps), `doc/raz.md`
4-(the language report) and `doc/compiler.md` (the guide to the
5-compiler) first. The report defines the language; where the plan
4+(the language report, volume 1) and `doc/compiler.md` (the guide to the
5+compiler) first; `doc/raz-lib.md` is volume 2, the library, and
6+`doc/report-history.md` what each version of the report changed. The report defines the language; where the plan
67 disagrees, the report wins and the plan is fixed.
78
89 ## Setup and checks
@@ -108,7 +109,8 @@
108109 defect, and the library grows only by what breaks no program written
109110 for it. A wish for more, the owner's or yours, goes on the list in
110111 `PLAN.md`, for a later thaw; it isn't built. v0.6.0 was such a thaw,
111-by the owner's word: report 2026-10.12; the compiler follows 2026-10.21, whose `match` on an enumeration takes
112+by the owner's word: report 2026-10.12; the compiler follows 2026-10.22, an audit of the report (mends, trims,
113+two volumes, status 2 for every stop), and 2026-10.21, whose `match` on an enumeration takes
112114 several names to an arm (10.21), and 2026-10.20, whose `try` returns an error that isn't
113115 nil from the procedure it stands in (10.20, the owner's word), and 2026-10.19,
114116 whose `Sys` writes without waiting, for rat's pastes (10.13), and
@@ -130,7 +132,7 @@
130132 `.github/workflows/ci.yml`, which checks it and makes the GitHub
131133 release with a tarball of `raz` and `lib/`; it also checks every push
132134 to `main`. `README.md`'s "Versions" gives the commands. v0.3.0 is
133-the first; v0.10.1, report 2026-10.21, the latest: the compiler in raz,
135+the first; v0.11.0, report 2026-10.22, the latest: the compiler in raz,
134136 built by itself, and 1.4 times the Pascal one's time (v0.9.1 was the last
135137 built by the Pascal seed). The tarball has `tools/`, which the website
136138 offers from 0.7.1 on.
@@ -187,28 +189,28 @@
187189 - Past an extern's parameters, a string goes as a C string and an
188190 integer constant as an `INT`.
189191 - A real constant is held as an F64; one typed `F32` holds a value an
190- F32 can hold. An `F32` in a register is its low 32 bits; the upper
192+ F32 can hold (the report says so, 2). An `F32` in a register is its low 32 bits; the upper
191193 ones are left as they fall.
192194 - `Heap` and `Out` lock with `Lock`, a spinlock that yields, since they
193195 serve C's threads and `Thread`'s alike; `Thread.Mutex` is a futex.
194196 - A failed check says what failed and with what values, at the place
195197 of the offending expression. A signal is told at the place of the
196198 statement it stopped in, or of the procedure for a stack overflow in
197- its prologue. The handlers run on a stack of their own: `Rt`'s for
199+ its prologue, and the program ends by `Rt.exit(2)`, after its
200+ `atExit` procedures, as a failed check does (report 2026-10.22; a
201+ fault inside `Out`'s or `Heap`'s lock would hang there). The handlers run on a stack of their own: `Rt`'s for
198202 the main thread, and one in each `Thread` thread's mapping. C's
199- threads have none, so a stack overflow in one ends the program by
200- the signal with no message.
203+ threads have none, so a stack overflow in one still ends the program
204+ by the signal with no message.
201205 - The smallest value of a signed type divided by -1 stops the program
202206 (SIGFPE), as 6.1 says, `mod` as `div`; for a type narrower than 64
203207 bits the code makes the division fault, as the machine wouldn't. In
204208 a constant it is an error, as dividing by zero is.
205209 - `INT` widens to `I64` (and `UINT` to `U64`) wherever a value is
206210 assigned, passed or returned, `return a, b` included; not in `a, b :=
207- f(x)`, `return f(x)`, a `for` or `INC`/`DEC`. An untyped constant
208- converts to a pointer, as an `INT`.
209-- Another module's exported variable, or a field or array element of
210- it, is read-only: an `extern` one too. A slice in it may be sliced,
211- since that can't change the variable; an array in it may not.
211+ f(x)`, `return f(x)`, a `for` or `INC`/`DEC` (in the report, 5.10).
212+- An `extern` module variable is read-only for an importer, as the
213+ report says of every exported variable (3).
212214 - Warnings come only for a module with no errors. A procedure naming
213215 itself doesn't use it; a type named by a pointer in its own
214216 declaration does. An enumeration's names are never warned of, nor a

PLAN.md (history) modified +1 -1

@@ -5,7 +5,7 @@
55 stopping for the owner's review. A finished milestone is cut from this
66 file: git keeps the history, and the report's history, `doc/report-history.md`, the language's.
77
8-v0.9.1, the latest release, is tagged by the owner's word. All before
8+v0.11.0, report 2026-10.22 (the audit of `doc/proposal-10.22.md`), is the latest release; v0.9.1 was the last built by the seed. All before
99 v0.7.1 is approved by the owner; v0.7.1, v0.8.0, v0.9.0 and v0.9.1 wait
1010 for the owner's review. One milestone is under way: Self.
1111

README.md (history) modified +4 -4

@@ -197,16 +197,16 @@
197197 The compiler says its own version and that of the report it follows:
198198
199199 $ ./raz --version
200- raz 0.10.1, report 2026-10.21
200+ raz 0.11.0, report 2026-10.22
201201
202202 The compiler's version is git's name for the commit it was built from:
203-`0.10.1` at the tag `v0.10.1`, `0.10.1-5-g38d29a8` five commits past it.
203+`0.11.0` at the tag `v0.11.0`, `0.11.0-5-g38d29a8` five commits past it.
204204 To release, check `main` and tag it; the tag's message is what
205205 `raz --version` will print:
206206
207207 $ make check
208- $ git tag -a v0.10.1 -m 'raz 0.10.1, report 2026-10.21'
209- $ git push origin v0.10.1
208+ $ git tag -a v0.11.0 -m 'raz 0.11.0, report 2026-10.22'
209+ $ git push origin v0.11.0
210210
211211 GitHub then builds and checks the tag, and makes a release of it with
212212 a tarball of `raz`, its `lib/` and its manual pages, made by `make

doc/compiler.md (history) modified +1 -1

@@ -20,7 +20,7 @@
2020 | `src/X64.raz` | 1,493 | 1,238 | The instruction encoder, jumps within a procedure, the assembler |
2121 | `src/Gen.raz` | 2,471 | 1,778 | The stack machine, for x86-64: values, operations, checks, calls, frames |
2222 | `src/Item.raz` | 1,763 | 1,458 | Items: types, constants, variables, operators, conversions, calls |
23-| `src/Parse.raz` | 3,842 | 3,353 | Declarations, statements, expressions, built-ins, recovery, warnings |
23+| `src/Parse.raz` | 3,846 | 3,355 | Declarations, statements, expressions, built-ins, recovery, warnings |
2424 | `src/Link.raz` | 380 | 298 | Tree shaking, layout, patching, the places |
2525 | `src/Elf.raz` | 431 | 344 | Static and dynamic ELF, symbol table, line numbers |
2626 | `src/Raz.raz` | 273 | 214 | The command line |