One and a half colors
One and a half colors
Posted Dec 3, 2025 13:56 UTC (Wed) by smurf (subscriber, #17840)In reply to: One and a half colors by khim
Parent article: Zig's new plan for asynchronous programs
Two colors because one has "async" and one has not, or one requires a somewhat-special "Io" and one does not.
Variants (shades of a color, if you'd like) are of course a related problem. Rust isn't the only language that has more than one mostly-incompatible async variant. Python has two (asyncio and trio (*)), and a third (anyio) which provides an API that runs on top of both of them. Also you can run trio on top of asyncio (in guest mode) and vice versa (trio-asyncio). All in all that makes the situation annoying but somewhat manageable.
(*) OK so there's also curio and Twisted and whatnot. Details.
