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 adolescent does not develop her identity and individuality by moving outside her family. She is not triggered by some magic unconscious dynamic whereby she rejects her family in favour of her peers or of a larger society.... She continues to develop in relation to her parents. Her mother continues to have more influence over her than either her father or her friends.”
—Terri Apter (20th century)
“A theory of the middle class: that it is not to be determined by its financial situation but rather by its relation to government. That is, one could shade down from an actual ruling or governing class to a class hopelessly out of relation to government, thinking of govt as beyond its control, of itself as wholly controlled by govt. Somewhere in between and in gradations is the group that has the sense that govt exists for it, and shapes its consciousness accordingly.”
—Lionel Trilling (19051975)
“So, when my days of impotence approach,
And Im by pox and wines unlucky chance
Forced from the pleasing billows of debauch
On the dull shore of lazy temperance,
My pains at least some respite shall afford
While I behold the battles you maintain
When fleets of glasses sail about the board,
From whose broadsides volleys of wit shall rain.”
—John Wilmot, 2d Earl Of Rochester (16471680)
“Evaluation is creation: hear it, you creators! Evaluating is itself the most valuable treasure of all that we value. It is only through evaluation that value exists: and without evaluation the nut of existence would be hollow. Hear it, you creators!”
—Friedrich Nietzsche (18441900)