raz / doc / raz-lib.md

history · 79 commits · the file

89524972Luis <42945842+ldiaz94@users.noreply.github.com>The library on the Mac: Rt, Thread, Sys over libSystem; Arith
4b564960Luis <42945842+ldiaz94@users.noreply.github.com>Sys.errReadOnly, EROFS, beside errNoSpace
5b0b3f89Luis <42945842+ldiaz94@users.noreply.github.com>Files.argCount: the number of arguments, beside Files.arg
264716cbLuis <42945842+ldiaz94@users.noreply.github.com>The tests, conform/, examples/ and the docs' examples held to report 2026-10.37 whole
e0d008cdLuis <42945842+ldiaz94@users.noreply.github.com>lib/ held to report 2026-10.37 whole: import SYSTEM, []const, atomics on a variable
ef0484e1Luis <42945842+ldiaz94@users.noreply.github.com>Heap's debugging mode: RAZ_HEAP=debug or Heap.debug(true)
823ebfd6Luis <42945842+ldiaz94@users.noreply.github.com>Library: Task(T), a thread given a value with no cast; Guarded(T), a value with its lock
8b69ed1aLuis <42945842+ldiaz94@users.noreply.github.com>Sys.ignore gives a signal catch took up: unblocked and no longer on catch's fd (signalfd mask updated), with its default or ignored; a test in both Sys backends
2c293e79Luis <42945842+ldiaz94@users.noreply.github.com>Sys.connect and listen: a path that starts with a zero byte is an abstract name
c7550b66Luis <42945842+ldiaz94@users.noreply.github.com>Sys.poll: wait on any number of descriptors, and say which are ready
92592e25Luis <42945842+ldiaz94@users.noreply.github.com>PROPOSALS.md: what is left out confirmed; raz-lib: a signal before wait, by catch and ready
28c63ff8Luis <42945842+ldiaz94@users.noreply.github.com>Sys: sendNow, makeFifo, Info.uid and gid, and chown, in both backends
e8ec426bLuis <42945842+ldiaz94@users.noreply.github.com>Math.divMod: 128 bits divided by 64, by one div instruction; hi >= d stops with a message
947d70f3Luis <42945842+ldiaz94@users.noreply.github.com>Arena.mark and release; Vec.insert and remove: freeing back to a mark, and opening and closing a gap in the middle of a Vec
0b79ce2bLuis <42945842+ldiaz94@users.noreply.github.com>Sys: setsid, a session of a program's own, and blocking, whether a descriptor's reads and writes wait
a700688dLuis <42945842+ldiaz94@users.noreply.github.com>Fmt: short is a procedure writing into a ShortMost array, not an Arg, so programs that don't call it don't carry its tables (hello world 49,200 to 40,504 bytes)
22233765Luis <42945842+ldiaz94@users.noreply.github.com>Sys: mapRead and protect; open, openMode, openRead, create and openDir close on exec
82f30b3cLuis <42945842+ldiaz94@users.noreply.github.com>Sys: closeWrite, peer, socketPair, nonblocking and errConnAborted
7924cbb7Luis <42945842+ldiaz94@users.noreply.github.com>Sys: ignored, findEnv and processors; Rt: exitStatus
59f8ade1Luis <42945842+ldiaz94@users.noreply.github.com>Fmt: short, a real in the fewest digits that read back
8e8cefdeLuis <42945842+ldiaz94@users.noreply.github.com>Fmt: into, formatting into a caller's slice with no heap
e9738450Luis <42945842+ldiaz94@users.noreply.github.com>Opt: -33.87 is an operand where no option is a digit; Opt.misuse writes the program's mistake with the synopsis
66c926e6Luis <42945842+ldiaz94@users.noreply.github.com>Str: toU64, fromC and toC, base64With and unbase64With (Base64Url, unpadded); Prop.decimal is Str.toU64
31c6ebe1Luis <42945842+ldiaz94@users.noreply.github.com>Math: tanh, over fdlibm's expm1, and roundEven, a half to the even one
4f54a7f2Luis <42945842+ldiaz94@users.noreply.github.com>The library's deprecation step: an old form stays one minor version
302c3acdLuis <42945842+ldiaz94@users.noreply.github.com>Heap: sure, the heap that stops the program when memory runs out
62fab28bLuis <42945842+ldiaz94@users.noreply.github.com>Sys: spawn finds its program first, keepIgnored, fds with tty, waitExit
55f203f3Luis <42945842+ldiaz94@users.noreply.github.com>Files: writeAll, realPath and removeTree
4fe15c82Luis <42945842+ldiaz94@users.noreply.github.com>Fmt: a width in the braces, lowHex, and E for an exponent
00c37b1bLuis <42945842+ldiaz94@users.noreply.github.com>raz-lib: Sys.random stops the program if it can't fill b
414ba15eLuis <42945842+ldiaz94@users.noreply.github.com>Files.write: close with closeChecked, so a late write error is seen
147c815dLuis <42945842+ldiaz94@users.noreply.github.com>Files.arg: empty past the arguments, not a nil pointer
c9ee56ddLuis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.36: Rand, Check and Prop in the standard library
6603c911Luis <42945842+ldiaz94@users.noreply.github.com>Str: base64Size, base64 and unbase64, RFC 4648 base64, decoded strictly
2ae3d534Luis <42945842+ldiaz94@users.noreply.github.com>Sys: setTime, lockShared, makeDirMode, closeChecked; Info.seconds and special
9b7ca9eaLuis <42945842+ldiaz94@users.noreply.github.com>Buf.bytes and Sys.entryKind take const (report 2026-10.33)
51a90a63Luis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.33 is followed; the tutorial, STANDARDS.md and CLAUDE.md say so v0.19.0
c8d9a160Luis <42945842+ldiaz94@users.noreply.github.com>Sys's directories take the Dir by var (report 2026-10.33)
ccd59f55Luis <42945842+ldiaz94@users.noreply.github.com>Opt takes the parser by var, or const where it only reads it
0ad25c63Luis <42945842+ldiaz94@users.noreply.github.com>Lock and Thread's Mutex are taken and given by var (report 2026-10.33)
0f4a4cddLuis <42945842+ldiaz94@users.noreply.github.com>Vec, Map and List take what they work on by var, and const to read it
821f83e6Luis <42945842+ldiaz94@users.noreply.github.com>Arena takes the arena by var (report 2026-10.33)
3fee2db6Luis <42945842+ldiaz94@users.noreply.github.com>Buf, Files, Fmt and Str take the Buf by var (report 2026-10.33)
57aca694Luis <42945842+ldiaz94@users.noreply.github.com>Docs: the C library a target's choice; Sys's errors Linux's by name; CAbi
716e2b8eLuis <42945842+ldiaz94@users.noreply.github.com>Thread.signal: a signal to one thread
c06e3bdbLuis <42945842+ldiaz94@users.noreply.github.com>Opt: a value that may be left out, written [name]
6970dbf9Luis <42945842+ldiaz94@users.noreply.github.com>Opt: a scope may have -h of its own
b20b4ce4Luis <42945842+ldiaz94@users.noreply.github.com>Opt: spelt, the option as it was written, and refuse
9dfe9b61Luis <42945842+ldiaz94@users.noreply.github.com>Opt.number with no top: from lo up
6e2a4e15Luis <42945842+ldiaz94@users.noreply.github.com>Out.lines: the buffer written at each line feed, through a pipe too
0bc2d2a8Luis <42945842+ldiaz94@users.noreply.github.com>Buf.cut: only the first n bytes kept
c6872e07Luis <42945842+ldiaz94@users.noreply.github.com>Docs: 2026-10.32 told whole; an example kept with its paragraph v0.18.0
261c3a07Luis <42945842+ldiaz94@users.noreply.github.com>Sys.Info.links: how many names a file has
c2092414Luis <42945842+ldiaz94@users.noreply.github.com>Vec.pop: the last element, taken off
35fa926dLuis <42945842+ldiaz94@users.noreply.github.com>Sys: execve, the kernel's, for a shell
870ce969Luis <42945842+ldiaz94@users.noreply.github.com>Sys: setEnv, for this program and those it starts
f408ba19Luis <42945842+ldiaz94@users.noreply.github.com>Sys: errorText, what an errno means
bc0ed42cLuis <42945842+ldiaz94@users.noreply.github.com>Fmt: eprint, to standard error once Out is flushed
2818832eLuis <42945842+ldiaz94@users.noreply.github.com>Vec: tryPush and tryAdd
f703dc3fLuis <42945842+ldiaz94@users.noreply.github.com>Str: isDigit, isLetter, isSpace, isPunct, hexVal and findFrom
40536519Luis <42945842+ldiaz94@users.noreply.github.com>Width: the columns of a terminal a character takes
ae0cca00Luis <42945842+ldiaz94@users.noreply.github.com>Sys: what a shell still needs, for concha
ac9d3e89Luis <42945842+ldiaz94@users.noreply.github.com>Sys: what a shell needs, for concha, over Linux and over C
3ae3cdf6Luis <42945842+ldiaz94@users.noreply.github.com>Files.load: why a file couldn't be read
7235b7bdLuis <42945842+ldiaz94@users.noreply.github.com>Str.free: a copy given back, "" left alone
fe7939cdLuis <42945842+ldiaz94@users.noreply.github.com>Map.done: its slots given back, leaving it empty
c5a9376eLuis <42945842+ldiaz94@users.noreply.github.com>Rt.stop: its comment says the line feed it writes after msg
0fc0d46eLuis <42945842+ldiaz94@users.noreply.github.com>Sys.spawn: a name without a / is found along PATH
9d27fd7eLuis <42945842+ldiaz94@users.noreply.github.com>Sys: entryKind and Info.dev, for walking trees
8b97e6ceLuis <42945842+ldiaz94@users.noreply.github.com>Vec(T): a growable array, in the standard library
9b4fd42fLuis <42945842+ldiaz94@users.noreply.github.com>Buf: out of memory stops; Buf.spare to read into
73d8ebbeLuis <42945842+ldiaz94@users.noreply.github.com>Sys: linkInfo, Info.ino, openMode, lock, syncAll
80585985Luis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.26: a thaw for INT and I64; Sys's position, truncate, sync and infoOf; Opt.at
639f4eaaLuis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.25: indented raw strings, Str.next
2c7e6edeLuis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.25: a thaw for strings
8b5a222bLuis <42945842+ldiaz94@users.noreply.github.com>Sys: datagrams served, a socket's port, connecting within a time
32c0abb2Luis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.24: Sys's datagrams served, ports, timeouts, files passed, memory shared; Thread with C
1cc92bbaLuis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.23: Math exports bits, fromBits and mul
54a45fc7Luis <42945842+ldiaz94@users.noreply.github.com>Report 10.22.6: two volumes, the language (doc/raz.md) and the library (doc/raz-lib.md)