EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

HasChor: Functional Choreographic Programming for All (Functional Pearl)

Gan Shen, Shun Kashiwa, Lindsey Kuper

Proceedings of the ACM on Programming Languages · 30.08.2023 · 7 (ICFP) · 541-565

DOI: 10.1145/3607849 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Proceedings of the ACM on Programming Languages, online erschienen am 31.08.2023. Verfasst von Gan Shen und 2 weiteren Autor:innen. Die Arbeit wurde bisher 23-mal zitiert (Crossref) und nennt 42 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: National Science Foundation.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Choreographic programming is an emerging paradigm for programming distributed systems. In choreographic programming, the programmer describes the behavior of the entire system as a single, unified program -- a choreography -- which is then compiled to individual programs that run on each node, via a compilation step called endpoint projection. We present a new model for functional choreographic programming where choreographies are expressed as computations in a monad. Our model supports cutting-edge choreographic programming features that enable modularity and code reuse: in particular, it supports higher-order choreographies, in which a choreography may be passed as an argument to another choreography, and location-polymorphic choreographies, in which a choreography can abstract over nodes. Our model is implemented in a Haskell library, HasChor , which lets programmers write choreographic programs while using the rich Haskell ecosystem at no cost, bringing choreographic programming within reach of everyday Haskellers. Moreover, thanks to Haskell's abstractions, the implementation of the HasChor library itself is concise and understandable, boiling down endpoint projection to its short and simple essence.

Förderung

  • National Science Foundation

Zitieren

APA

Shen, G., Kashiwa, S., & Kuper, L. (2023). HasChor: Functional Choreographic Programming for All (Functional Pearl). Proceedings of the ACM on Programming Languages, 7(ICFP), 541-565. https://doi.org/10.1145/3607849

Vancouver

Shen G, Kashiwa S, Kuper L. HasChor: Functional Choreographic Programming for All (Functional Pearl). Proceedings of the ACM on Programming Languages. 2023;7(ICFP):541-565. doi:10.1145/3607849

BibTeX
@article{Shen2023,
  author = {Shen, Gan and Kashiwa, Shun and Kuper, Lindsey},
  title = {HasChor: Functional Choreographic Programming for All (Functional Pearl)},
  journal = {Proceedings of the ACM on Programming Languages},
  year = {2023},
  volume = {7},
  number = {ICFP},
  pages = {541--565},
  doi = {10.1145/3607849}
}
Kostenlos starten →