[reactive] Bounce

Conal Elliott conal at conal.net
Sat Nov 22 02:06:44 EST 2008


I'd love to see simple test cases that exhibit space leaks (or other
oddities).  Please contribute findings to the Reactive tracker:
http://trac.haskell.org/reactive/report/1?sort=ticket&asc=1 .    - Conal

2008/11/21 Peter Verswyvelen <bugfact at gmail.com>

> well, Bob and I also found a space leak in Tetris, and as far as I
> understood it a lot of MVars and (,) are leaking, probably because something
> is sticking on the head of the reactive streams or something so they can't
> be garbage collected, or some "push" events streams lack observers so they
> keep growing. But it's still unclear. I'm making a very small program here
> to reproduce the problem; I'm not using anything from Reactive but unamb and
> I also have a space leak, but that might be because of some bugs in my test
> case...
>
> On Fri, Nov 21, 2008 at 10:57 PM, Greg Fitzgerald <garious at gmail.com>wrote:
>
>> I fixed the collision issue (I should have failed first year physics).
>>
>> gravity :: Double -> Double -> TimeT -> (Double, Double)
>> gravity x0 v0 t = (x0 + v0 * t - 4.9 * (t * t), v0 - 9.8 * t)
>>
>> New code here:
>> http://hpaste.org/12263
>>
>> But this is still unusable.  There's a massive space leak somewhere,
>> and the program continues to grow even after you close the window!
>> Anyone have any pointers for tracking this down?
>>
>> -Greg
>> _______________________________________________
>> Reactive mailing list
>> Reactive at haskell.org
>> http://www.haskell.org/mailman/listinfo/reactive
>>
>
>
> _______________________________________________
> Reactive mailing list
> Reactive at haskell.org
> http://www.haskell.org/mailman/listinfo/reactive
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/reactive/attachments/20081121/9dba56d6/attachment-0001.htm


More information about the Reactive mailing list