High-performance Deterministic Concurrency Using Lingua Franca

Author:

Menard Christian1ORCID,Lohstroh Marten2ORCID,Bateni Soroush2ORCID,Chorlian Matthew2ORCID,Deng Arthur2ORCID,Donovan Peter2ORCID,Fournier Clément1ORCID,Lin Shaokai2ORCID,Suchert Felix1ORCID,Tanneberger Tassilo1ORCID,Kim Hokeun3ORCID,Castrillon Jeronimo1ORCID,Lee Edward A.2ORCID

Affiliation:

1. TU Dresden, Germany

2. UC Berkeley, USA

3. Arizona State University, USA

Abstract

Actor frameworks and similar reactive programming techniques are widely used for building concurrent systems. They promise to be efficient and scale well to a large number of cores or nodes in a distributed system. However, they also expose programmers to nondeterminism, which often makes implementations hard to understand, debug, and test. The recently proposed reactor model is a promising alternative that enables deterministic concurrency. In this article, we present an efficient, parallel implementation of reactors and demonstrate that the determinacy of reactors does not imply a loss in performance. To show this, we evaluate Lingua Franca (LF), a reactor-oriented coordination language. LF equips mainstream programming languages with a deterministic concurrency model that automatically takes advantage of opportunities to exploit parallelism. Our implementation of the Savina benchmark suite demonstrates that, in terms of execution time, the runtime performance of LF programs even exceeds popular and highly optimized actor frameworks. We compare against Akka and CAF, which LF outperforms by 1.86× and 1.42×, respectively.

Funder

German Federal Ministry of Education and Research (BMBF) as part of the Software Campus

“Souverän. Digital. Vernetzt.”, joint project 6G-life

National Science Foundation

iCyPhy Research Center (Industrial Cyber-Physical Systems), supported by Denso, Ford, Siemens, and Toyota

National Research Foundation (NRF) of Korea

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Information Systems,Software

Reference97 articles.

1. A foundation for actor computation;Agha Gul A.;Journal of Functional Programming,1997

2. System and Architecture

3. Joe Armstrong, Robert Virding, Claes Wikström, and Mike Williams. 1996. Concurrent Programming in Erlang (2nd ed.). Prentice Hall.

4. Mehdi Bagherzadeh, Nicholas Fireman, Anas Shawesh, and Raffi Khatchadourian. 2020. Actor concurrency bugs: A comprehensive study on symptoms, root causes, API usages, and differences. In Proceedings of ACM Programming Languages.10.1145/3428282

5. A survey on reactive programming

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3