Skip to content

Categorical Message Passing Language (CaMPL): Syntax and Semantics

Sep 2026 · arXiv.org · Vol abs/2609.24436 · 0 citations
Computer Science

TL;DR

This work introduces a novel functional-style concurrent programming language called Categorical Message Passing Language (CaMPL), designed using the mathematics of linear actegories, which gives CaMPL programs useful properties such as deadlock freedom and livelock freedom for programs without general recursive processes.

Abstract

We introduce a novel functional-style concurrent programming language called Categorical Message Passing Language (CaMPL) which is designed using the mathematics of linear actegories. This mathematical underpinning gives CaMPL programs useful properties such as deadlock freedom, and additionally, livelock freedom for programs without general recursive processes. We explore CaMPL's type system through a series of code examples. The current proto-alpha version of the compiler and the abstract machine is implemented in Haskell. A reader is encouraged to experiment with writing CaMPL programs either using the online compiler https://campl-app.vercel.app/ or by installing CaMPL from https://campl-ucalgary.github.io -- our website has detailed instructions on how to run CaMPL code.

View source

Similar papers

Preprint Oct 2026

On the Expressiveness of Asynchronous Processes with Nested Session Types (Extended Version)

Session types are a type-based approach to correct message-passing programs, where types specify protocols for channels and type checking guarantees communication correctness. Traditional session types express regular protocols only, which leaves out many protocols found in practice. Aiming at overcoming this limitatio...

Sjors Wortelboer, D. Frumin, Jorge A. Pérez · 0 citations
Preprint Oct 2026

The Reversible Intermediate Language L4, its Type System, and its Bidirectional Small-Step Semantics

L4 is a generic, reversible, linearly-typed, low-level language intended as an intermediate language for compiling reversible programming languages to reversible machines. L4 is intended to replace and generalise RSSA, a reversible SSA form. Inspiration is drawn from other low-level reversible languages such as HSSA. I...

T. Mogensen · 0 citations
Open access Oct 2026

Programming with Composable Recursive Patterns and Transformations

Data processing using traditional pattern matching syntax and direct recursive functions is straightforward to write but becomes awkward in ambiguous (i.e., nondeterministic) cases: when programmers wish to avoid backtracking, they often end up having to write complicated code that sacrifices clarity and modularity. Ho...

Lu-Yu Cheng, Florent Ferrari, Michael D. Adams et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.