Metraipolis › archive › dc_cc547797bff7

Cambria: Resource Abstraction for Parametrized Algebraic Effects and Handlers — arXiv:2608.27798

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.27798
License (as archived)
CC0-1.0
Archived
2026-10-17T11:57:24.751Z
SHA-256 of the archived text
4f85fa8233043e6cb6aaa06348db564c79f285e95f9f8b380c321ee5dc3df665
Stable URL of this page
https://metraipolis.com/documento/dc_cc547797bff7

How to cite

Cambria: Resource Abstraction for Parametrized Algebraic Effects and Handlers — arXiv:2608.27798 — arXiv (en), https://arxiv.org/abs/2608.27798 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_cc547797bff7 (Metraipolis archive dc_cc547797bff7, sha256 4f85fa8233043e6cb6aaa06348db564c79f285e95f9f8b380c321ee5dc3df665)
BibTeX
@misc{dccc547797bff7,
  title = {Cambria: Resource Abstraction for Parametrized Algebraic Effects and Handlers — arXiv:2608.27798},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.27798},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_cc547797bff7; sha256 4f85fa8233043e6cb6aaa06348db564c79f285e95f9f8b380c321ee5dc3df665},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.27798. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

The algebraic effects and handlers paradigm separates the concerns of the interface and implementation of computational effects in programming languages. We present Cambria, a language that extends this framework to the parametrized setting. Effect signatures may use abstract parameter types that are instantiated by the handler along with the operation implementations. Parameters abstract over resources, such as memory locations or thread IDs, permitting algebraic effects to encode dynamic allocation. They are first-class in the type system but erased at runtime, requiring no coercions or type-directed reduction. We prove parametricity via a step-indexed logical relation, formalizing the abstraction guarantee provided by parametrized handlers. We also establish type safety and classify the annotations needed for completeness of the type inference algorithm. We demonstrate Cambria's practicality with a working implementation and provide examples including local state, Pólya's urn, and concurrent thread management. The last is a parametrized effect whose abstract thread IDs are shared between concurrent computations, going beyond standard instances. Cambria is the first calculus with user-defined resource-allocating effects that guarantees, via parametricity, that client code cannot depend on how a handler represents its resources.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-31 in cs.PL).
Categorie arXiv: Programming Languages (cs.PL).
Pagina del lavoro: https://arxiv.org/abs/2608.27798 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-17T11:27:49.241Z dalla pagina https://arxiv.org/catchup/cs.PL/2026-08-31?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).