raz / lib

history · 136 commits · the directory

89524972Luis <42945842+ldiaz94@users.noreply.github.com>The library on the Mac: Rt, Thread, Sys over libSystem; Arith
6d4487fbLuis <42945842+ldiaz94@users.noreply.github.com>Gen.arm64: division and the checks, calls in full, try and defer, atomics, COPY
2b92b442Luis <42945842+ldiaz94@users.noreply.github.com>The first programs for darwin-arm64, run on the Mac: Gen.arm64, Exe.darwin
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
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
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
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
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
5b96aba7Luis <42945842+ldiaz94@users.noreply.github.com>Sys.random: stop on an error but EINTR, not spin
d41d69adLuis <42945842+ldiaz94@users.noreply.github.com>Heap: round a block down to its page with a mask, not mod
3a69bc7eLuis <42945842+ldiaz94@users.noreply.github.com>Prop: property tests and fuzzing over recorded choices, shrunk
280d4d6fLuis <42945842+ldiaz94@users.noreply.github.com>Check: a test's checks, said on standard error, its status at exit
6603c911Luis <42945842+ldiaz94@users.noreply.github.com>Str: base64Size, base64 and unbase64, RFC 4648 base64, decoded strictly
abca7b2fLuis <42945842+ldiaz94@users.noreply.github.com>Rand: a seeded generator, splitmix64; the testing plan
2ae3d534Luis <42945842+ldiaz94@users.noreply.github.com>Sys: setTime, lockShared, makeDirMode, closeChecked; Info.seconds and special
3543de16Luis <42945842+ldiaz94@users.noreply.github.com>Sys: PTR in place of the private bytes
7624e35dLuis <42945842+ldiaz94@users.noreply.github.com>raz -bare: a program for the bare machine
e5d33f12Luis <42945842+ldiaz94@users.noreply.github.com>raz -base: the load address chosen at the command line
9b7ca9eaLuis <42945842+ldiaz94@users.noreply.github.com>Buf.bytes and Sys.entryKind take const (report 2026-10.33)
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)
460315e4Luis <42945842+ldiaz94@users.noreply.github.com>Errors by name: Out, Fmt, Files and Scan test Sys.errIntr, errNoEntry, errDenied
e1dff012Luis <42945842+ldiaz94@users.noreply.github.com>CAbi: what the C library fixes, in a module of its own, written by tools/cabi.c
6a6bdf5cLuis <42945842+ldiaz94@users.noreply.github.com>The C library a choice: -libc glibc|musl, musl by default where only its loader is
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
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
6dfa68f1Luis <42945842+ldiaz94@users.noreply.github.com>Sys.env reads the environment itself, as before setEnv
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
62512d22Luis <42945842+ldiaz94@users.noreply.github.com>Sys.syncAll over C asks whether fd is open; test/libc with -Werror
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
0519c7d5Luis <42945842+ldiaz94@users.noreply.github.com>Buf: a Buf used before Buf.init says so
999ed6abLuis <42945842+ldiaz94@users.noreply.github.com>Docs for views and the INT rule: tutorial, raz(7), tour, an example; Math by views
f784f531Luis <42945842+ldiaz94@users.noreply.github.com>Views, v.(T): the bytes of a variable read and written as another type
90cd0ae0Luis <42945842+ldiaz94@users.noreply.github.com>Opt.at: where the operands are
8ed26889Luis <42945842+ldiaz94@users.noreply.github.com>Sys: position, truncate, sync and infoOf
c290b2c8Luis <42945842+ldiaz94@users.noreply.github.com>Str: trimming, cutting, case, joining, UTF-8 and numbers; Math.toReal
f871b244Luis <42945842+ldiaz94@users.noreply.github.com>Thread in a program with C, by C's pthread_create
8319dbc3Luis <42945842+ldiaz94@users.noreply.github.com>Sys: files passed over a socket, memory shared through a file
8b5a222bLuis <42945842+ldiaz94@users.noreply.github.com>Sys: datagrams served, a socket's port, connecting within a time
1cc92bbaLuis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.23: Math exports bits, fromBits and mul
7e721e08Luis <42945842+ldiaz94@users.noreply.github.com>Every stop of a running program exits with status 2; conformance tests for stops, zero start, evaluation order, variant match, defers and Str's byte order
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)
99e7ccbfLuis <42945842+ldiaz94@users.noreply.github.com>Bytes: the zero-byte test written out in the loops
c04ee33eLuis <42945842+ldiaz94@users.noreply.github.com>Bytes: index, last, count and find, eight bytes at a time, sixteen with SSE2
5dadea44Luis <42945842+ldiaz94@users.noreply.github.com>One table of lines, not two
654579f9Luis <42945842+ldiaz94@users.noreply.github.com>Parameters left where they arrive
f8fb7674Luis <42945842+ldiaz94@users.noreply.github.com>raz-lib(3), the library, made from its sources
c16e8a93Luis <42945842+ldiaz94@users.noreply.github.com>raz -h, raz(1), -s and -noprofile; segments with no padding
051844eeLuis <42945842+ldiaz94@users.noreply.github.com>The profile says each procedure's total, with its calls'
d8137081Luis <42945842+ldiaz94@users.noreply.github.com>COPY
46597e23Luis <42945842+ldiaz94@users.noreply.github.com>Register variables
6089fb3bLuis <42945842+ldiaz94@users.noreply.github.com>Record constants, constant tables, and Str.copy
4e7b5673Luis <42945842+ldiaz94@users.noreply.github.com>Math's powers, logarithms, rounding and inverses; Sys.space
9ca6cfc3Luis <42945842+ldiaz94@users.noreply.github.com>The blank, and a warning for a dropped result
aa755916Luis <42945842+ldiaz94@users.noreply.github.com>Comments: the review's gaps in src and lib
ce8052e0Luis <42945842+ldiaz94@users.noreply.github.com>Diagnostics: say more of what went wrong
701be1bcLuis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.13: Sys writes without waiting
28e62ecdLuis <42945842+ldiaz94@users.noreply.github.com>Step 9e: a profiler in Rt
a5915c27Luis <42945842+ldiaz94@users.noreply.github.com>Step 9d: the trap report
e514b239Luis <42945842+ldiaz94@users.noreply.github.com>Step 9b: assembly procedures in place of byte procedures
3a4fb62bLuis <42945842+ldiaz94@users.noreply.github.com>Step 9a: failures the code tests for where the machine can't
2411fde8Luis <42945842+ldiaz94@users.noreply.github.com>Step 5: the system integer
76f10fb8Luis <42945842+ldiaz94@users.noreply.github.com>Packed fields have no address; byte order; Out's buffer is the target's
1cef5331Luis <42945842+ldiaz94@users.noreply.github.com>Report 2026-10.10: constants don't overflow, pointer slices don't run backwards
f9b557c0Luis <42945842+ldiaz94@users.noreply.github.com>Opt, a command line through one table; Files to the library
f28bc869Luis <42945842+ldiaz94@users.noreply.github.com>Str's UTF-8 and toInt, Map's remove and next, Sort, Math, Fmt.real
aa182c9aLuis <42945842+ldiaz94@users.noreply.github.com>Sys: clock, now, sleep, random; TCP, UDP and listening sockets
693bcbb7Luis <42945842+ldiaz94@users.noreply.github.com>Sys: pipes, programs by Program, wait's Status, groups and signals
19f3570aLuis <42945842+ldiaz94@users.noreply.github.com>Sys: files opened as asked, seek, links, permissions and times
138ba061Luis <42945842+ldiaz94@users.noreply.github.com>Several results in place of var parameters
46ec3b9fLuis <42945842+ldiaz94@users.noreply.github.com>Sys: pseudo-terminals and programs; Info tells a file and a link
bc22ce64Luis <42945842+ldiaz94@users.noreply.github.com>Operators: and, or, not for BOOLs below the relations; &, |, ~ for bits
95cc648aLuis <42945842+ldiaz94@users.noreply.github.com>= and # on arrays inline, with repe cmpsb; Rt.eq goes
fdcb312cLuis <42945842+ldiaz94@users.noreply.github.com>Sys.send: writing to a socket without SIGPIPE
e4373052Luis <42945842+ldiaz94@users.noreply.github.com>Sys: connect and readyOf, a Unix socket and waiting on several files
566b557bLuis <42945842+ldiaz94@users.noreply.github.com>Thread: a stack for the signal handlers in each thread's mapping
389c4f3aLuis <42945842+ldiaz94@users.noreply.github.com>Run-time messages: failed checks say what and with what values, signals say where and why
5a422e6eLuis <42945842+ldiaz94@users.noreply.github.com>Warnings: what is never used, or only assigned; make check builds with -Werror
2e82d3d7Luis <42945842+ldiaz94@users.noreply.github.com>Merge editor-plan: Sys gains files, directories, the terminal and the environment
ba7f6657Luis <42945842+ldiaz94@users.noreply.github.com>Rename jed to raz; add an ISC license
30b3c516Luis <42945842+ldiaz94@users.noreply.github.com>Step 16: editor support, and a stress test of native threads
21350d28Luis <42945842+ldiaz94@users.noreply.github.com>Step 15: versions, tools/Doc.jed, checked examples, library tests
115239adLuis <42945842+ldiaz94@users.noreply.github.com>Step 13: a thread-safe heap with block markers, native threads
1e15c9a2Luis <42945842+ldiaz94@users.noreply.github.com>Step 11: extern proc and var, link, dynamic ELF; Rt.exit, Rt.atExit, buffered Out
82a614f3Luis <42945842+ldiaz94@users.noreply.github.com>Step 10: generic modules; Str, Buf, Fmt, List, Map
8c6df0eeLuis <42945842+ldiaz94@users.noreply.github.com>Step 9: NEW, and the allocators
bc1240a7Luis <42945842+ldiaz94@users.noreply.github.com>Step 6: first library, examples, check and bench