raz / commit b52a1d98

commit
b52a1d98bb3ded3b48f40130f07e31e5b6cced47
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
22233765
PROPOSALS.md: Sys for signals, a server's core, files; strings for C, Opt, numbers and two warnings done; INT(b), OFFSET and BYTES in the report; selectors not planned

patch · log

1 file changed, +16 -11

PROPOSALS.md modified +16 -11

@@ -1353,6 +1353,8 @@
13531353
13541354 ## Sys for a server
13551355
1356+**Status.** Approved in part by the owner on 2026-10-23 and implemented in both backends: `closeWrite`, `peer` (its record is `Remote`, since `Peer` is taken by `receive` and `reply`), `socketPair`, `nonblocking` and `errConnAborted`. `closeOnExec` is unneeded now that every open closes on exec. A send that doesn't wait, a fifo, an owner, keepalive and an abstract Unix socket wait.
1357+
13561358 Library growth that breaks no program. Programs that serve sockets
13571359 (rabble's relay and daemon, dwa's broker, rdbus, awizo, arno's te
13581360 protocol) each declare a few C procedures or make system calls with
@@ -1515,6 +1517,8 @@
15151517 Settled by "One exponent letter: `Fmt` writes `E`", below.
15161518
15171519 ## Selectors after a `^T(e)` conversion
1520+
1521+**Status.** Not planned (owner, 2026-10-23): it makes unchecked code shorter and adds nothing a named pointer type can't do; `BYTES` serves the checked uses.
15181522
15191523 A conversion through a pointer type's name is a designator, so
15201524 selectors follow it: with `PR = ^R` and `PU = ^U8`, `PR(ADR(r))^.b`
@@ -1567,6 +1571,8 @@
15671571
15681572 ## `OFFSET(T, f)`, and `SIZE` of a field
15691573
1574+**Status.** Approved by the owner on 2026-10-23, with the twelfth thaw. In the report, 2026-10.36 (4, 6.1 and 6.8); the compiler waits for the owner's review of that text.
1575+
15701576 A record handed to C by pointer must match C's struct byte for byte;
15711577 a field one word off is read wrong with no error. mosaico and rx11 test
15721578 their Xlib records against C's `offsetof` and `sizeof`, and today
@@ -1805,7 +1811,7 @@
18051811
18061812 ## Two warnings
18071813
1808-**Status.** Proposed 2026-10-22, collated from RAZ-GAPS.md.
1814+**Status.** Approved by the owner on 2026-10-23 and implemented in `Parse` and `Scan`.
18091815
18101816 Compiler warnings, which are the implementation's own (10, appendix
18111817 A): no change to the report, and `-Werror` builds break only where the
@@ -1839,7 +1845,7 @@
18391845
18401846 ## A `BOOL` as an integer: `INT(b)`
18411847
1842-**Status.** Proposed 2026-10-22, collated from RAZ-GAPS.md.
1848+**Status.** Approved by the owner on 2026-10-23, with the twelfth thaw. In the report, 2026-10.36 (6.7); the compiler waits for the owner's review of that text.
18431849
18441850 Moved here from the list of what to leave out, because three programs
18451851 met it and one of them for a reason an `if` can't serve. 6.7 says
@@ -1911,7 +1917,7 @@
19111917
19121918 ## The bytes of a variable or a slice: `BYTES(x)`
19131919
1914-**Status.** Proposed 2026-10-22, collated from RAZ-GAPS.md.
1920+**Status.** Approved by the owner on 2026-10-23, with the twelfth thaw. In the report, 2026-10.36 (6.8 and 7.3); the compiler waits for the owner's review of that text.
19151921
19161922 A view, `v.(T)`, reads one value from bytes, and can't be sliced,
19171923 since it has no address (6.9). So a program that has words and wants
@@ -1949,9 +1955,8 @@
19491955 The bytes are in the target's order (appendix A), as a view's are.
19501956
19511957 It is `PTR` and `SIZE` made one checked expression, about 30 lines in
1952-the compiler. It breaks nothing. An array of words is zeroed by
1953-"Filling: `FILL(d, x)`", below, as `FILL(a, 0)`; `BYTES` is for its
1954-bytes as such.
1958+the compiler. It breaks nothing. With "Filling bytes: `Bytes.fill`", below, an array
1959+of words is zeroed as `Bytes.fill(BYTES(a), 0)`.
19551960
19561961 Met in raudio, surco and rcrypto.
19571962
@@ -2116,7 +2121,7 @@
21162121
21172122 ## Sys for files and memory
21182123
2119-**Status.** Proposed 2026-10-22, collated from RAZ-GAPS.md.
2124+**Status.** Approved by the owner on 2026-10-23 and implemented in both backends, all items: `mapRead`, `protect`, and `open`, `openMode`, `openRead`, `create` and `openDir` closing on exec, with `keepOnExec(fd, true)` to keep one.
21202125
21212126 Library growth, but the last item changes what `open` does, so it
21222127 needs the owner's word on whether that counts as breaking. Each item
@@ -2218,7 +2223,7 @@
22182223
22192224 ## Sys for signals and the process
22202225
2221-**Status.** Proposed 2026-10-22, collated from RAZ-GAPS.md.
2226+**Status.** Approved by the owner on 2026-10-23 and implemented in both `Sys` backends and `Rt`, all four: `ignored`, `findEnv` (which `env` is written over), `processors` and `Rt.exitStatus`.
22222227
22232228 Library growth that breaks no program. The first three are in both
22242229 `Sys` backends; the last is in `Rt`.
@@ -2274,7 +2279,7 @@
22742279
22752280 ## Numbers in the library
22762281
2277-**Status.** Proposed 2026-10-22, collated from RAZ-GAPS.md.
2282+**Status.** Approved in part by the owner (2026-10-22 and 23) and implemented: `Str.toU64`, `Math.tanh`, `Math.roundEven`, `Fmt.short` and `Fmt` writing `E`. `ABS`, `min`, `max` and `clamp` wait.
22782283
22792284 ### An unsigned decimal reader: `Str.toU64`
22802285
@@ -2488,7 +2493,7 @@
24882493
24892494 ## Strings, base64 and text for C
24902495
2491-**Status.** Proposed 2026-10-22, collated from RAZ-GAPS.md.
2496+**Status.** Approved by the owner on 2026-10-23 and implemented in `lib/Str.raz` and `lib/Fmt.raz`: `fromC`, `toC`, `base64With` and `unbase64With` with `Base64` and `Base64Url`, and `Fmt.into`.
24922497
24932498 ### A slice of a C string, and a C string of a slice
24942499
@@ -2573,7 +2578,7 @@
25732578
25742579 ## `Opt`
25752580
2576-**Status.** Proposed 2026-10-22, collated from RAZ-GAPS.md.
2581+**Status.** Approved by the owner on 2026-10-23 and implemented in `lib/Opt.raz`, both.
25772582
25782583 ### A negative number as an operand
25792584