Docs for v0.18.1: README's versions, CLAUDE.md, the tutorial's Thread README's Thread is with C or without, as it has been since v0.7; the report's two volumes are about 2,800 lines. The tutorial says the same of Thread, and of Thread.signal.
| @@ -80,10 +80,14 @@ | ||
| 80 | 80 | |
| 81 | 81 | ## Where things stand |
| 82 | 82 | |
| 83 | -v0.18.0, report 2026-10.32, is the latest release: the eighth thaw (a | |
| 83 | +v0.18.1, report 2026-10.32, is the latest release: v0.18.0's thaw (a | |
| 84 | 84 | constant typed `[]T` may be `[]`, the empty slice, as may a constant's |
| 85 | -slice part), with `Vec.pop` and `Sys.Info.links`; and a constant's | |
| 86 | -slice part may name another module's array constant, a defect mended. | |
| 85 | +slice part), with `Vec.pop` and `Sys.Info.links`, and a constant's | |
| 86 | +slice part naming another module's array constant, a defect mended; | |
| 87 | +and library growth that breaks no program: `Buf.cut`, `Out.lines`, | |
| 88 | +`Thread.signal`, and in `Opt` `spelt` and `refuse`, a `-h` of a | |
| 89 | +scope's own, a value that may be left out (`[name]`) and `number` with | |
| 90 | +no top. | |
| 87 | 91 | v0.17.0's thaw before it: `INT` at least 16 bits, and `U8`, `I8` and |
| 88 | 92 | `I16` widening to it; an enumeration's name written with its type, and |
| 89 | 93 | shared; `continue`; `[]` as the empty slice; `Width`. `src/` is the |
| @@ -161,12 +161,12 @@ | ||
| 161 | 161 | - `extern` procedures and variables from C; code procedures written in |
| 162 | 162 | the target's assembly language; `SYSCALL`. |
| 163 | 163 | |
| 164 | -The report, `doc/raz.md` and `doc/raz-lib.md`, says all of it in about 2,300 lines. | |
| 164 | +The report, `doc/raz.md` and `doc/raz-lib.md`, says all of it in about 2,800 lines. | |
| 165 | 165 | |
| 166 | 166 | ## The library |
| 167 | 167 | |
| 168 | 168 | `Rt` (ending the program, failed checks, signals), `Sys` (system calls), `Out` |
| 169 | -(buffered output), `C`, `Lock`, `Thread` (threads without C), `Mem`, | |
| 169 | +(buffered output), `C`, `Lock`, `Thread` (threads, with C or without), `Mem`, | |
| 170 | 170 | `Heap`, `Arena`, `Str`, `Bytes`, `Buf`, `Fmt`, `Math`, `Files`, `Opt` (a command |
| 171 | 171 | line read through one table), `Width` (the columns of a terminal text takes), `List(T)`, `Map(K, V; hash, eq)`, |
| 172 | 172 | `Vec(T)` (a growable array) and `Sort(T; less)`. Volume 2 of the report, `doc/raz-lib.md`, gives each one's interface, |
| @@ -201,16 +201,16 @@ | ||
| 201 | 201 | The compiler says its own version and that of the report it follows: |
| 202 | 202 | |
| 203 | 203 | $ ./raz --version |
| 204 | - raz 0.18.0, report 2026-10.32 | |
| 204 | + raz 0.18.1, report 2026-10.32 | |
| 205 | 205 | |
| 206 | 206 | The compiler's version is git's name for the commit it was built from: |
| 207 | -`0.18.0` at the tag `v0.18.0`, `0.18.0-5-g38d29a8` five commits past it. | |
| 207 | +`0.18.1` at the tag `v0.18.1`, `0.18.1-5-g38d29a8` five commits past it. | |
| 208 | 208 | To release, check `main` and tag it; the tag's message is what |
| 209 | 209 | `raz --version` will print: |
| 210 | 210 | |
| 211 | 211 | $ make check |
| 212 | - $ git tag -a v0.18.0 -m 'raz 0.18.0, report 2026-10.32' | |
| 213 | - $ git push origin v0.18.0 | |
| 212 | + $ git tag -a v0.18.1 -m 'raz 0.18.1, report 2026-10.32' | |
| 213 | + $ git push origin v0.18.1 | |
| 214 | 214 | |
| 215 | 215 | GitHub then builds and checks the tag, and makes a release of it with |
| 216 | 216 | a tarball of `raz`, its `lib/` and its manual pages, made by `make |
| @@ -1232,10 +1232,14 @@ | ||
| 1232 | 1232 | lock themselves. |
| 1233 | 1233 | .Pp |
| 1234 | 1234 | .Cm Thread |
| 1235 | -makes its own threads, without C, so a program that uses it can't use | |
| 1236 | -C; one that does makes its threads with C's | |
| 1235 | +makes its own threads, without C, in a program that doesn't use C; in | |
| 1236 | +one that does, it makes them with C's | |
| 1237 | 1237 | .Xr pthread_create 3 |
| 1238 | -instead. | |
| 1238 | +instead, and the program is the same. | |
| 1239 | +.Cm Thread.signal | |
| 1240 | +sends a signal to one thread alone, so that, with | |
| 1241 | +.Cm Sys.handle , | |
| 1242 | +another thread can break into a read it waits in. | |
| 1239 | 1243 | .Sh 16. FROM PASCAL AND C TO RAZ |
| 1240 | 1244 | .Bl -column "for (i=0; i<n; i++)" "for i := 0 to n-1 do" "Mem.free(Heap.heap, ^U8(p))" |
| 1241 | 1245 | .It Sy C Ta Sy Pascal Ta Sy raz |