{"id":{"repo_id":"calgary","oai_identifier":"oai:ucalgary.scholaris.ca:1880/122921"},"canonical_url":"https://search.ndltd.org/etd/calgary/oai:ucalgary.scholaris.ca:1880/122921","repository":{"repo_id":"calgary","name":"University of Calgary","base_url":"https://ucalgary.scholaris.ca/server/oai/request"},"display":{"title":"Higher-Order Message Passing in CaMPL","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.","abstract_html":"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.","abstract_has_math":false,"creators":["Norouzbeygi, Melika"],"institution":"Graduate Studies","degree_name":"Master of Science (MSc)","degree_level":null,"degree_discipline":"Computer Science","degree_department":null,"school":null,"contributors":[],"advisors":["Cockett, Robin"],"committee_chairs":[],"committee_members":["Bauer, Kristine","Woelfel, Philipp"],"year":2025,"date_issued":"2025-09-15","date_published":"2025-09-15","updated_at":"2026-11-19T07:30:43Z","subjects":["Concurrency","Message Passing","Actegory"],"languages":["en"],"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."],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1880/122921"],"render_values":[{"text":"https://hdl.handle.net/1880/122921","href":"https://hdl.handle.net/1880/122921","code":true}]},{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Norouzbeygi, M. (2025). Higher-order message passing in CaMPL (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca."],"render_values":[{"text":"Norouzbeygi, M. (2025). Higher-order message passing in CaMPL (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca.","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.11575/PRISM/50515","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.11575/PRISM/50515","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Acalgary%3Aoai%3Aucalgary.scholaris.ca%3A1880%2F122921","prefix":"oai_dc"},"source_record":{"url":"https://ucalgary.scholaris.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aucalgary.scholaris.ca%3A1880%2F122921","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Cockett, Robin"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Bauer, Kristine","Woelfel, Philipp"]},{"key":"dc:creator","label":"Author","values":["Norouzbeygi, Melika"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2025-11"]},{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-09-23T19:25:52Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-09-23T19:25:52Z"]},{"key":"dc:date.issued","label":"Date","values":["2025-09-15"]},{"key":"dc:publisher.faculty","label":"Dc Publisher Faculty","values":["Graduate Studies"]},{"key":"dc:publisher.institution","label":"Dc Publisher Institution","values":["University of Calgary"]},{"key":"dc:type","label":"Dc Type","values":["master thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science (MSc)"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Calgary"]},{"key":"thesis:release_request","label":"Thesis Release Request","values":["I do not require a thesis withhold – my thesis will have open access and can be viewed and downloaded publicly as soon as possible."]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Concurrency","Message Passing","Actegory"]},{"key":"dc:subject.classification","label":"Dc Subject Classification","values":["Computer Science"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["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."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Norouzbeygi, M. (2025). Higher-order message passing in CaMPL (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://prism.ucalgary.ca."]},{"key":"dc:identifier.doi","label":"DOI","values":["https://dx.doi.org/10.11575/PRISM/50515"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1880/122921"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["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."]},{"key":"dc:title","label":"Title","values":["Higher-Order Message Passing in CaMPL"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Cockett, Robin"],"dc:contributor.committeemember":["Bauer, Kristine","Woelfel, Philipp"],"dc:creator":["Norouzbeygi, Melika"],"dc:date":["2025-11"],"dc:date.accessioned":["2025-09-23T19:25:52Z"],"dc:date.available":["2025-09-23T19:25:52Z"],"dc:date.issued":["2025-09-15"],"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."],"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."],"dc:identifier.doi":["https://dx.doi.org/10.11575/PRISM/50515"],"dc:identifier.uri":["https://hdl.handle.net/1880/122921"],"dc:language.iso":["en"],"dc:publisher.faculty":["Graduate Studies"],"dc:publisher.institution":["University of Calgary"],"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."],"dc:subject":["Concurrency","Message Passing","Actegory"],"dc:subject.classification":["Computer Science"],"dc:title":["Higher-Order Message Passing in CaMPL"],"dc:type":["master thesis"],"dspace:entity.type":["Publication"],"others:access_status":["open.access"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_name":["Master of Science (MSc)"],"thesis:institution_name":["University of Calgary"],"thesis:release_request":["I do not require a thesis withhold – my thesis will have open access and can be viewed and downloaded publicly as soon as possible."]},"updated_at":"2026-11-19T07:30:43Z"}