[Shootout-list] Acceptable implementations?

Peter Hinely phinely@hawaii.edu
Tue, 21 Sep 2004 17:54:05 -1000 (HST)


Hi everyone,

Is the GHC entry for "sieve" in any way a Sieve of Eratosthenes?
I don't understand Haskell. It looks like it's using 'mod', which would
be using hardware division, right?  If so, that's definitely not in the
spirit of the sieve.
  http://shootout.alioth.debian.org/lang/ghc/sieve.ghc.html

And shouldn't the CMUCL entry for "except" should be incrementing the
counters in the catch clauses instead of where it throws the exception?
  http://shootout.alioth.debian.org/lang/cmucl/except.cmucl.html
Same for
  http://shootout.alioth.debian.org/lang/sbcl/except.sbcl.html
It probably doesn't affect the performance, but the test is supposed to be
implemented in the same way as close as possible.

Regards,
Peter