[Haskell-cafe] Re: Real-time garbage collection for Haskell

Heinrich Apfelmus apfelmus at quantentunnel.de
Sun Feb 28 11:03:24 EST 2010


Luke Palmer wrote:
> I have seen some proposals around here for SoC projects and other
> things to try to improve the latency of GHC's garbage collector.  I'm
> currently developing a game in Haskell, and even 100ms pauses are
> unacceptable for a real-time game.  I'm calling out to people who have
> seen or made such proposals, because I would be willing to contribute
> funding and/or mentor a project that would contribute to this goal.
>
> Also any ideas for reducing this latency in other ways would be very
> appreciated.

Overly long garbage collection might also be a sign of space leaks.

But there are many other things that can go wrong in a real time system
and might explain your delays. For example, you might need to avoid
amortized time data structures like  Data.Sequence . Or for physics
simulations, you'd need to fix the time step ∆t, as described in

   http://gafferongames.com/game-physics/fix-your-timestep/

or numerical integration will deteriorate rather quickly.


Regards,
Heinrich Apfelmus

--
http://apfelmus.nfshost.com



More information about the Haskell-Cafe mailing list