raz / commit 9c41f2f4

commit
9c41f2f4cf2990b358abb9ccb7d024b0528c73df
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
f871b244
release
v0.12.0
Docs for v0.12.0: report 2026-10.24, Sys's sockets and sharing, Thread with C

PROPOSALS loses the four met in rnet, now built.

patch · log

3 files changed, +5 -49

CLAUDE.md modified +1 -1

@@ -78,7 +78,7 @@
7878
7979 ## Where things stand
8080
81-v0.11.1, report 2026-10.23, is the latest release. `src/` is the
81+v0.12.0, report 2026-10.24, is the latest release. `src/` is the
8282 compiler in raz, built by itself (Self, done); the seed in `seed/` is
8383 frozen, and v0.9.1 was the last release it built. The compiler takes
8484 1.4 times the Pascal one's time; `make kernels` measures `test/bench`

PROPOSALS.md modified +0 -44

@@ -14,47 +14,3 @@
1414 (about 130 bytes) became a value parameter, copied at every call.
1515 Measured once the port built: not what stands out, the compiler's
1616 profile is flat (`Scan.tokPos` is 9%).
17-
18-## A UDP socket that serves
19-
20-`proc listenUdp*(addr: []U8; port: INT): INT;`, a socket of datagrams
21-bound to `port` at `addr`, with `receive*(fd: INT; buf: []U8): (INT,
22-Peer)` and `reply*(fd: INT; to: Peer; s: []U8): INT` to answer whoever
23-sent each one. `connectUdp` talks to one server; nothing lets a program
24-be one.
25-
26-Met in rnet, whose `Dns` test serves a name server on the loopback:
27-`test/Nameserver.raz` binds and answers with `SYSCALL`s of its own,
28-which tie it to Linux.
29-
30-## A socket's own port
31-
32-`proc localPort*(fd: INT): INT;` (getsockname), so that a program can
33-listen on port 0, take the port the system chose, and tell it to its
34-client. Without it, a test picks a port and tries again while one is
35-taken.
36-
37-Met in rnet's tests, which pick ports from the process id and retry.
38-
39-## Connecting with a timeout
40-
41-`proc connectTcpWithin*(addr: []U8; port, ms: INT): INT;`: a
42-connection that fails with -110 (ETIMEDOUT) after `ms` milliseconds,
43-by a non-blocking connect and a wait for the socket to be writable.
44-`connectTcp` waits as long as the kernel does, minutes for a host that
45-drops the connection's first packet.
46-
47-Met in rnet: `Conn.dial`, and `Dns` over TCP to a name server that has
48-gone, can hold a program up that long.
49-
50-## Thread in a program with C
51-
52-`Thread` says `link static`, so a program with C can't have it, and
53-makes its threads with `C.pthread_create`, whose start procedure has
54-another signature. A library that starts threads, and may be used by
55-programs with C and without, can't name either: `Thread` could have a
56-second file, over `pthread_create` and `pthread_join`, chosen when the
57-program uses C, with the same `spawn` and `join`.
58-
59-Met in rnet: `Http`'s server is used with `Tls`, which is C, and
60-without; it takes a `spawn` procedure from the program instead.

README.md (history) modified +4 -4

@@ -198,16 +198,16 @@
198198 The compiler says its own version and that of the report it follows:
199199
200200 $ ./raz --version
201- raz 0.11.1, report 2026-10.23
201+ raz 0.12.0, report 2026-10.24
202202
203203 The compiler's version is git's name for the commit it was built from:
204-`0.11.1` at the tag `v0.11.1`, `0.11.1-5-g38d29a8` five commits past it.
204+`0.12.0` at the tag `v0.12.0`, `0.12.0-5-g38d29a8` five commits past it.
205205 To release, check `main` and tag it; the tag's message is what
206206 `raz --version` will print:
207207
208208 $ make check
209- $ git tag -a v0.11.1 -m 'raz 0.11.1, report 2026-10.23'
210- $ git push origin v0.11.1
209+ $ git tag -a v0.12.0 -m 'raz 0.12.0, report 2026-10.24'
210+ $ git push origin v0.12.0
211211
212212 GitHub then builds and checks the tag, and makes a release of it with
213213 a tarball of `raz`, its `lib/` and its manual pages, made by `make