by 2RTZZSro · 8y ago · 0 comments
There's also nailgun for Java which sounds like it works a little differently: http://martiansoftware.com/nailgun/
The idea of keeping persistent interpreters doesn't really work for Python because the interpreter is full of state in places you'd never expect -- it's hard to reset the interpreter to a sane state after it ran some unknown program.
Also, could it be that Intel's cache hierarchy plays some really smart tricks behind the scenes, to make this fast?
https://github.com/tbug/aiochannel
I also think David Baezlys curio has a wonderful way of explaining the same concept
http://curio.readthedocs.io/en/latest/reference.html#module-...
Asyncio has enabled his sort of programming a lot easier. You could do the same thing I imagine with multiprocessing and Threadpools I imagine