From d9913064c3f67aec82b320b12d624d526bdf432b Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Sun, 11 Oct 2026 22:48:29 +0100 Subject: [PATCH] Report 2026-10.11, approved The draft becomes the report's version; the compiler still follows 2026-10.10 until the plan's steps build it. CLAUDE.md: the thaw, and the readings it changes (extern int consts as INT, min / -1 for every signed type). Co-Authored-By: Claude Opus 5.5 (1M context) --- diff --git a/CLAUDE.md b/CLAUDE.md index 8b77711..214d112 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -76,7 +76,9 @@ **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 +`PLAN.md`, for a later thaw; it isn't built. v0.6.0 is such a thaw, +by the owner's word: report 2026-10.11, approved, which the compiler +is being brought to follow (`PLAN.md`). Keep `doc/compiler.md`'s table of lines and its routine names true when the compiler changes. @@ -128,7 +130,7 @@ program the entry point stores C's `exit` in `Rt.cExit`, found by name like `Rt.exit`, before any module body runs. - Past an extern's parameters, a string goes as a C string and an - integer constant as an `I64`. + integer constant as an `INT` (an `I64` until 2026-10.11 is built). - A real constant is held as an F64; one typed `F32` holds a value an F32 can hold. An `F32` in a register is its low 32 bits; the upper ones are left as they fall. @@ -141,7 +143,8 @@ the main thread, and one in each `Thread` thread's mapping. C's threads have none, so a stack overflow in one ends the program by the signal with no message. -- The smallest `I64` divided by -1 traps (SIGFPE), as 6.1 says. +- The smallest value of a signed type divided by -1 stops the program + (SIGFPE), as 6.1 says; until 2026-10.11 is built, only `I64`'s does. - Warnings come only for a module with no errors. A procedure naming itself doesn't use it; a type named by a pointer in its own declaration does. An enumeration's names are never warned of, nor a diff --git a/doc/raz.md b/doc/raz.md index df7b66a..afb39cc 100644 --- a/doc/raz.md +++ b/doc/raz.md @@ -9,11 +9,10 @@ This report defines the language. It is short on purpose. Whatever it doesn't allow, raz doesn't have. -This is version 2026-10.10 of the report; section 12 says what each -version changed. Version 2026-10.11, written into it, is a draft for -review: the compiler doesn't follow it yet. It is a thaw the owner -chose, for a language anyone can build again, and it breaks programs -written for 2026-10.10. +This is version 2026-10.11 of the report; section 12 says what each +version changed. It is a thaw the owner chose, for a language anyone +can build again, and it breaks programs written for 2026-10.10. The +compiler doesn't follow it yet: it still follows 2026-10.10. 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 @@ -1676,7 +1675,7 @@ 2); a slice of a pointer can't run backwards (section 6.4). Ordinary accesses are no longer promised to be made exactly as written, only volatile and atomic ones (section 7.6). -- **2026-10.11, a draft for review.** `INT` and `UINT`, as big as an +- **2026-10.11.** `INT` and `UINT`, as big as an address, are the integers of lengths, slices, pointer differences, pointer conversions, `SYSCALL` and `ARGC`; `SIZE` and a constant `LEN` are untyped; `INT` widens silently to `I64` and `UINT` to