[reactive] Bounce

Peter Verswyvelen bugfact at gmail.com
Fri Nov 21 21:06:30 EST 2008


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/reactive/attachments/20081122/fb7578a2/attachment.htm


More information about the Reactive mailing list