3 ms·
> to get the benefits of shared nothing, "green thread"/"VM internal processes" ... Stackless Python It is shared everything isn't it. Greenlet is core which
by rdtsc 11y ago
> to get the benefits of shared nothing, "green thread"/"VM internal processes" ... Stackless Python
It is shared everything isn't it. Greenlet is core which was extracted out of stackless and both gevent and eventlet are based on it. Can get lightweight concurrency units sure. That's very far from Erlang.
To put it another way a thread (even a green one) + a thread safe queue does not an Erlang make ;-)
But is a popular trope usually, when frameworks claim "we do Erlang" it often means that.
Some of the things Erlang has can be found in various languages and frameworks. The best approximation is actually -- an operating system. OS processes are closest to how Erlang works. They are isolated from each other. Can have systemd or other things supervise them. Can send messages via pipes, unix sockets, files etc. But can't have 1M of those running.
Then like you mentioned can have green threads in other languages. But can't have low latency GC, CPU scaling, isolated memory for each concurrency unit. So not quite there.
> The Pulsar framework- https://pythonhosted.org/pulsar/ https://pythonhosted.org/pulsar/
That does look pretty cool. I'll have to take a look. Thanks for the link!