raz / commit 88b18ba6

commit
88b18ba640f341da2f4d7c6a6941b2e13cb29190
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
716e2b8e
release
v0.18.1
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.

patch · log

3 files changed, +20 -12

CLAUDE.md modified +7 -3

@@ -80,10 +80,14 @@
8080
8181 ## Where things stand
8282
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
8484 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.
8791 v0.17.0's thaw before it: `INT` at least 16 bits, and `U8`, `I8` and
8892 `I16` widening to it; an enumeration's name written with its type, and
8993 shared; `continue`; `[]` as the empty slice; `Width`. `src/` is the

README.md (history) modified +6 -6

@@ -161,12 +161,12 @@
161161 - `extern` procedures and variables from C; code procedures written in
162162 the target's assembly language; `SYSCALL`.
163163
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.
165165
166166 ## The library
167167
168168 `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`,
170170 `Heap`, `Arena`, `Str`, `Bytes`, `Buf`, `Fmt`, `Math`, `Files`, `Opt` (a command
171171 line read through one table), `Width` (the columns of a terminal text takes), `List(T)`, `Map(K, V; hash, eq)`,
172172 `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 @@
201201 The compiler says its own version and that of the report it follows:
202202
203203 $ ./raz --version
204- raz 0.18.0, report 2026-10.32
204+ raz 0.18.1, report 2026-10.32
205205
206206 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.
208208 To release, check `main` and tag it; the tag's message is what
209209 `raz --version` will print:
210210
211211 $ 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
214214
215215 GitHub then builds and checks the tag, and makes a release of it with
216216 a tarball of `raz`, its `lib/` and its manual pages, made by `make

doc/raz-tutorial.7 (history) modified +7 -3

@@ -1232,10 +1232,14 @@
12321232 lock themselves.
12331233 .Pp
12341234 .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
12371237 .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.
12391243 .Sh 16. FROM PASCAL AND C TO RAZ
12401244 .Bl -column "for (i=0; i<n; i++)" "for i := 0 to n-1 do" "Mem.free(Heap.heap, ^U8(p))"
12411245 .It Sy C Ta Sy Pascal Ta Sy raz