[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haskell-jhc
Subject:    Re: [jhc] foreign ptr bugs
From:       John Meacham <john () repetae ! net>
Date:       2011-01-02 2:32:25
Message-ID: AANLkTinK7+U8FgfmYWxrgddcuBxrB18G_HgKK3xP_Uyr () mail ! gmail ! com
[Download RAW message or body]

On Sat, Jan 1, 2011 at 6:03 PM, Korcan Hussein <korcan_h@hotmail.com> wrote:
>
> Yeah it works for me too, I didn't know that GC isn't enabled by default? how
> does memory management work without a garbage collector? malloc/free and
> static reference counts (linear types)? anyway thanks for the help!

It applies the brute force approach of never reclaiming anything, that isn't
entirely true, it does some static analysis and a simple form of region
inference so things won't blow up too fast, but programs will eventually run
out of RAM. Basically, the reason for this was that I was experimenting with
alternate garbage collectors and it wasn't clear which one would end up on top.
jgc will probably be enabled by default in the next release.

        John

_______________________________________________
jhc mailing list
jhc@haskell.org
http://www.haskell.org/mailman/listinfo/jhc
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic