57 minutes ago · 5 min read1013 words · Tech · hide · 0 comments

Zig’s Io.Threaded is Neat Aug 6, 2026 std.Io.Threaded is one of the implementations of Zig’s new Io interface that enables concurrency. This is a boring “just use threads” impl. I personally find it neat though — it does this weird thing that I wanted to do for ages, that to my knowledge no one else is doing properly, and implements it better than I thought to be possible. Io.Threaded uses blocking syscalls and fully supports cancelation. Concurrency vs Parallelism Quoting @tedinski, Concurrency is about handling (asynchronous, nondeterministic) events. Parallelism is about using hardware resources to do more at the same time. I think this definition is correct, but doesn’t provide useful intuition directly. Concurrency is the same thing as state transducers? Yes, obviously, but not really illuminating as to how you’d program the thing. For intuition, I like these two litmus tests. First, parallelism is deterministic or “declarative”: use rayon::prelude::*; fn sum_of_squares(input:…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.