English

Container Morphisms for Composable Interactive Systems

Software Engineering 2024-08-23 v1 Programming Languages

Abstract

This paper provides a mathematical framework for client-server communication that results in a modular and type-safe architecture. It is informed and motivated by the software engineering practice of developing server backends with a database layer and a frontend, all of which communicate with a notion of request/response. I make use of dependent types to ensure the request/response relation matches and show how this idea fits in the broader context of containers and their morphisms. Using the category of containers and their monoidal products, I define monads on containers that mimic their functional programming counterparts, and using the Kleene star, I describe stateful protocols in the same system.

Keywords

Cite

@article{arxiv.2407.16713,
  title  = {Container Morphisms for Composable Interactive Systems},
  author = {André Videla},
  journal= {arXiv preprint arXiv:2407.16713},
  year   = {2024}
}

Comments

18 pages, submitted to APLAS, 4 pages of appendix with proofs

R2 v1 2026-06-28T17:51:17.640Z