| | @@ -1353,6 +1353,8 @@ |
| 1353 | 1353 | |
| 1354 | 1354 | ## Sys for a server |
| 1355 | 1355 | |
| 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 | + |
| 1356 | 1358 | Library growth that breaks no program. Programs that serve sockets |
| 1357 | 1359 | (rabble's relay and daemon, dwa's broker, rdbus, awizo, arno's te |
| 1358 | 1360 | protocol) each declare a few C procedures or make system calls with |
| | @@ -1515,6 +1517,8 @@ |
| 1515 | 1517 | Settled by "One exponent letter: `Fmt` writes `E`", below. |
| 1516 | 1518 | |
| 1517 | 1519 | ## 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. |
| 1518 | 1522 | |
| 1519 | 1523 | A conversion through a pointer type's name is a designator, so |
| 1520 | 1524 | selectors follow it: with `PR = ^R` and `PU = ^U8`, `PR(ADR(r))^.b` |
| | @@ -1567,6 +1571,8 @@ |
| 1567 | 1571 | |
| 1568 | 1572 | ## `OFFSET(T, f)`, and `SIZE` of a field |
| 1569 | 1573 | |
| 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 | + |
| 1570 | 1576 | A record handed to C by pointer must match C's struct byte for byte; |
| 1571 | 1577 | a field one word off is read wrong with no error. mosaico and rx11 test |
| 1572 | 1578 | their Xlib records against C's `offsetof` and `sizeof`, and today |
| | @@ -1805,7 +1811,7 @@ |
| 1805 | 1811 | |
| 1806 | 1812 | ## Two warnings |
| 1807 | 1813 | |
| 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`. |
| 1809 | 1815 | |
| 1810 | 1816 | Compiler warnings, which are the implementation's own (10, appendix |
| 1811 | 1817 | A): no change to the report, and `-Werror` builds break only where the |
| | @@ -1839,7 +1845,7 @@ |
| 1839 | 1845 | |
| 1840 | 1846 | ## A `BOOL` as an integer: `INT(b)` |
| 1841 | 1847 | |
| 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. |
| 1843 | 1849 | |
| 1844 | 1850 | Moved here from the list of what to leave out, because three programs |
| 1845 | 1851 | met it and one of them for a reason an `if` can't serve. 6.7 says |
| | @@ -1911,7 +1917,7 @@ |
| 1911 | 1917 | |
| 1912 | 1918 | ## The bytes of a variable or a slice: `BYTES(x)` |
| 1913 | 1919 | |
| 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. |
| 1915 | 1921 | |
| 1916 | 1922 | A view, `v.(T)`, reads one value from bytes, and can't be sliced, |
| 1917 | 1923 | since it has no address (6.9). So a program that has words and wants |
| | @@ -1949,9 +1955,8 @@ |
| 1949 | 1955 | The bytes are in the target's order (appendix A), as a view's are. |
| 1950 | 1956 | |
| 1951 | 1957 | 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)`. |
| 1955 | 1960 | |
| 1956 | 1961 | Met in raudio, surco and rcrypto. |
| 1957 | 1962 | |
| | @@ -2116,7 +2121,7 @@ |
| 2116 | 2121 | |
| 2117 | 2122 | ## Sys for files and memory |
| 2118 | 2123 | |
| 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. |
| 2120 | 2125 | |
| 2121 | 2126 | Library growth, but the last item changes what `open` does, so it |
| 2122 | 2127 | needs the owner's word on whether that counts as breaking. Each item |
| | @@ -2218,7 +2223,7 @@ |
| 2218 | 2223 | |
| 2219 | 2224 | ## Sys for signals and the process |
| 2220 | 2225 | |
| 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`. |
| 2222 | 2227 | |
| 2223 | 2228 | Library growth that breaks no program. The first three are in both |
| 2224 | 2229 | `Sys` backends; the last is in `Rt`. |
| | @@ -2274,7 +2279,7 @@ |
| 2274 | 2279 | |
| 2275 | 2280 | ## Numbers in the library |
| 2276 | 2281 | |
| 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. |
| 2278 | 2283 | |
| 2279 | 2284 | ### An unsigned decimal reader: `Str.toU64` |
| 2280 | 2285 | |
| | @@ -2488,7 +2493,7 @@ |
| 2488 | 2493 | |
| 2489 | 2494 | ## Strings, base64 and text for C |
| 2490 | 2495 | |
| 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`. |
| 2492 | 2497 | |
| 2493 | 2498 | ### A slice of a C string, and a C string of a slice |
| 2494 | 2499 | |
| | @@ -2573,7 +2578,7 @@ |
| 2573 | 2578 | |
| 2574 | 2579 | ## `Opt` |
| 2575 | 2580 | |
| 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. |
| 2577 | 2582 | |
| 2578 | 2583 | ### A negative number as an operand |
| 2579 | 2584 | |