33 ms·
Python could do green threads (IO-base coroutines) for a long time -- see eventlet, gevent, even Twisted's inlineCallback pattern. There are probably others, th
by rdtsc 11y ago
Python could do green threads (IO-base coroutines) for a long time -- see eventlet, gevent, even Twisted's inlineCallback pattern. There are probably others, there was even one based on "yields" as well.
- duaneb 11y agoStackless python pairs well with green threads. Very, very well. I believe pypy based a lot of their initial work on the design of stackless python.
- rdtsc 11y agoYap, I've used and shipped code based on eventlet. And you are right PyPy supports that as well. I have never tested it using PyPy. Perhaps one day. For large concurrency cases I would probably look at Erlang/Elixir though...