[clean-list] hd (drop 1000000 [1..]) heapFull

Pieter Koopman pieter at cs.ru.nl
Fri Jul 19 22:10:05 MEST 2013


Hi Erik,

there seems to be a problem with the generator.

Start = hd (drop  n [1..n+10]) where n = 1000000

works fine. Hopefully John can explain this.

Best, Pieter

On 7/19/13 4:41 PM, zuurb078 at planet.nl wrote:
> Re: [clean-list] Matrix operations
> Start = hd (drop 1000000 [1..])
> with standard heap (2M) leads to a heapfull message; not when I only 
> drop 1000.
> I had expected the garbage collector to kick in so this would 
> effectively run in constant space
> Any ideas?
>
>
> _______________________________________________
> clean-list mailing list
> clean-list at science.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/clean-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/clean-list/attachments/20130719/796bbb76/attachment.html>


More information about the clean-list mailing list