4 ms·
There are a few gotchas with actors: * they really do need M:N threading (M green threads for the actors, N system threads where N ~= #CPUs), * message queues
by mcguire 8y ago
There are a few gotchas with actors:
* they really do need M:N threading (M green threads for the actors, N system threads where N ~= #CPUs),
* message queues have some complexities; it's not hard to get into a situation where messaging costs overwhelm actual work. Also, you need some form of back-pressure to keep a fast producer/slow consumer from killing everything.
Pony is actually a pretty sweet design for all of these. Complicated, though.