News for hackers. Stuff that matters.
Re:Pony: An actor-model, capabilities-secure, high-performan... by alfanerd on Tuesday July 29, 2025 @06:45AM (#44721616)
I think you only need one queue per actor? And then one worker per CPU core? I believe that how Erlang does it, and do millions of actors without any issues...
Re:Pony: An actor-model, capabilities-secure, high-performan... by gpderetta on Tuesday July 29, 2025 @06:52AM (#44721673)
Yes, but now you have contention on the queue.
Re:Pony: An actor-model, capabilities-secure, high-performan... by ramchip on Tuesday July 29, 2025 @08:34AM (#44722542)
The way Erlang does it is to use buckets so it looks like a single queue to the user code but really is more like multiple queues behind the scene. Scales extremely well. It's certainly not "just moving a pointer to a piece of shared memory" though...

https://www.erlang.org/blog/parallel-signal-sending-optimiza...