[MLton] Re: [Haskell-cafe] fastest Fibonacci numbers in the West

William Lee Irwin III wli@holomorphy.com
Thu, 27 Jan 2005 10:26:44 -0800


On Thu, Jan 27, 2005 at 10:19:15AM -0800, Stephen Weeks wrote:
> I suspect the difference in output file sizes is an off by one error
> in the index of the number being printed.  I'm curious how Matthew got
> them to agree.  Below is the code that I used to compare them -- it
> fails with "not equal" for any input value.

I start at fib 0 = 0; fib 1 = 1. Terpstra's starts at fib 1 = 0; fib 2 = 1.
It's not usually an error per se, but merely a difference in conventions.


-- wli