logoalt Hacker News

adrian_b • yesterday at 2:58 PM • 1 reply • view on HN

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.


Replies

antonvs • yesterday at 5:16 PM

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.