[Haskell-cafe] [reactive] A pong and integrate
David Leimbach
leimy2k at gmail.com
Sat May 15 18:22:11 EDT 2010
On Sat, May 15, 2010 at 8:42 AM, Limestraël <limestrael at gmail.com> wrote:
> Okay,
> guess I'll have to bring out the chapter 25 of my Real World Haskell...
>
I find it's often the most practical chapter that I hit a lot during writes
and changes to my server process I have in Haskell in our control system
code :-)
That plus the information that I had missed that Control.Monad.State
defaulted to the Lazy version (which is consistent, but for some reason it
got by me) helped me to realize why I was leaking so much space in a garbage
collected environment.
I wouldn't have gotten very far with Haskell as this piece of our code
without that chapter. I'd love to see more writing of that sort around
Haskell in book form. One can become fluent in tuning Haskell by trial and
error, but the sharp corners one must bump into are often sharper than in
other languages I've found.
Dave
>
>
> 2010/5/15 Bulat Ziganshin <bulat.ziganshin at gmail.com>
>
> Hello Limestraėl,
>>
>> Saturday, May 15, 2010, 7:02:38 PM, you wrote:
>>
>> > But when I set my beat to tick every 60 times per second, the
>> > position is well updated, but I clearly see that the display
>> > dramatically slows down after a few seconds of execution. Too heavy rate
>> for integrate?
>>
>> it may be due to lot of uncollected garbage that is result of lazy
>> evaluation. profile program to check its GC times
>>
>>
>> --
>> Best regards,
>> Bulat mailto:Bulat.Ziganshin at gmail.com
>>
>>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100515/047b63c7/attachment.html
More information about the Haskell-Cafe
mailing list