Programming parallelism with futures in lustre

  • Authors:
  • Albert Cohen;Léonard Gérard;Marc Pouzet

  • Affiliations:
  • INRIA Paris-Rocquencourt, DI, École normale supérieure, Paris, France;Univ. Paris-Sud, DI, École normale supérieure, Paris, France;Univ. Pierre et Marie Curie, DI, École normale supérieure, Paris, France

  • Venue:
  • Proceedings of the tenth ACM international conference on Embedded software
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Efficiently distributing synchronous programs is a challenging and long-standing subject. This paper introduces the use of futures in a LUSTRE-like language, giving the programmer control over the expression of parallelism. In the synchronous model where computations are considered instantaneous, futures increase expressiveness by decoupling the beginning from the end of a computation. Through a number of examples, we show how to desynchronize long computations and implement parallel patterns such as fork-join, pipelining and data parallelism. The proposed extension preserves the main static properties of the base language, including static resource bounds and the absence of deadlock, livelock and races. Moreover, we prove that adding or removing futures preserves the underlying synchronous semantics.