Re: STM and fairness

2008-02-29 Thread Roberto Zunino
Josef Svenningsson wrote: What I want to know boils down to this: what order are processes run which have been woken up from a call to retry? IIUC, the order of wake up is irrelevant, since *all* the threads will re-run the transaction in parallel. So, even if thread 1 is the first to wake up

STM and fairness

2008-02-29 Thread Josef Svenningsson
Hi, I'd like to know a bit about the STM implementation in GHC, specifically about how it tries to achieve fairness. I've been reading "Composable Memory Transactions" but it does not contain that much details on this specific matter. What I want to know boils down to this: what order are processe

Re: STM and fairness

2008-02-29 Thread Josef Svenningsson
On Fri, Feb 29, 2008 at 4:27 PM, Roberto Zunino <[EMAIL PROTECTED]> wrote: > Josef Svenningsson wrote: > > What I want to know boils down to > > this: what order are processes run which have been woken up from a > > call to retry? > > IIUC, the order of wake up is irrelevant, since *all* the th

Re: static constants -- ideas?

2008-02-29 Thread Don Stewart
jay: > Don Stewart [EMAIL PROTECTED]: > >jay: > >> Don Stewart [EMAIL PROTECTED]: > >> >jay: > >> >> I also have constants that are too large to compile. I am resigned to > >> >> loading them from data files--other solutions seem even worse. > >> ... > >> >> Data.Binary eases the irritation somewha

Re: static constants -- ideas?

2008-02-29 Thread Jay Scott
Don Stewart [EMAIL PROTECTED]: >jay: >> Don Stewart [EMAIL PROTECTED]: >> >jay: >> >> I also have constants that are too large to compile. I am resigned to >> >> loading them from data files--other solutions seem even worse. >> ... >> >> Data.Binary eases the irritation somewhat. >> > >> >Did you t

Re: static constants -- ideas?

2008-02-29 Thread Jay Scott
Don Stewart [EMAIL PROTECTED]: >jay: >> Don Stewart [EMAIL PROTECTED]: >> >jay: >> >> I also have constants that are too large to compile. I am resigned to >> >> loading them from data files--other solutions seem even worse. >> ... >> >> Data.Binary eases the irritation somewhat. >> > >> >Did you

Re: static constants -- ideas?

2008-02-29 Thread Jay Scott
Don Stewart [EMAIL PROTECTED]: >jay: >> Don Stewart [EMAIL PROTECTED]: >> >jay: >> >> Don Stewart [EMAIL PROTECTED]: >> >> >jay: >> >> >> I also have constants that are too large to compile. I am resigned to >> >> >> loading them from data files--other solutions seem even worse. >> >> ... >> >> >>

Re: static constants -- ideas?

2008-02-29 Thread Don Stewart
jay: > Don Stewart [EMAIL PROTECTED]: > > >jay: > >> Don Stewart [EMAIL PROTECTED]: > >> >jay: > >> >> Don Stewart [EMAIL PROTECTED]: > >> >> >jay: > >> >> >> I also have constants that are too large to compile. I am resigned to > >> >> >> loading them from data files--other solutions seem even wo

RE: STM and fairness

2008-02-29 Thread Simon Peyton-Jones
| I'd like to know a bit about the STM implementation in GHC, | specifically about how it tries to achieve fairness. I've been reading | "Composable Memory Transactions" but it does not contain that much | details on this specific matter. What I want to know boils down to | this: what order are pro

Re: static constants -- ideas?

2008-02-29 Thread Jason Dusek
Bryan O'Sullivan <[EMAIL PROTECTED]> wrote: > The trick I usually use in cases like this is to compile the > data as C code and link against it, then access it from > Haskell via a Ptr. For my particular application, I really need to ship a single static binary that has it all -- data as well