108 days ago · 5 min read1013 words · Tech · hide · Fediverse post

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:…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town