G'day all.

Quoting Dan Weston <[EMAIL PROTECTED]>:

In any case, to answer your question more specifically, the memoization
of *constants*

I think you meant "CAFs".

You can just unroll the loop
yourself to see. The following runs as fast as you'd expect:

fib00 = 0
fib01 = 1
fib02 = fib00 + fib01
[deletia]
fib30 = fib28 + fib29

This is why we don't pay programmers by LOC.

For a parametrized function fib n, no mere syntactic transformation can
be so made.

That's right, but you can do it by hand.

Incidentally, we've been here before.  Check out this thread:

    http://comments.gmane.org/gmane.comp.lang.haskell.cafe/19623

Cheers,
Andrew Bromage
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to