Re:Asyncio: A library with too many sharp corners
by icedchai on Sunday July 27, 2025 @11:50AM
(#44702195)
I worked quite a bit with gevent'd code about 10+ years ago and also agree. Dealing with function coloring is incredibly non productive. This is one of the things "go" got right.
[ Parent
| on HN ]
Re:Asyncio: A library with too many sharp corners
by pas on Sunday July 27, 2025 @06:52PM
(#44705453)
the sans-IO approach seems roughly correct
libraries provide pure processing machines that pull data in through well defined input functions (and output through return), and then it's up to the callsite (or host code or however we want to call our code) to decide what kind of color to paint the whole thing eventually.
this helps testability and composability too.
(of course this is not new, there was Scala's Iteratee and there's full program interpretation ... https://zio.dev/1.0.18/overview/overview_background/ )