Newsgroups: fa.haskell
From: "Cale Gibbard" <cgibb...@gmail.com>
Date: Sat, 16 Feb 2008 23:50:26 UTC
Local: Sat, Feb 16 2008 6:50 pm
Subject: Re: [Haskell-cafe] Doubting Haskell
On 16/02/2008, Alan Carter <alangcar...@gmail.com> wrote:
> Then when all this was going on, question number five appeared: What Sorry for missing this question in my first response. The answer of > the hell are these "lightweight Haskell threads"? Are they some kind > of green threads running non-preemptively inside a single OS thread? > Are they OS threads that could run concurrently on multi-core > hardware? If they are green threads (and it sounds like they are) then > this is all an academic exercise which has no production application > yet. > Best wishes - and still hoping I'm wrong after all > Alan Carter course depends on the Haskell implementation in question, but of course, we're talking about GHC here. Haskell threads, in the sense of Control.Concurrent.forkIO, are I'm a little hazy on the details, and perhaps someone more familiar Aside from Concurrent Haskell (which was originally designed for par :: a -> b -> b Evaluation of an expression of the form (par x y) will cause x to be >From this extremely simple form of parallel annotation, it's possible to build lots of interesting mechanisms for carrying out evaluation in parallel. You can read more about that in a paper titled "Algorithm + Strategy = Parallelism" by PW Trinder, K Hammond, H-W Loidl and Simon Peyton Jones, or check out the documentation for Control.Parallel.Strategies. - Cale You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||