Re: FW: A Garbage Collection Question

2012-01-24 Thread Andres Löh
Hi Burak. You seem to assume that old strategies use a different GC policy than new strategies. My understanding is that this is not true. The WEAK policy is used in general now. So old strategies shouldn't be used with more recent GHCs, or you'll lose parallelism. Cheers, Andres _

Re: parallelizing ghc

2012-01-24 Thread Mikhail Glushenkov
Hi, On Tue, Jan 24, 2012 at 7:04 PM, Evan Laforge wrote: >> I'm also interested in a "build server" mode for ghc. I have written a >> parallel wrapper for 'ghc --make' [1], but the speed gains are not as >> impressive [2] as I hoped because of the duplicated work. > > Was the duplicated work rere

Re: parallelizing ghc

2012-01-24 Thread Evan Laforge
> One immediate problem I see with this is linking - 'ghc --make > Main.hs' is able to figure out what packages a program depends on, > while 'ghc Main.o ... -o Main' requires the user to specify them > manually with -package. So you'll either need to pass this information > back to the parent proc

Re: Is it true that an exception is always terminates the thread?

2012-01-24 Thread Edward Z. Yang
Excerpts from Ryan Newton's message of Tue Jan 24 10:25:37 -0500 2012: > This is related but somewhat tangential -- > > *Why isn't there a tryReadChan?* It looks like it would be implementable > with the current Chan representation in terms of tryTakeMVar. Especially > since isEmptyChan is dep

Re: Is it true that an exception is always terminates the thread?

2012-01-24 Thread Ryan Newton
This is related but somewhat tangential -- *Why isn't there a tryReadChan?* It looks like it would be implementable with the current Chan representation in terms of tryTakeMVar. Especially since isEmptyChan is deprecated this would be nice to have. Because of missing tryReadChan there is no n

FW: A Garbage Collection Question

2012-01-24 Thread Simon Peyton-Jones
Can anyone help Burak? Simon -Original Message- From: burak ekici [mailto:ekcbu...@hotmail.com] Sent: 24 January 2012 08:12 To: Simon Peyton-Jones Subject: A Garbage Collection Question Dear Dr. Jones, this time I am disturbing you to ask a question about how garbage collection is bein

Re: parallelizing ghc

2012-01-24 Thread Mikhail Glushenkov
Hi, On Tue, Jan 24, 2012 at 4:53 AM, Evan Laforge wrote: > So ghc --make provides two things: a dependency chaser and a way to > keep the compiler resident as it compiles new files.  Since the > dependency chaser will never be as powerful as a real build system, it > occurs to me that the only re

Re: Is it true that an exception is always terminates the thread?

2012-01-24 Thread John Lato
> From: Heka Treep > Subject: Re: Is it true that an exception is always terminates the >        thread? > To: "Edward Z. Yang" > Cc: glasgow-haskell-users > Message-ID: >         > Content-Type: text/plain; charset=ISO-8859-1 > > 2012/1/23, Edward Z. Yang : >> Excerpts from Heka Treep's message

Re: parallelizing ghc

2012-01-24 Thread Mikhail Glushenkov
Hi, On Tue, Jan 24, 2012 at 4:53 AM, Evan Laforge wrote: > [...] > > So ghc --make provides two things: a dependency chaser and a way to > keep the compiler resident as it compiles new files. Since the > dependency chaser will never be as powerful as a real build system, it > occurs to me that t