Re:Why Haskell is beyond ready for Prime Time
by time_management on Thursday January 15, 2009 @12:51PM
(#435408)
Noob question: Why is space performance so opaque in a lazy language?
[ Parent
| on HN ]
Re:Why Haskell is beyond ready for Prime Time
by brl on Thursday January 15, 2009 @02:38PM
(#435568)
Noob answer:
In a strict language, you write an expression and it's perfectly clear when it will be evaluated.
With lazy evaluation to know if or when an expression will be evaluated you have to follow it through possibly many layers of function calls (which may have been written by somebody else) looking for a place where it needs to be evaluated. Along the way it may become embedded in other expressions which complicates the problem.
How do you know when an expression needs to be evaluated? I don't know if I'm smart enough to understand the answer to that question:
http://en.wikibooks.org/wiki/Haskell/Denotational_semantics#...