[Haskell-cafe] haskell version of fractal benchmark

Donald Bruce Stewart dons at cse.unsw.edu.au
Fri Jun 8 05:35:41 EDT 2007


Alistair_Bayley:
> > [mailto:haskell-cafe-bounces at haskell.org] On Behalf Of Donald 
> > Bruce Stewart
> > 
> > 3) -fbang-patterns
> > 
> > Better than `seq`
> 
> Better in the "more convenient to write" sense, right? AFAIUI, seq and
> bang patterns should be equivalent.
> 

Yes, in the 'more convenient' sense. Adding strictness speculatively,
while trying to debug a leak, is easier when inserting !, than to insert
`seq`'s. It also doesn't obfuscate the code as much as the seq tricks
do.

-- Don


More information about the Haskell-Cafe mailing list