Hacker News new | ask | show | jobs
by adrian_b 2 days ago
I completely agree with what you say.

As I have already said in another comment, I assume that the poster to which I have replied meant to say that the COBOL queues are many-to-many message queues, which are distinguished from many-to-one message queues exactly as you describe.

However the original comment was not clear, because the difference in behavior in comparison with actors is not given by the existence or non-existence of queues, which must always exist for message passing, but in the important differences both in implementation techniques and in their behavior, between many-to-one queues and many-to-many queues.

1 comments

I explicitly mentioned that each actor manages it's own queue, I didn't say anything about the non-existence of queues.

The distinction is between the use of queues shared between tasks and queues that are owned, and only readable by, each individual task (actor).

Another point about all this is that actors aren't just a concurrency mechanism that you can use or not as you see fit. They're a fundamental unit out of which entire applications are built. There are no function calls between actors, only message passing. This provides useful global concurrency safety properties that other systems can't match unless they essentially reimplement some similar model throughout the system.

What I'm getting at here is it's not just the properties of the individual queues that matter, but how the model is applied and enforced system-wide.

So how does the conversation change when messaging channels are no longer explicitly modeled as external resources?
The third paragraph of my previous comment touches on this. Actors provide a different paradigm with some useful global properties. The OP article is also exploring this: avoiding OS threads and their various rather risky footguns, as well as improving efficiency by avoiding kernel interaction.

I think the biggest issue is that just seeing it as a particular arrangement of message queues is focusing too much on an implementation detail and missing how the overall architecture, of a collection of self-contained isolated actors communicating only via messages, affects concurrency properties and overall system robustness and reliability.

In my original long comment in this thread, I pointed out that IBM’s original CICS system for mainframes got close to doing something like this, but ultimately failed because they didn’t have the necessary task isolation or preemption. The solution back then was to switch to using OS threads, but that has various costs. The actor model forks off that decision point in a different, quite promising direction.