Back to search

Graduate Studies

Higher-Order Message Passing in CaMPL

Abstract

dc:description.abstract

The Categorical Message Passing Language (CaMPL) is a statically-typed concurrent programming language. The sequential side of CaMPL is functional in style, and the concurrent side uses message passing as its core communication model in contrast to shared memory. The semantics of CaMPL lies in a linear actegory which is a linearly distributive category with a distributive monoidal category acting on it. To implement higher-order functions such as map or fold on the concurrent side, or to define concurrent type classes in CaMPL, it is necessary to pass processes as arguments to other processes. Although this ability is already present in any closed linear type system, such as CaMPL’s, supporting arbitrary recursive process definitions requires the ability to reuse passed processes. However, concurrent resources in CaMPL are linear and therefore cannot be duplicated. As a result, passing processes as linear closures does not provide the required flexibility. To solve this issue, one must pass processes as sequential data. This enables a process to receive another process as a sequential input or to transmit it as a message over a channel. However, this means that one must be able to convert a process into sequential data, and also be able to convert it back into a callable concurrent process. Categorically, this means that the concurrent side is enriched in its sequential side, with hom-objects in the sequential category representing stored processes. The abstract categorical machinery that characterizes the storing of concurrent processes as sequential data, and the using of the stored processes is the theory of copowers. This characterizes what we understand to be higher-order message passing. In this thesis, we prove that giving a right-enriched category with copowers is equivalent to giving a right actegory with hom-objects. While this result is known in the closed symmetric setting, our contribution extends the equivalence to non-closed and non-symmetric monoidal settings. This generalization is motivated by the semantics of higher-order message passing in CaMPL, which need not to be closed. We have also implemented the store and use language constructs in CaMPL’s compiler and abstract machine and we describe the changes made to each stage of CaMPL’s compiler in order to support this extension.

Degree

thesis:*
Name thesis:degree_name
Master of Science (MSc)
Discipline thesis:degree_discipline
Computer Science
Grantor dc:publisher.institution
Graduate Studies
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Norouzbeygi, Melika
Advisor dc:contributor.advisor
  • Cockett, Robin
Committee members dc:contributor.committeemember
  • Bauer, Kristine
  • Woelfel, Philipp

Subjects

dc:subject × 3

Rights

dc:rights
Statement dc:rights
  • University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission.
Language dc:language.iso
en

Identifiers

dc:identifier.*
Dc Identifier Citation
Norouzbeygi, M. (2025). Higher-order message passing in CaMPL (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca.

Chain of custody

source
Harvested from
University of Calgary
Base URL
ucalgary.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Norouzbeygi, Melika. Higher-Order Message Passing in CaMPL. Graduate Studies, 2025. https://hdl.handle.net/1880/122921