Category Theory
Zulip Server
Archive

You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.


Stream: learning: questions

Topic: Categories applied to interprocess communication


view this post on Zulip Ryan Schwiebert (Apr 30 2024 at 20:28):

I think someone must have already probed how to use category theory to frame interprocess communication, or messaging schemes.

What I have in mind is like communication via AMQP or maybe within a ROS2 graph.

There are nodes which can send each other messages. There are different ways to send messages. Sometimes it's enough that one node attempts to message another and is done with the task. At other times, the sending node wants an acknowledgement (or nack) before it finishes the transaction.

And possibly either side of the communication may want to do something differently depending on the success of the transaction.

Has anyone seen any exploration of this kind of the whole ecosystem of messaging? I would appreciate pointers to the most basic parts of it.

view this post on Zulip Spencer Breiner (Apr 30 2024 at 23:18):

Here's one:
The Produoidal Algebra of Process Decomposition

Matt Earnshaw, James Hefford, Mario Román
https://arxiv.org/abs/2301.11867v1

view this post on Zulip Ryan Schwiebert (May 01 2024 at 02:46):

Nice! How familiar are you with this article @Spencer Breiner

view this post on Zulip Chad Nester (May 01 2024 at 10:26):

Isolating individual agents (nodes) is, if you ask me, a bit awkward in a compositional setting. Loosely, if my systems are composable then a composite system needs to be the same sort of thing as a single node.

view this post on Zulip Chad Nester (May 01 2024 at 10:30):

I really like Span(RGraph) model of Walters et al. (This, for example)

I'll also mention the Logic of Message Passing (This) and my own work on the free cornering of a monoidal category, which is similar. (For example, this and this).

view this post on Zulip Chad Nester (May 01 2024 at 10:31):

Oh also Milner's bigraphs come to mind, although personally I find them unsatisfying.

view this post on Zulip Spencer Breiner (May 01 2024 at 11:42):

Ryan Schwiebert said:

Nice! How familiar are you with this article Spencer Breiner

Only a bit. If I remember correctly, the main idea is that you can use the machinery of optics (based on coends) to include "holes" in a process that correspond to sending/receiving messages from other nodes in a network.

view this post on Zulip Ryan Schwiebert (May 02 2024 at 11:24):

The bigger picture is that I am trying to understand what "Applied" category theory can do in different contexts. As a mathematician now working in software, I can see lots of places where it might be applied, but I have little feel for what kind of benefit is available, or how to spot a potential application.

view this post on Zulip Dylan Braithwaite (May 10 2024 at 09:10):

I've had this paper on my to-read pile for a while, it seems like it might also be relevant: On the Semantics of Message Passing Processes - Lindsay Errington