[Haskell-cafe] Something like optimistic evaluation
jake.mcarthur at gmail.com
Mon Apr 28 18:56:04 EDT 2008
On Apr 28, 2008, at 5:09 PM, Daniil Elovkov wrote:
> Somewhat on the topic of optimistic evaluation, I've just thought of
> another way to evaluate thunks.
> When the program is about to block on some IO, what if we start a
> thread to evaluate (any) unevaluated thunks. We'll have additional
> system thread, but the blocked one will not actually consume any
> processor time.
Seems like this would be bad in cases where the programmer is trying
to exploit laziness, such as using infinite lists, no?
More information about the Haskell-Cafe