[Haskell-cafe] Re: Difficult memory leak in array processing
u.stenzel at web.de
Thu Nov 23 16:13:25 EST 2006
apfelmus at quantentunnel.de wrote:
> >> (lo, hi) <- getBounds buf
> > to
> > let (lo,hi) = bounds buf
> The interface changed between GHC 6.4.2 and 6.6.
> But no honorable Haskell paladin would ever dare to use UndeadArrays.
Hm, and 'bounds' is simply gone? Hope that doesn't bite in an
> The strictness analyzer likes Udo more than Niko, does it?
So it seems. I just tried it with GHC 6.6 and there still is no leak
and no stack overflow. And frankly, I can't even see where too much
lazyness could creep into this code. Everything is sequenced by IO, the
array is unboxed, there's hardly any room for an unexpected thunk to
"Science is like sex - sometimes something useful comes out of it, but
that's not what we are doing it for." -- Richard Feynman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20061123/2f051c42/attachment.bin
More information about the Haskell-Cafe