Skip to content

docs(r06): Parts 6-7 — Networking, Concurrency in Depth - #6

Merged
patterncatalyst merged 1 commit into
mainfrom
docs/r06-parts-6-7
Jul 19, 2026
Merged

patterncatalyst merged 1 commit into
mainfrom
docs/r06-parts-6-7

Conversation

@patterncatalyst

Copy link
Copy Markdown
Owner

Chapters 21-27 + 7 tri-language examples. chatterd grows v0→v4 on ONE unified wire frame (adversarial validation caught an initial 5-way protocol drift; remediated so a v0 client interoperates with v1/v4 servers across all three languages — verified live). Two-VM UDP peer discovery (ch23) on systems-target+systems-peer. workq (futex, sanitizer race demos), spscring (lock-free, false sharing measured). Also hardens ch20's liveness check. 78/78 matrix PASS.

chatterd v0-v4 on one unified wire frame (magic CH + version + type +
BE u16 length; JOIN/MSG/DELIVER/WELCOME/PING added by type across versions,
never replaced) — TCP room, epoll scaling vs netpoller, two-VM UDP peer
discovery, heartbeats/deadlines, async rewrite (coroutines/tokio/goroutines);
workq (futex + TSan/-race), spscring (lock-free, false sharing). 16 diagram
pairs. Also hardens ch20 liveness check (kill -0 by PID, not pgrep -f).

Adversarial validation caught cross-version wire drift; remediated and
interop verified live (v0 client <-> v1/v4 server, cross-language). 78/78.
@patterncatalyst
patterncatalyst merged commit 96de62f into main Jul 19, 2026
8 checks passed
@patterncatalyst
patterncatalyst deleted the docs/r06-parts-6-7 branch July 19, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant