zlay.waow.tech has been running (mostly) smoothly on zat v0.3.0-alpha.21 for coming up on a day! this is significant for 2 reasons
Post
1. CBOR/CAR/MST correctness hardening by @calabro.io (i believe i managed to preserve authorship on your commits, ty!) — so RFC 8949 compliance, overflow-safe arithmetic, map key validation, UTF-8 checks. frame decode throughput drops from ~290k to ~202k fps (but is still 13x faster than indigo)
2. zig 0.16 (dev)! in particular zlay now uses an evented backend (instead of threaded) based on the new Io interface — it runs ~2,800 PDS subscriber fibers on ~47 OS threads (instead of OS thread per PDS). seems to idle at about ~1.5 GiB RSS and ~1 core... (~20% less mem) still watching things.
0 reposts1 like
the full migration write-up (nine crashes, cross-Io debugging, a websocket bug masquerading as a fiber bug) is laid out by the latest devlog entry: zat.dev/#devlog/008-the-io-migration.md and zat.dev got a fresh coat of paint / better mobile support!