Futures and Promises

Futures And Promises

In computer science, future, promise, and delay refer to constructs used for synchronizing in some concurrent programming languages. They describe an object that acts as a proxy for a result that is initially unknown, usually because the computation of its value is yet incomplete.

The term promise was proposed in 1976 by Daniel P. Friedman and David Wise, and Peter Hibbard called it eventual. A somewhat similar concept future was introduced in 1977 in a paper by Henry Baker and Carl Hewitt.

The terms future, promise, and delay are often used interchangeably, although some differences in usage between future and promise are treated below. Setting the value of a future is also called resolving, fulfilling, or binding it.

Read more about Futures And Promises:  Implicit Vs Explicit, Promise Pipelining, Read-only Views, Thread-specific Futures, Blocking Vs Non-blocking Semantics, Related Constructs, Relations Between The Expressiveness of Different Forms of Future, Relation To Lazy Evaluation, Semantics of Futures in The Actor Model, History, List of Implementations

Famous quotes containing the words futures and/or promises:

    One of the things that is most striking about the young generation is that they never talk about their own futures, there are no futures for this generation, not any of them and so naturally they never think of them. It is very striking, they do not live in the present they just live, as well as they can, and they do not plan. It is extraordinary that whole populations have no projects for a future, none at all.
    Gertrude Stein (1874–1946)

    The mark of the man of the world is absence of pretension. He does not make a speech; he takes a low business-tone, avoids all brag, is nobody, dresses plainly, promises not at all, performs much, speaks in monosyllables, hugs his fact. He calls his employment by its lowest name, and so takes from evil tongues their sharpest weapon. His conversation clings to the weather and the news, yet he allows himself to be surprised into thought, and the unlocking of his learning and philosophy.
    Ralph Waldo Emerson (1803–1882)