EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Hefty Algebras: Modular Elaboration of Higher-Order Algebraic Effects

Casper Bach Poulsen, Cas van der Rest

Proceedings of the ACM on Programming Languages · 09.01.2023 · 7 (POPL) · 1801-1831

DOI: 10.1145/3571255 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Proceedings of the ACM on Programming Languages, online erschienen am 11.01.2023. Verfasst von Casper Bach Poulsen und 1 weiteren Autor:innen. Die Arbeit wurde bisher 11-mal zitiert (Crossref) und nennt 57 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: NWO.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Algebraic effects and handlers is an increasingly popular approach to programming with effects. An attraction of the approach is its modularity: effectful programs are written against an interface of declared operations, which allows the implementation of these operations to be defined and refined without changing or recompiling programs written against the interface. However, higher-order operations (i.e., operations that take computations as arguments) break this modularity. While it is possible to encode higher-order operations by elaborating them into more primitive algebraic effects and handlers, such elaborations are typically not modular. In particular, operations defined by elaboration are typically not a part of any effect interface, so we cannot define and refine their implementation without changing or recompiling programs. To resolve this problem, a recent line of research focuses on developing new and improved effect handlers. In this paper we present a (surprisingly) simple alternative solution to the modularity problem with higher-order operations: we modularize the previously non-modular elaborations commonly used to encode higher-order operations. Our solution is as expressive as the state of the art in effects and handlers.

Förderung

  • NWO

Zitieren

APA

Poulsen, C. B., & Rest, C. V. D. (2023). Hefty Algebras: Modular Elaboration of Higher-Order Algebraic Effects. Proceedings of the ACM on Programming Languages, 7(POPL), 1801-1831. https://doi.org/10.1145/3571255

Vancouver

Poulsen CB, Rest CVD. Hefty Algebras: Modular Elaboration of Higher-Order Algebraic Effects. Proceedings of the ACM on Programming Languages. 2023;7(POPL):1801-1831. doi:10.1145/3571255

BibTeX
@article{Poulsen2023,
  author = {Poulsen, Casper Bach and Rest, Cas van der},
  title = {Hefty Algebras: Modular Elaboration of Higher-Order Algebraic Effects},
  journal = {Proceedings of the ACM on Programming Languages},
  year = {2023},
  volume = {7},
  number = {POPL},
  pages = {1801--1831},
  doi = {10.1145/3571255}
}
Kostenlos starten →