Feb
16
Greenlets vs. explicit coroutines
I haven't posted anything new in a couple years (partly because I attempted to move to a different blogging platform where I could write everything in markdown instead of HTML but got frustrated—which I may attempt again), but I've had a few private comments and emails on some of the old posts, so I decided to do some followups.
A couple years ago, I wrote a blog post on greenlets, threads, and processes. At that time, it was already possible to write things in terms of explicit coroutines (Greg Ewing's original yield from proposal already had a coroutine scheduler as an example, Twisted already had @inlineCallbacks, and asyncio had even been added to the stdlib), but it wasn't in heavy use yet.
A couple years ago, I wrote a blog post on greenlets, threads, and processes. At that time, it was already possible to write things in terms of explicit coroutines (Greg Ewing's original yield from proposal already had a coroutine scheduler as an example, Twisted already had @inlineCallbacks, and asyncio had even been added to the stdlib), but it wasn't in heavy use yet.