DOI

Developers often combine different concurrency models in a single program, in each part of the program using the model that fits best. Many programming languages, such as Clojure, Scala, and Haskell, cater to this need by supporting different concurrency models. However, they are often combined in an ad hoc way and the semantics of the combination is not always well defined.

This paper studies the combination of three concurrency models: futures, actors, and transactions. We show that a naive combination of these models invalidates the guarantees they normally provide, thereby breaking the assumptions of developers. Hence, we present Chocola: a unified framework of futures, actors, and transactions that maintains the guarantees of all models wherever possible, even when they are combined. We present the semantics of this model and its implementation in Clojure, and have evaluated its performance and expressivity using three benchmark applications.
Original languageEnglish
Title of host publicationAGERE 2018 - Proceedings of the 8th ACM SIGPLAN International Workshop on Programming Based on Actors, Agents, and Decentralized Control, co-located with SPLASH 2018
EditorsFederico Bergenti, Joeri De Koster, Juliana Franco
PublisherACM
Pages33-43
Number of pages11
ISBN (Electronic)978-1-4503-6066-1/18/11
ISBN (Print)9781450360661
DOIs
Publication statusPublished - 5 Nov 2018
Event8th ACM SIGPLAN International Workshop on Programming Based on Actors, Agents, and Decentralized Control - Boston, United States
Duration: 5 Nov 20185 Nov 2018

Workshop

Workshop8th ACM SIGPLAN International Workshop on Programming Based on Actors, Agents, and Decentralized Control
Abbreviated titleAGERE'18
CountryUnited States
CityBoston
Period5/11/185/11/18

    Research areas

  • Actors, Concurrency, Futures, Parallelism, Software Transactional Memory, Transactions

ID: 39829436