# The versions of the report What each version of the report, `doc/raz.md`, changed. A version is named by the month it was made in and a count: `2026-10.0`, then `2026-10.1` for the next change that month. Section numbers are those of the report at the time. - **2026-10.0.** The first numbered version: the language of compiler 0.3.0. - **2026-10.1.** Messages: every error in a run, warnings of what is never used and `-Werror` (section 10); failed checks say what failed, and signals say where (sections 6.5 and 10). - **2026-10.2.** `Sys` gains files and directories, the terminal, and the environment (section 11). - **2026-10.3.** `return f(x);` passes on the several results of `f` (sections 7.3 and 8). `and`, `or` and `not` are for `BOOL`s, and bind below the relations; `&`, `|` and `~` are the operators on bits, and `xor` is for integers only (sections 2 and 6). Arrays and slices of integers, `BOOL`s, enumerations, sets and pointers compare with `=`, by code where the comparison stands, not by a call into `Rt` (section 6.5). A generic module's instance is made where it is first used, so its arguments may name types declared after the imports (section 3). - **2026-10.4.** `Sys` gains a connection to a Unix socket, waiting on several files at once, pseudo-terminals, and starting, waiting for and stopping programs (section 11). - **2026-10.5.** A module with files in more than one of the directories searched is an error, unless the first is a link to one of the others (section 3). - **2026-10.6.** `Sys.Info` says whether the path is a regular file, and whether it is a symbolic link (section 11). - **2026-10.7.** `Sys.send` writes to a socket without SIGPIPE (section 11). - **2026-10.8.** `Sys.workDir` returns the directory, with no `var` parameter (section 11). - **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 `Program`, and `Sys.wait` says which program changed and how. `Str` gains UTF-8 and reading a number, `Map` removing and walking, `Fmt` reals; `Sort`, `Math`, `Files` and `Opt` are new (section 11). - **2026-10.10.** Said at last: what the compiler did and the report didn't say, all through; what an implementation chooses, and the core every target has (appendix A); the whole grammar (appendix B); the library's module names are kept for it (section 3); a record, variant or enumeration is a type of its own wherever it is written (section 5.10); a `nil` pointer, a division by zero and a stack overflow stop the program on every target (section 10); byte order is the target's, and `Str` reads and writes a fixed one (sections 5.5 and 11); `Out`'s buffer is `Sys.outSize` bytes (section 11). Changed: a field of a packed record that may be misaligned has no address and no volatile access (section 5.5). Mended: arithmetic on untyped constants that overflows is an error (section 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.** `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 `U64`, but neither mixes with them in an expression or a `for` (sections 5, 6.1 and 7.2); `Mem.Allocator` takes `INT` sizes. Pointers, procedures, `ERROR`s, slices and variants' tags are sized by the address, and basic types aligned as the target's C aligns them (section 5). Reals are a target's to have or not (section 5.1). An exported variable can't be changed, passed by `var` or addressed outside its module, nor an array in it sliced (section 3). `check off;` leaves a module's index and slice checks out (sections 3, 6.4 and 6.5). An index of any integer type is checked by its value (6.5). A shift counts modulo its operand's width, and the smallest value of every signed type divided by -1 stops the program (6.1). Writing a string's bytes isn't defined (5.10). The atomic built-ins work on `INT`, `UINT` and pointers (6.8). An integer constant past an extern's parameters goes as an `INT` (9). An importer depends only on a module's interface, so a module can be compiled on its own; whether it is, and into what, is the implementation's (sections 3 and 10; appendix A). The library takes and gives `INT` for lengths, counts, descriptors, process ids and statuses, `main`'s and `Rt.exit`'s among them, and `I32` for a character; `I64` stays for what may pass an `INT` on a small target: a file's size and position, times, and numbers read from text (section 11). An array constant has a type and is used as a variable that can't be changed; `+` joins string constants (section 4). `match` takes an integer, with constants and ranges as labels (7.4). - **2026-10.12.** A code procedure is written in the target's assembly language, not as bytes (section 8; appendix A). A program that stops says the calls under way and their variables, and `Rt.trace` says them on demand (sections 10 and 11). - **2026-10.13.** `Sys` gains writing without waiting, and waiting for room to write (section 11). - **2026-10.14.** The blank, `_`, drops a value or one of several results (section 7.1); a call that drops a result is a lint (section 10). - **2026-10.15.** `Math` gains `pow`, `ceil`, `round`, `log2`, `log10`, `tan`, `asin`, `acos` and `atan`; `Sys` gains `space` (section 11). - **2026-10.16.** Record constants, and array and record constants of records, strings, procedures and more (section 4); `Str` gains `copy` (section 11). - **2026-10.17.** `COPY` copies the elements of one array or slice to another as a block (section 6.8). - **2026-10.18.** A code procedure takes and returns slices (section 8). - **2026-10.19.** The library gains `Bytes` (section 11). - **2026-10.20.** `try`: a call of a procedure whose last result is an `ERROR`, which makes the procedure it stands in return that error when it isn't `nil` (sections 2, 5.8, 6, 7.8 and appendix B). `try` becomes a reserved word, which breaks a program with a name `try`. - **2026-10.21.** An arm of a `match` on an enumeration may name several of its names (section 7.4). - **2026-10.22.** Mends and trims, from an audit of the report against its tests. What is an error is stated once (section 10), by meaning; the words of messages, the number of them and the warnings are an implementation's. Every stop of a running program, a nil pointer, a division by zero, a stack overflow, a failed check, ends with status 2, after the `Rt.atExit` procedures (section 10). Readings the compiler had taken are in the report: `check` and `off` aren't reserved, an untyped constant converts to a pointer as an `INT` does, a shift of an untyped constant, which types `match` takes, `lo` above `hi`, a `defer` in a `defer`, where an `INT` widens, a real above the largest `F64`, a code point above 10FFFFH, a NUL byte, a volatile variable passed by `var`, and a `forward` with no body. The core of the library is what `conform/` tests (appendix A); the rest of the library is the standard library. The report is in two volumes, `doc/raz.md` and `doc/raz-lib.md`, and its history is here. - **2026-10.23.** `Math` gains `bits` and `fromBits`, an `F64`'s bits and back, and `mul`, the 128-bit product of two `U64`s, for reading and writing reals exactly (volume 2). - **2026-10.24.** `Sys` gains serving datagrams, `listenUdp`, `receive` and `reply`; a socket's own port, `localPort`; connecting with a timeout, `connectTcpWithin`; passing files over a Unix socket, `sendFds` and `receiveFds`; and memory shared through a file, `memFile` and `mapFile`. `Thread` works in a program that uses C, and no longer says `link static` (volume 2). - **2026-10.25.** A thaw, for strings. A raw string, between backquotes, has no escapes and may run over lines, indented with the code around it (section 2 and appendix B); `match` takes a string, with string constants as labels (section 7.4). It breaks no program. `Str` gains `eqFold`, `findLast`, `hasSuffix`, `trim`, `trimLeft`, `trimRight`, `cut`, `field`, `lower`, `upper`, `join`, `replace`, `decodeLast`, `next`, `valid`, `chars`, `toHex` and `fromInt`; `Math` gains `toReal` (volume 2). - **2026-10.26.** A thaw, for `INT` and `I64`, and for views. An `INT` widens to an `I64`, and a `UINT` to a `U64`, wherever its value goes to one: in an expression, where it meets one, and in `a, b := f(x)`, `return f(x)`, a `for`'s bounds and the step of `INC` and `DEC` (sections 5.10, 6.1 and 7.2). A view, `v.(T)`, reads and writes the bytes of the variable `v` as a `T`, checked to lie within it (section 6.9 and appendix B). It breaks no program. `Sys` gains `position`, `truncate`, `sync` and `infoOf`; `Opt` gains `at`, where the operands are (volume 2). - **2026-10.27.** A defect mended: returning, as a slice, a local array, a value parameter that is an array, an array literal, or a slice, field or element of one, is an error, since the frame it points into is gone once the procedure returns (section 7.3); what isn't caught is named among the exceptions of section 10. `Sys` gains `openMode`, `syncAll`, `lock`, `linkInfo` and `Info.ino`; `Buf` gains `spare`, and its `add` and `str` stop the program when memory runs out rather than dropping bytes; the standard library gains `Vec`, a growable array (volume 2). - **2026-10.28.** A defect mended: an array a call returns lives to the end of the statement the call is in, and a slice of it kept past that is undefined, among the exceptions of section 10 (section 8). `Sys` gains `entryKind` and `Info.dev`; `spawn` finds a name without a `/` along `PATH`; over the C library, `syncAll` of a file that isn't open is -9 (EBADF), as on Linux (volume 2). - **2026-10.29.** A thaw, for tables. An array constant typed `[]T` takes its length from its literal, and is an array constant of that length in all else (section 4). It breaks no program. `Sys` gains what a shell needs: `dup`, `dupTo`, `keepOnExec`, `Program.more`, `exec`, `access` and `Access`'s `executing`, `umask`, `envAt`, `getMode` and `setMode`, `cpuTime`, `limit` and `setLimit`, `uid`, `euid`, `hostName`, and `sigUsr1`, `sigUsr2` and `sigAlrm`, then `dupAbove`, `group`, `fork`, `handle` and `came`, and `wait` on a group; `Map` gains `done`, `Str` gains `free`, and `Files` gains `load`, and tries again after EINTR (volume 2). - **2026-10.30.** A defect mended: `[]` used as a slice is the empty slice, `ptr` `nil` and `len` 0, and no hidden variable, so it may be returned (sections 6.5 and 7.3); 7.3 had made returning it an error, which the compiler never was. It breaks no program. - **2026-10.31.** A thaw, the seventh. `INT` and `UINT` are at least 16 bits on every target (section 5.1). `U8`, `I8` and `I16` widen to `INT`, and `U8` and `U16` to `UINT`, where they are moved, as an `INT` widens to `I64`; what an operator gives on them doesn't (sections 5.10 and 6.1). An enumeration's name may be written with its type, `Color.red`; two enumerations of a scope may share a name, or one share a name with another declaration, and it is then written with its type (section 5.7). `continue` ends a loop's round (sections 7.2 and 7.7). It breaks a program that has a name `continue`. The standard library gains `Width`, the columns of a terminal a character takes (volume 2). - **2026-10.32.** A thaw, the eighth. A constant typed `[]T` whose literal is `[]` is the empty slice, a value of type `[]T`, and no array; `LEN` of it is 0, not a constant. A slice part of a constant may be the empty slice, by `[]` or by such a constant's name (section 4). Before, both were errors, since an array has at least one element. It breaks no program. `Vec` gains `pop`, and `Sys.Info` `links`, how many names a file has (volume 2). - **2026-10.33.** A thaw, the ninth. A parameter may be `const`: the caller's variable, read in place with nothing copied, which the procedure may not change; its argument is any expression of its type (sections 5.9, 7.4, 8 and 10). A typed constant may be a variant, or hold variants among its elements and fields, each a case built from constants (section 4). Neither breaks a program. The library's procedures that took a pointer to what they work on, and kept none, take it as a `var` parameter when they change it, as a `const` one or a value when they only read it: `Arena`, `Buf`, `Files.read` and `load`, `Fmt.write`, `List`, `Lock`, `Map`, `Opt`, `Str.join` and `replace`, `Sys`'s directories, `Thread.lock` and `unlock`, `Vec` (volume 2). That breaks a program that calls them with `ADR`; it is mended by writing `x` for `ADR(x)`, and `p^` for a pointer `p`. - **2026-10.34.** A thaw, the tenth, by the owner's word. `PTR(s)` is the address a slice starts at, a `^T` for `s: []T`, with no check: `ADR(s[0])` when `s` isn't empty, and what the slice holds when it is, where `ADR(s[0])` stops the program; of an array, that of the slice of all of it (sections 5.3 and 6.8). A predeclared name may be hidden (section 2), so it breaks no program. Then `Sys` gains `setTime`, `lockShared`, `makeDirMode` and `closeChecked`, and `Info` gains `seconds` and `special`, for a program that copies files whole: their times in any year, their set-user-id, set-group-id and sticky bits, and a close that fails (volume 2). It breaks no program. - **2026-10.35.** A thaw, the eleventh, by the owner's word, asked for by sauce and rcrypto, whose hashes call a procedure for each rotation: `ROL(x, n)` and `ROR(x, n)` rotate a word of an unsigned integer type left and right by `n` bits modulo its width, and of constants are a constant (sections 4, 6.1 and 6.8). A predeclared name may be hidden (section 2), so it breaks no program. Then `Str` gains `base64Size`, `base64` and `unbase64`, RFC 4648's base64 with padding, decoded strictly (volume 2). It breaks no program. - **2026-10.36.** Three modules join the standard library: `Rand`, a seeded random number generator; `Check`, checks for a test; and `Prop`, property tests and fuzzing with shrinking (volume 2). They are not core. And a twelfth thaw, by the owner's word: `MIN(T)` and `MAX(T)`, the smallest and largest value of an integer type, untyped constants but for `MAX(U64)` and `MAX(UINT)`, which keep their type; `ABS(x)`, a number without its sign, of `x`'s type, an integer or a real, and of a constant a constant (sections 4, 6.1 and 6.8); and `CLZ(x)`, `CTZ(x)` and `POPCOUNT(x)`, which count the zero bits above the highest one, below the lowest one, and the one bits (or members of a set) of a word of an unsigned integer type, an `INT`, and of constants are a constant (sections 4, 6.1 and 6.8). A predeclared name may be hidden (section 2), so it breaks no program. A `BOOL` also converts to an integer, 0 for `false` and 1 for `true` (6.7), a constant too; there is still none from an integer to a `BOOL`. `OFFSET(T, f)` and `SIZE(T.f)` are the offset of a field in a record type and its size, untyped constants (sections 4 and 6.8); and `BYTES(x)` is the bytes of a variable or a slice as a `[]U8`, of a type a view may take (sections 6.8, 6.9 and 7.3). `FILL(d, x)` sets every element of an array or a slice to `x` (section 6.8). An arm of a `match` may name an imported case as it is written elsewhere, `| Xml.done:` (section 7.4). A constant's slice part may be an array literal, `[[1, 2], [3]]`, and an `ERROR` constant may be another `ERROR` constant, the same error (sections 4 and 5.8). A slice of a `const` parameter may be returned (section 7.3). A parameter or a result of a procedure type may name a type declared later in the same `type` section, so that a record's callback can take the record (sections 4 and 5.9). Appendix A says what a wipe can't reach. It breaks no program. - **2026-10.37.** A defect mended: an array a call returns, or a record or variant holding one, lives to the end of the procedure the call is in, not of its statement, and so does a `const` parameter's temporary holding one; a slice of it may be kept in a variable for the rest of the procedure (sections 7.3, 8 and 10). It breaks no program. And `CAS`, `XCHG` and `XADD` take the variable they work on, as `INC` does, not a pointer to it (section 6.8): `XADD(count, 1)`, `XADD(p^, 1)`. It breaks a program that gives them a pointer; raz 0.23 still took one that isn't a variable, `ADR(x)`; 0.24 doesn't. And `[]const T`, a slice whose elements can't be written through it (section 5.3): a `[]T` or an array goes where one is wanted, never the other way. A string literal and a slice of a constant are `[]const`, as `MSG` and a slice of a `const` parameter's array are, so writing them is an error, not undefined; another module's exported array may be read as one (sections 3, 4, 5.10, 6.8 and 8). It breaks a program that writes through these; raz 0.23 still gave them their old types; 0.24 doesn't. And `import SYSTEM` (section 3): a module the language gives, with no file, that a module imports, by that name only, to reach memory other than through its variables: `SYSTEM.ADR`, `SYSTEM.PTR`, `SYSTEM.SYSCALL` and `SYSTEM.ARGV`, a pointer's arithmetic and indexing, conversions to and from pointers and procedures, views and `BYTES` that would make or change a pointer, `extern`, `link`, code procedures and `check off;` (sections 5.10, 6.4, 6.7, 6.8, 6.9, 8 and 9). Section 10 says what is left undefined outside such modules, and 7.6 that a race on a pointer, a slice or a variant is undefined. It breaks every module that does these without it; raz 0.23 still took them, and the built-ins unprefixed; 0.24 doesn't. - **2026-10.38.** The last change before the hard freeze, for a program on the bare machine. In a code procedure a procedure or a global variable, of the module or exported by an imported one, stands for its address in `call p;`, `jmp p;` and `lea r, [v];`, and in no other operand; a label of the procedure is found first (section 8). Section 10 gives the least every implementation accepts (nesting of expressions and statements, a chain of imports, names declared and variables assigned together, an array literal's elements, a `match`'s labels, deferred statements, type arguments), and says that past its own limits it rejects the program with an error naming the limit; appendix A leaves how far past to it. It breaks no program. - **2026-11.0.** A second target, `darwin-arm64`: arm64 macOS. The names of a target's files are the system's and the machine's as `uname` gives them, in lower case, a machine's the same on every system (section 3). Appendix A gives arm64 macOS's calling convention, Apple's, and its assembly language, Arm's. The sizes the report gives for x86-64 hold on arm64. It changes no language and breaks no program.