On Nov 27, 2009, at 23:18 , vishnu wrote:
hmm ok I understand the issue of compiler maturity. But I thought lazyness was meant to be a bonus? Or is it that if you really try to squeeze performance it becomes more of a hindrance?
If you're trying to eke out every last bit of performance, you need precise control over laziness vs. strictness, as each is an advantage in different contexts. Ideally ghc's strictness analyzer would do it for you, but it isn't quite good enough yet, so you can end up writing ugly code to get that precise control.