From 9c41f2f4cf2990b358abb9ccb7d024b0528c73df Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Wed, 14 Oct 2026 15:18:35 +0100 Subject: [PATCH] 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. --- diff --git a/CLAUDE.md b/CLAUDE.md index d941535..23161b3 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -78,7 +78,7 @@ ## Where things stand -v0.11.1, report 2026-10.23, is the latest release. `src/` is the +v0.12.0, report 2026-10.24, is the latest release. `src/` is the compiler in raz, built by itself (Self, done); the seed in `seed/` is frozen, and v0.9.1 was the last release it built. The compiler takes 1.4 times the Pascal one's time; `make kernels` measures `test/bench` diff --git a/PROPOSALS.md b/PROPOSALS.md index 548b47d..1edb268 100644 --- a/PROPOSALS.md +++ b/PROPOSALS.md @@ -14,47 +14,3 @@ (about 130 bytes) became a value parameter, copied at every call. Measured once the port built: not what stands out, the compiler's profile is flat (`Scan.tokPos` is 9%). - -## A UDP socket that serves - -`proc listenUdp*(addr: []U8; port: INT): INT;`, a socket of datagrams -bound to `port` at `addr`, with `receive*(fd: INT; buf: []U8): (INT, -Peer)` and `reply*(fd: INT; to: Peer; s: []U8): INT` to answer whoever -sent each one. `connectUdp` talks to one server; nothing lets a program -be one. - -Met in rnet, whose `Dns` test serves a name server on the loopback: -`test/Nameserver.raz` binds and answers with `SYSCALL`s of its own, -which tie it to Linux. - -## A socket's own port - -`proc localPort*(fd: INT): INT;` (getsockname), so that a program can -listen on port 0, take the port the system chose, and tell it to its -client. Without it, a test picks a port and tries again while one is -taken. - -Met in rnet's tests, which pick ports from the process id and retry. - -## Connecting with a timeout - -`proc connectTcpWithin*(addr: []U8; port, ms: INT): INT;`: a -connection that fails with -110 (ETIMEDOUT) after `ms` milliseconds, -by a non-blocking connect and a wait for the socket to be writable. -`connectTcp` waits as long as the kernel does, minutes for a host that -drops the connection's first packet. - -Met in rnet: `Conn.dial`, and `Dns` over TCP to a name server that has -gone, can hold a program up that long. - -## Thread in a program with C - -`Thread` says `link static`, so a program with C can't have it, and -makes its threads with `C.pthread_create`, whose start procedure has -another signature. A library that starts threads, and may be used by -programs with C and without, can't name either: `Thread` could have a -second file, over `pthread_create` and `pthread_join`, chosen when the -program uses C, with the same `spawn` and `join`. - -Met in rnet: `Http`'s server is used with `Tls`, which is C, and -without; it takes a `spawn` procedure from the program instead. diff --git a/README.md b/README.md index 13b24f3..512fc36 100644 --- a/README.md +++ b/README.md @@ -198,16 +198,16 @@ The compiler says its own version and that of the report it follows: $ ./raz --version - raz 0.11.1, report 2026-10.23 + raz 0.12.0, report 2026-10.24 The compiler's version is git's name for the commit it was built from: -`0.11.1` at the tag `v0.11.1`, `0.11.1-5-g38d29a8` five commits past it. +`0.12.0` at the tag `v0.12.0`, `0.12.0-5-g38d29a8` five commits past it. To release, check `main` and tag it; the tag's message is what `raz --version` will print: $ make check - $ git tag -a v0.11.1 -m 'raz 0.11.1, report 2026-10.23' - $ git push origin v0.11.1 + $ git tag -a v0.12.0 -m 'raz 0.12.0, report 2026-10.24' + $ git push origin v0.12.0 GitHub then builds and checks the tag, and makes a release of it with a tarball of `raz`, its `lib/` and its manual pages, made by `make