3 ms·
> Greenlets are similar to coroutines [...] the async ecosystem in Python is fractured in two big groups. Async in software development in general is fractured
by pansa2 6y ago
> Greenlets are similar to coroutines [...] the async ecosystem in Python is fractured in two big groups.
Async in software development in general is fractured in two big groups. On the one hand languages like C#, C++ and Dart support (stackless) coroutines like Python’s - and on the other hand, Go, Java and Lua support stackful coroutines that are more like Python’s greenlets.
There are pros and cons to each approach. I wonder if one or the other will eventually become dominant.
- BorisTheBrave 6y agoWhat is Java's support for "stackful coroutines"?
- gpderetta 6y agoto be fair, stackless coroutines are in the C++ language because they require language support. There are also options for stackful coroutines and of course good old threads.