Categorical Message Passing Language (CaMPL): Syntax and Semantics
Robin Cockett, Daniel Kiyoshi Hashimoto, Alexanna Little Berg, Priyaa Varshinee Srinivasan
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.
Create a lesson
Metadata
- Categories
- cs.PL, cs.DC, cs.LO
- Comments
- 54 pages
Related papers
Formalizing a Syntax-Directed Graph Rewriting Language in Rocq
Shared title terminologycs.PLNaoki Yamamoto, Kazunori Ueda
The Reversible Intermediate Language L4, its Type System, and its Bidirectional Small-Step Semantics
Shared title terminologycs.PLTorben Ægidius Mogensen
Predicting Program Exit Code with LLMs and Programming Language Semantics
Shared title terminologycs.PLLara Marinov, Aditya Thimmaiah, Jayanth Srinivasa et al.
SimP: Unifying Syntax- and Semantic-Guided Techniques for Efficient Program Reduction
Shared title terminologycs.PLYe Xiong, Xiangyu Gao, Qiaochu Chen et al.
Can Large Language Models Recover Semantic Optimization Opportunities That Compilers Miss?
Shared title terminologycs.PLHailong Jiang, Feng Yu, Emran Hossain et al.
STAPIN and PinSight: Extending Intel Pin with Source-Level Semantics for AI-Assisted Program Analysis
Shared title terminologycs.PLHarish Patil, Idan Shalom, Pablo Sebastian Cabot et al.