Æminium
Authors:
Open Access
- 1 March 2014
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Programming Languages and Systems
- Vol. 36 (1) , 1-42
Abstract
Writing concurrent applications is extremely challenging, not only in terms of producing bug-free and maintainable software, but also for enabling developer productivity. In this article we present the Æminium concurrent-by-default programming language. Using Æminium programmers express data dependencies rather than control flow between instructions. Dependencies are expressed using permissions, which are used by the type system to automatically parallelize the application. The Æminium approach provides a modular and composable mechanism for writing concurrent applications, preventing data races in a provable way. This allows programmers to shift their attention from low-level, error-prone reasoning about thread interleaving and synchronization to focus on the core functionality of their applications. We study the semantics of Æminium through μ Æminium, a sound core calculus that leverages permission flow to enable concurrent-by-default execution. After discussing our prototype implementation we present several case studies of our system. Our case studies show up to 6.5X speedup on an eight-core machine when leveraging data group permissions to manage access to shared state, and more than 70% higher throughput in a Web server application.Keywords
Funding Information
- Division of Computing and Communication Foundations (CCF-1116907)
- CISUC (326/97)
- Mellon College of Science, Carnegie Mellon University (CMU-PT/SE/0038/2008)
- Fundação para a Ciência e a Tecnologia (SFRH/BD/33522/2008)
This publication has 30 references indexed in Scilit:
- Memory modelsCommunications of the ACM, 2010
- A Type System for Data-Centric SynchronizationLecture Notes in Computer Science, 2010
- Using Ownership to Reason about Inherent Parallelism in Object-Oriented Programs2010
- Checking Interference with Fractional Permissions2003
- Using data groups to specify and check side effectsACM SIGPLAN Notices, 2002
- Featherweight JavaACM Transactions on Programming Languages and Systems, 2001
- A provable time and space efficient implementation of NESL1996
- Notions of computation and monadsInformation and Computation, 1991
- Linear logicTheoretical Computer Science, 1987
- Peephole optimizationCommunications of the ACM, 1965