[Haskell-cafe] Number 1, at least for now

Ben Lippmeier Ben.Lippmeier at anu.edu.au
Wed Feb 1 18:49:56 EST 2006


Sebastian Sylvan wrote:
>>Haskell is now ranked number 1 on the Great Language Shootout!
>>
> That is neat. Mostly for dispelling the "pure lazy fp is inherently
> slow" argument. 

Ha! I don't think "pure lazy fp" would be the phrase I would choose to 
describe this code.

An example (from fannkuch):

t <- IO $ \s ->
      case readIntOffAddr# p1# 0# s of
        (# s, p1 #) -> case readIntOffAddr# p1# (n# -# 1#) s of
            (# s, pn #) -> (# s, not (p1 ==# 0# || pn ==# (n# -# 1#)) #)

Ben.


More information about the Haskell-Cafe mailing list