inria-00090434, version 2
A Concurrent Lambda Calculus with Futures
Joachim Niehren 1Jan Schwinghammer 2Gert Smolka 2
Theoretical Computer Science 364, 3 (2006) 338-356
Résumé : We introduce a new lambda calculus with futures, Lambda(fut), that models the operational semantics of concurrent statically typed functional programming languages with mixed eager and lazy threads such as Alice ML, a concurrent extension of Standard ML. Lambda(fut) is a minimalist extension of the call-by-value lambda-calculus that is sufficiently expressive to define and combine a variety of standard concurrency abstractions, such as channels, semaphores, and ports. Despite its minimality, the basic machinery of Lambda(fut) is sufficiently powerful to support explicit recursion and call-by-need evaluation. We present a static type system for Lambda(fut) and distinguish a fragment of Lambda(fut) that we prove to be uniformly confluent. This result confirms our intuition that reference cells are the sole source of indeterminism. This fragment assumes the absence of so called {handle errors} that violate the single assignment assumption of Lambda(fut)'s handled future-construct. Finally, we present a linear type system for Lambda(fut) by which to prove the absence of handle errors. Our system is rich enough to type definitions of the above mentioned concurrency abstractions. Consequently, these cannot be corrupted in any (not necessarily linearly) well-typed context.
- 1 : MOSTRARE (INRIA Futurs)
- INRIA – CNRS : UMR8022 – Université Lille I - Sciences et technologies – Université Lille III - Sciences humaines et sociales
- 2 : Programming Systems Lab [Saarland]
- Saarland University
- Domaine : Informatique/Langage de programmation
- Mots-clés : Functional programming languages – semantics – concurrency
- Versions disponibles : v1 (31-08-2006) v2 (01-09-2006)
- inria-00090434, version 2
- http://hal.inria.fr/inria-00090434
- oai:hal.inria.fr:inria-00090434
- Contributeur : Joachim Niehren
- Soumis le : Jeudi 31 Août 2006, 18:52:58
- Dernière modification le : Lundi 14 Décembre 2009, 22:08:27