
26 Feb
2009
26 Feb
'09
9:17 a.m.
On Thursday 26 February 2009 15.07.34 Luke Palmer wrote:
On Thu, Feb 26, 2009 at 6:53 AM, Daniel Kraft
wrote: procOne (a + 1) (newarr `seq` newarr)
The semantics of seq are: a `seq` b = _|_ if a = _|_, b otherwise. This implies that x `seq` x = x, and this seq is superfluous.
Maybe you meant newarr `seq` procOne (a+1) newarr ?
Luke
I just tested that, and both that and the original used about 500mb of memory. I changed it to "(newarr ! ind) `seq` procOne (a+1) newarr" and it only used about 15mb. -- Sjur Gjøstein Karevoll sjurberengal@gmail.com