Futures and Promises - Relation To Lazy Evaluation

Relation To Lazy Evaluation

Lazy futures, where the computation of the future's value starts when the value is first needed, are closely related to lazy evaluation. However, the term lazy evaluation is most often used to refer to an evaluation strategy for all computation in a language, whereas lazy futures represent specific values that are computed lazily, even in a language where computation is normally strict or eager. In C++11 such lazy futures can be created by passing the std::launch::sync launch policy to std::async, along with the function to compute the value.

Read more about this topic:  Futures And Promises

Famous quotes containing the words relation to, relation, lazy and/or evaluation:

    The whole point of Camp is to dethrone the serious. Camp is playful, anti-serious. More precisely, Camp involves a new, more complex relation to “the serious.” One can be serious about the frivolous, frivolous about the serious.
    Susan Sontag (b. 1933)

    Light is meaningful only in relation to darkness, and truth presupposes error. It is these mingled opposites which people our life, which make it pungent, intoxicating. We only exist in terms of this conflict, in the zone where black and white clash.
    Louis Aragon (1897–1982)

    I wish thee peace in all thy ways,
    Nor lazy nor contentious days;
    And when thy soul and body part,
    As innocent as now thou art.
    Richard Corbet (1582–1635)

    Good critical writing is measured by the perception and evaluation of the subject; bad critical writing by the necessity of maintaining the professional standing of the critic.
    Raymond Chandler (1888–1959)