[Haskell-cafe] speed: ghc vs gcc
bulat.ziganshin at gmail.com
Fri Feb 20 18:22:38 EST 2009
Saturday, February 21, 2009, 2:07:39 AM, you wrote:
> I have another question. Why shouldn't compiler realize that `sum [1..10^9]'
> is constant and thus evaluate it at compile time?
since we expect that compilation will be done in reasonable amount of
time. you cannot guarantee this for list-involving computation
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe