From 1c2dc5cd800575179dfe083b06ed1aaee66ea317 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Sun, 11 Oct 2026 17:12:13 +0100 Subject: [PATCH] The freeze: report 2026-10.9, and the language frozen The report's opening and CLAUDE.md say it: the language changes only to mend a defect, the library grows only by what breaks no program, wishes wait on a list in PLAN.md for a later thaw, seeded with three met in this milestone. The compiler follows 2026-10.9; README's versions are 0.5.0's. Step 7, the four outside repos, is still open. Co-Authored-By: Claude Opus 5.5 (1M context) --- diff --git a/CLAUDE.md b/CLAUDE.md index 4a64dbe..8b77711 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -70,9 +70,13 @@ for rlX11 and rat (reports 2026-10.4 and 10.7, steps 49a-c), with `Info`'s `file` and `symlink` for rloc (2026-10.6, step 49d), and stage 9, several results in place of var parameters (2026-10.8, -steps 52-53). The compiler says it follows report 2026-10.8, the last -version all done. -v0.5.0 is under way (`PLAN.md`). Keep +steps 52-53), and v0.5.0, the library of report 2026-10.9, which the +compiler says it follows. + +**The freeze.** Since v0.5.0 the language changes only to mend a +defect, and the library grows only by what breaks no program written +for it. A wish for more, the owner's or yours, goes on the list in +`PLAN.md`, for a later thaw; it isn't built. Keep `doc/compiler.md`'s table of lines and its routine names true when the compiler changes. @@ -83,7 +87,7 @@ `.github/workflows/ci.yml`, which checks it and makes the GitHub release with a tarball of `raz` and `lib/`; it also checks every push to `main`. `README.md`'s "Versions" gives the commands. v0.3.0 is -the first; v0.4.0, report 2026-10.8, the latest. +the first; v0.5.0, report 2026-10.9, the latest. `test/libc` runs its programs over `lib/Sys.raz`, the C one, through a link in its `mods`. A test or example without `.expect` is only diff --git a/PLAN.md b/PLAN.md index f91cd2e..c9d3157 100644 --- a/PLAN.md +++ b/PLAN.md @@ -58,11 +58,23 @@ - [ ] 7. rat, rlX11, rmacs and ravite on this raz, in their own repositories: the four copies of UTF-8 encoding go to `Str.encode`. -- [ ] 8. The freeze, in CLAUDE.md and the report's first section: the +- [x] 8. The freeze, in CLAUDE.md and the report's first section: the language changes only to mend a defect; the library grows only by what breaks nothing; wishes go to a list for a later thaw. README, `doc/compiler.md`'s table, the report's version and the compiler's; tag `v0.5.0`. + +## Wishes, for a later thaw + +What the language or the library might have, met while writing raz; +none is built while the freeze holds. + +- `case` on integers and characters: `match` takes variants only, so + a choice among numbers is a chain of `elsif` (`examples/Sh.raz`). +- Constant arrays: a table of numbers is assigned in a procedure, as + `Math`'s bits of 2/pi are, or kept in a variable. +- Joining string constants, `"a" + B`: a test's expected text is + written out whole each time (`Opt`'s test). ## After v0.5.0 diff --git a/README.md b/README.md index 120f93f..d277181 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ $ examples/Hello hello, world -The compiler is under 6,000 lines of Free Pascal: one pass, no +The compiler is about 6,000 lines of Free Pascal: one pass, no intermediate form, no optimizer. It writes x86-64 machine code and the ELF executable itself, with no assembler or linker, and compiles about a million lines a second. @@ -160,16 +160,16 @@ The compiler says its own version and that of the report it follows: $ ./raz --version - raz 0.4.0, report 2026-10.8 + raz 0.5.0, report 2026-10.9 The compiler's version is git's name for the commit it was built from: -`0.4.0` at the tag `v0.4.0`, `0.4.0-5-g38d29a8` five commits past it. +`0.5.0` at the tag `v0.5.0`, `0.5.0-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.4.1 -m 'raz 0.4.1, report 2026-10.8' - $ git push origin v0.4.1 + $ git tag -a v0.5.1 -m 'raz 0.5.1, report 2026-10.9' + $ git push origin v0.5.1 GitHub then builds and checks the tag, and makes a release of it with a tarball of `raz` and its `lib/`. A tag pushed before the workflow @@ -177,6 +177,10 @@ A version of the report is named by its month and a count; the report's last section says what each version changed. + +Since v0.5.0 the language is frozen, softly: it changes only to mend a +defect, and the library grows only by what breaks no program. Wishes +wait on a list in `PLAN.md`, for a later thaw. ## Not here diff --git a/doc/raz.md b/doc/raz.md index b44e31f..c9249d7 100644 --- a/doc/raz.md +++ b/doc/raz.md @@ -9,9 +9,14 @@ This report defines the language. It is short on purpose. Whatever it doesn't allow, raz doesn't have. -This is version 2026-10.8 of the report; section 12 says what each +This is version 2026-10.9 of the report; section 12 says what each version changed. +The language is frozen, softly, from this version on: it changes only +to mend a defect, and its library grows only by what breaks no program +written for it. What anyone wishes it had waits on a list, for a later +thaw. + ## 1. A first look ``` @@ -1402,8 +1407,8 @@ (section 11). - **2026-10.8.** `Sys.workDir` returns the directory, with no `var` parameter (section 11). -- **2026-10.9**, under way: what follows is in the report, but not - yet all in the library. `Sys` gains opening a file for any use, seeking, +- **2026-10.9.** The language is frozen (the start of the report). + `Sys` gains opening a file for any use, seeking, links, permissions and times; pipes, process groups and the terminal's foreground; signals caught on a file descriptor; clocks, sleeping and random bytes; and network sockets. `Sys.spawn` takes a diff --git a/src/raz.pas b/src/raz.pas index 0295cee..d45295c 100644 --- a/src/raz.pas +++ b/src/raz.pas @@ -31,7 +31,7 @@ { what git describe says, made by make: 0.3.0 at the tag v0.3.0, 0.3.0-5-g38d29a8 five commits past it } Version = {$I version.inc}; - Report = '2026-10.8'; { the version of doc/raz.md it follows } + Report = '2026-10.9'; { the version of doc/raz.md it follows } MemfdCreate = 319; { the system call; FPC 3.2.2 has no name for it } MfdCloexec = 1; { an ELF still executes: the kernel opens it first }