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:
“It would be disingenuous, however, not to point out that some things are considered as morally certain, that is, as having sufficient certainty for application to ordinary life, even though they may be uncertain in relation to the absolute power of God.”
—René Descartes (15961650)
“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)
“Up a lazy river by the old mill run, that lazy, lazy river in the noonday sun.”
—Sidney Arodin, U.S. songwriter. Lazy River, Peer International Corp. (1931)
“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 (18881959)