Year: 2018
Type: report
Abstract: A future is a place-holder for a value being computed, and we generally say that a future is resolved when the associated value is computed. In existing languages futures are either implicit, if there is no syntactic or typing distinction between futures and non-future values, or explicit when futures are typed by a parametric type and dedicated functions exist for manipulating futures. One contribution of this article is to advocate a new form of future, named data-flow explicit futures, with specific typing rules that do not use classical parametric types. The new futures allow at the same time code reuse and the possibility for recursive functions to return futures like with implicit futures, and let the programmer declare which values are futures and where synchronisation occurs, like with explicit futures. We prove that the obtained programming model is as expressive as implicit futures but exhibits a different behaviour compared to explicit futures. The second and main contribution of this article is an exhaustive overview and precise comparison of the semantics of futures in existing programming languages. We show that, when classifying future implementations, the most distinctive aspect is the nature of the synchronisation not the explicitness of the future declaration.
Source: HAL
Author: Ludovic Henrio
Language: French
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W2802583559
