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.
Sysgains files and directories, the terminal, and the environment (section 11). - 2026-10.3.
return f(x);passes on the several results off(sections 7.3 and 8).and,orandnotare forBOOLs, and bind below the relations;&,|and~are the operators on bits, andxoris for integers only (sections 2 and 6). Arrays and slices of integers,BOOLs, enumerations, sets and pointers compare with=, by code where the comparison stands, not by a call intoRt(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.
Sysgains 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.Infosays whether the path is a regular file, and whether it is a symbolic link (section 11). - 2026-10.7.
Sys.sendwrites to a socket without SIGPIPE (section 11). - 2026-10.8.
Sys.workDirreturns the directory, with novarparameter (section 11). - 2026-10.9. The language is frozen (the start of the report).
Sysgains 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.spawntakes aProgram, andSys.waitsays which program changed and how.Strgains UTF-8 and reading a number,Mapremoving and walking,Fmtreals;Sort,Math,FilesandOptare 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
nilpointer, a division by zero and a stack overflow stop the program on every target (section 10); byte order is the target's, andStrreads and writes a fixed one (sections 5.5 and 11);Out's buffer isSys.outSizebytes (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.
INTandUINT, as big as an address, are the integers of lengths, slices, pointer differences, pointer conversions,SYSCALLandARGC;SIZEand a constantLENare untyped;INTwidens silently toI64andUINTtoU64, but neither mixes with them in an expression or afor(sections 5, 6.1 and 7.2);Mem.AllocatortakesINTsizes. Pointers, procedures,ERRORs, 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 byvaror 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 onINT,UINTand pointers (6.8). An integer constant past an extern's parameters goes as anINT(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 givesINTfor lengths, counts, descriptors, process ids and statuses,main's andRt.exit's among them, andI32for a character;I64stays for what may pass anINTon 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).matchtakes 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.tracesays them on demand (sections 10 and 11). - 2026-10.13.
Sysgains 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.
Mathgainspow,ceil,round,log2,log10,tan,asin,acosandatan;Sysgainsspace(section 11). - 2026-10.16. Record constants, and array and record constants of
records, strings, procedures and more (section 4);
Strgainscopy(section 11). - 2026-10.17.
COPYcopies 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 anERROR, which makes the procedure it stands in return that error when it isn'tnil(sections 2, 5.8, 6, 7.8 and appendix B).trybecomes a reserved word, which breaks a program with a nametry. - 2026-10.21. An arm of a
matchon 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.atExitprocedures (section 10). Readings the compiler had taken are in the report:checkandoffaren't reserved, an untyped constant converts to a pointer as anINTdoes, a shift of an untyped constant, which typesmatchtakes,loabovehi, adeferin adefer, where anINTwidens, a real above the largestF64, a code point above 10FFFFH, a NUL byte, a volatile variable passed byvar, and aforwardwith no body. The core of the library is whatconform/tests (appendix A); the rest of the library is the standard library. The report is in two volumes,doc/raz.mdanddoc/raz-lib.md, and its history is here. - 2026-10.23.
MathgainsbitsandfromBits, anF64's bits and back, andmul, the 128-bit product of twoU64s, for reading and writing reals exactly (volume 2). - 2026-10.24.
Sysgains serving datagrams,listenUdp,receiveandreply; a socket's own port,localPort; connecting with a timeout,connectTcpWithin; passing files over a Unix socket,sendFdsandreceiveFds; and memory shared through a file,memFileandmapFile.Threadworks in a program that uses C, and no longer sayslink 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);
matchtakes a string, with string constants as labels (section 7.4). It breaks no program.StrgainseqFold,findLast,hasSuffix,trim,trimLeft,trimRight,cut,field,lower,upper,join,replace,decodeLast,next,valid,chars,toHexandfromInt;MathgainstoReal(volume 2). - 2026-10.26. A thaw, for
INTandI64, and for views. AnINTwidens to anI64, and aUINTto aU64, wherever its value goes to one: in an expression, where it meets one, and ina, b := f(x),return f(x), afor's bounds and the step ofINCandDEC(sections 5.10, 6.1 and 7.2). A view,v.(T), reads and writes the bytes of the variablevas aT, checked to lie within it (section 6.9 and appendix B). It breaks no program.Sysgainsposition,truncate,syncandinfoOf;Optgainsat, 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.
SysgainsopenMode,syncAll,lock,linkInfoandInfo.ino;Bufgainsspare, and itsaddandstrstop the program when memory runs out rather than dropping bytes; the standard library gainsVec, 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).
SysgainsentryKindandInfo.dev;spawnfinds a name without a/alongPATH; over the C library,syncAllof 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
[]Ttakes its length from its literal, and is an array constant of that length in all else (section 4). It breaks no program.Sysgains what a shell needs:dup,dupTo,keepOnExec,Program.more,exec,accessandAccess'sexecuting,umask,envAt,getModeandsetMode,cpuTime,limitandsetLimit,uid,euid,hostName, andsigUsr1,sigUsr2andsigAlrm, thendupAbove,group,fork,handleandcame, andwaiton a group;Mapgainsdone,Strgainsfree, andFilesgainsload, and tries again after EINTR (volume 2). - 2026-10.30. A defect mended:
[]used as a slice is the empty slice,ptrnilandlen0, 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.
INTandUINTare at least 16 bits on every target (section 5.1).U8,I8andI16widen toINT, andU8andU16toUINT, where they are moved, as anINTwidens toI64; 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).continueends a loop's round (sections 7.2 and 7.7). It breaks a program that has a namecontinue. The standard library gainsWidth, the columns of a terminal a character takes (volume 2). - 2026-10.32. A thaw, the eighth. A constant typed
[]Twhose literal is[]is the empty slice, a value of type[]T, and no array;LENof 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.Vecgainspop, andSys.Infolinks, 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 avarparameter when they change it, as aconstone or a value when they only read it:Arena,Buf,Files.readandload,Fmt.write,List,Lock,Map,Opt,Str.joinandreplace,Sys's directories,Thread.lockandunlock,Vec(volume 2). That breaks a program that calls them withADR; it is mended by writingxforADR(x), andp^for a pointerp. - 2026-10.34. A thaw, the tenth, by the owner's word.
PTR(s)is the address a slice starts at, a^Tfors: []T, with no check:ADR(s[0])whensisn't empty, and what the slice holds when it is, whereADR(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. ThenSysgainssetTime,lockShared,makeDirModeandcloseChecked, andInfogainssecondsandspecial, 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)andROR(x, n)rotate a word of an unsigned integer type left and right bynbits 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. ThenStrgainsbase64Size,base64andunbase64, 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; andProp, property tests and fuzzing with shrinking (volume 2). They are not core. And a twelfth thaw, by the owner's word:MIN(T)andMAX(T), the smallest and largest value of an integer type, untyped constants but forMAX(U64)andMAX(UINT), which keep their type;ABS(x), a number without its sign, ofx's type, an integer or a real, and of a constant a constant (sections 4, 6.1 and 6.8); andCLZ(x),CTZ(x)andPOPCOUNT(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, anINT, 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. ABOOLalso converts to an integer, 0 forfalseand 1 fortrue(6.7), a constant too; there is still none from an integer to aBOOL.OFFSET(T, f)andSIZE(T.f)are the offset of a field in a record type and its size, untyped constants (sections 4 and 6.8); andBYTES(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 tox(section 6.8). An arm of amatchmay 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 anERRORconstant may be anotherERRORconstant, the same error (sections 4 and 5.8). A slice of aconstparameter may be returned (section 7.3). A parameter or a result of a procedure type may name a type declared later in the sametypesection, 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
constparameter'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. AndCAS,XCHGandXADDtake the variable they work on, asINCdoes, 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[]Tor an array goes where one is wanted, never the other way. A string literal and a slice of a constant are[]const, asMSGand a slice of aconstparameter'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. Andimport 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.SYSCALLandSYSTEM.ARGV, a pointer's arithmetic and indexing, conversions to and from pointers and procedures, views andBYTESthat would make or change a pointer,extern,link, code procedures andcheck 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;andlea 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, amatch'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 asunamegives 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.