|
|
Log in / Subscribe / Register

One and a half colors

One and a half colors

Posted Dec 2, 2025 23:02 UTC (Tue) by sionescu (subscriber, #59410)
In reply to: One and a half colors by excors
Parent article: Zig's new plan for asynchronous programs

Correct. It still has two colours, and still suffers from a lack of preemption, so a CPU-bound code block can still starve an async worker thread. Sucks as much as the other approaches (Rust, Go), just in a slightly different flavour.


to post comments

One and a half colors

Posted Dec 3, 2025 2:55 UTC (Wed) by Cyberax (✭ supporter ✭, #52523) [Link]

Go can actually pre-empt computation-heavy goroutines. It's implemented using signals: https://github.com/golang/proposal/blob/master/design/245...


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds