[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] google summer of code
From: |
Ivan Raikov |
Subject: |
Re: [Chicken-users] google summer of code |
Date: |
Sat, 08 Mar 2008 08:48:14 +0900 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
"Graham Fawcett" <address@hidden> writes:
> On reflection, I'd much rather see a really efficient IPC system like
> this, rather than having a native-threaded Chicken.
Try the MPI egg! (Yet another shameless plug, I know).
>
> Other than for concurrent designs, I think there is a case for native
> threads when I/O is involved. I believe that GHC Haskell uses a
> separate native thread for handling I/O, but (unless you use forkIO)
> runs everything else in lightweight threads. Perhaps we could play a
> similar game, and spawn native threads as I/O custodians, managed
> under a very strict protocol that avoids GC contention and other
> concurrency issues. Perhaps one I/O thread and select/epoll is enough.
No, forkIO is normally for lightweight threads. forkOS explicitly
associates Haskell threads with native threads. See here for details:
http://www.haskell.org/ghc/docs/latest/html/libraries/base/Control-Concurrent.html#osthreads
Concurrent Haskell is based on monadic processes: if you want to
have Haskell-like threads, first you need to provide support for
monads in the core of Chicken.
-Ivan
- Re: [Chicken-users] google summer of code, (continued)
- Re: [Chicken-users] google summer of code, Shawn Rutledge, 2008/03/05
- Re: [Chicken-users] google summer of code, Ivan Raikov, 2008/03/05
- Re: [Chicken-users] google summer of code, Alex Shinn, 2008/03/05
- Re: [Chicken-users] google summer of code, Ivan Raikov, 2008/03/05
- Re: [Chicken-users] google summer of code, Alaric Snell-Pym, 2008/03/06
- Re: [Chicken-users] google summer of code, Alex Shinn, 2008/03/06
- Re: [Chicken-users] google summer of code, felix winkelmann, 2008/03/07
- Re: [Chicken-users] google summer of code, Alaric Snell-Pym, 2008/03/10
- Re: [Chicken-users] google summer of code, Graham Fawcett, 2008/03/07
- Re: [Chicken-users] google summer of code,
Ivan Raikov <=
- Re: [Chicken-users] google summer of code, Graham Fawcett, 2008/03/07
- [Chicken-users] Re: Chicken MPI, Ivan Raikov, 2008/03/08
- [Chicken-users] Re: Chicken MPI, Graham Fawcett, 2008/03/08
- Re: [Chicken-users] google summer of code, felix winkelmann, 2008/03/10
- Re: [Chicken-users] google summer of code, Ivan Raikov, 2008/03/10
- Re: [Chicken-users] google summer of code, Felix Winkelmann, 2008/03/12
- Re: [Chicken-users] google summer of code, Ivan Raikov, 2008/03/12
- Re: [Chicken-users] google summer of code, Houman Zolfaghari, 2008/03/10
- Re: [Chicken-users] google summer of code, Tobia Conforto, 2008/03/11
- Re: [Chicken-users] google summer of code, Alaric Snell-Pym, 2008/03/10