From 88b18ba640f341da2f4d7c6a6941b2e13cb29190 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Fri, 16 Oct 2026 20:24:46 +0000 Subject: [PATCH] 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. --- diff --git a/CLAUDE.md b/CLAUDE.md index e099f78..2d59cba 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -80,10 +80,14 @@ ## Where things stand -v0.18.0, report 2026-10.32, is the latest release: the eighth thaw (a +v0.18.1, report 2026-10.32, is the latest release: v0.18.0's thaw (a constant typed `[]T` may be `[]`, the empty slice, as may a constant's -slice part), with `Vec.pop` and `Sys.Info.links`; and a constant's -slice part may name another module's array constant, a defect mended. +slice part), with `Vec.pop` and `Sys.Info.links`, and a constant's +slice part naming another module's array constant, a defect mended; +and library growth that breaks no program: `Buf.cut`, `Out.lines`, +`Thread.signal`, and in `Opt` `spelt` and `refuse`, a `-h` of a +scope's own, a value that may be left out (`[name]`) and `number` with +no top. v0.17.0's thaw before it: `INT` at least 16 bits, and `U8`, `I8` and `I16` widening to it; an enumeration's name written with its type, and shared; `continue`; `[]` as the empty slice; `Width`. `src/` is the diff --git a/README.md b/README.md index a48de27..5ececbe 100644 --- a/README.md +++ b/README.md @@ -161,12 +161,12 @@ - `extern` procedures and variables from C; code procedures written in the target's assembly language; `SYSCALL`. -The report, `doc/raz.md` and `doc/raz-lib.md`, says all of it in about 2,300 lines. +The report, `doc/raz.md` and `doc/raz-lib.md`, says all of it in about 2,800 lines. ## The library `Rt` (ending the program, failed checks, signals), `Sys` (system calls), `Out` -(buffered output), `C`, `Lock`, `Thread` (threads without C), `Mem`, +(buffered output), `C`, `Lock`, `Thread` (threads, with C or without), `Mem`, `Heap`, `Arena`, `Str`, `Bytes`, `Buf`, `Fmt`, `Math`, `Files`, `Opt` (a command line read through one table), `Width` (the columns of a terminal text takes), `List(T)`, `Map(K, V; hash, eq)`, `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 @@ The compiler says its own version and that of the report it follows: $ ./raz --version - raz 0.18.0, report 2026-10.32 + raz 0.18.1, report 2026-10.32 The compiler's version is git's name for the commit it was built from: -`0.18.0` at the tag `v0.18.0`, `0.18.0-5-g38d29a8` five commits past it. +`0.18.1` at the tag `v0.18.1`, `0.18.1-5-g38d29a8` five commits past it. To release, check `main` and tag it; the tag's message is what `raz --version` will print: $ make check - $ git tag -a v0.18.0 -m 'raz 0.18.0, report 2026-10.32' - $ git push origin v0.18.0 + $ git tag -a v0.18.1 -m 'raz 0.18.1, report 2026-10.32' + $ git push origin v0.18.1 GitHub then builds and checks the tag, and makes a release of it with a tarball of `raz`, its `lib/` and its manual pages, made by `make diff --git a/doc/raz-tutorial.7 b/doc/raz-tutorial.7 index 24325f3..4fcd1cb 100644 --- a/doc/raz-tutorial.7 +++ b/doc/raz-tutorial.7 @@ -1232,10 +1232,14 @@ lock themselves. .Pp .Cm Thread -makes its own threads, without C, so a program that uses it can't use -C; one that does makes its threads with C's +makes its own threads, without C, in a program that doesn't use C; in +one that does, it makes them with C's .Xr pthread_create 3 -instead. +instead, and the program is the same. +.Cm Thread.signal +sends a signal to one thread alone, so that, with +.Cm Sys.handle , +another thread can break into a read it waits in. .Sh 16. FROM PASCAL AND C TO RAZ .Bl -column "for (i=0; i