Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How Many Processor Cores Are Enough?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris Thomasson  
View profile  
 More options Nov 21 2006, 1:49 am
Newsgroups: comp.arch
From: "Chris Thomasson" <cris...@comcast.net>
Date: Mon, 20 Nov 2006 22:49:35 -0800
Local: Tues, Nov 21 2006 1:49 am
Subject: Re: How Many Processor Cores Are Enough?
"Brian Hurt" <bh...@spnz.org> wrote in message

news:e0t8h.7975$lq.2268@newsread1.mlpsca01.us.to.verio.net...

> n...@cus.cam.ac.uk (Nick Maclaren) writes:

>>That experience debunked the claims of the
>>functional programming brigade that such methodology gave automatic
>>parallelisation.

> Automatic parallelization, no.  You're looking for a silver bullet that
> probably doesn't exist.  On the other hand, functional programming makes
> writting parallel code much easier to do.

> The biggest problem with parallelized code is the race condition- which
> arise from mutable data.  Every peice of mutable data is a race condition
> waiting to happen.  Mutable data needs to be kept to an absolute minimum,
> and then handled in such a way that it's correct in the presence of
> threads.

> I've come to the conclusion that functional programming is necessary-
> just not sufficient.

http://groups.google.com/group/comp.programming.threads/browse_frm/th...

Your conclusion is wrong. No need to be afraid of mutable data... Just stick
it all in the writer side of a lock-free reader pattern.

> There are two languages I know of in which it may
> be possible to write non-trivial parallel programs correctly and
> maintainably- concurrent haskell with STM and erlang- and both are, at
> their core, purely functional languages.

STM is a no go. Way too much overhead... Here are some of the reasons why:

http://groups.google.com/group/comp.arch/msg/e1e391055c7acecb

http://groups.google.com/group/comp.programming.threads/browse_frm/th...

http://groups.google.com/group/comp.programming.threads/browse_frm/th...

http://groups.google.com/group/comp.arch/msg/1b9e405080e93149

http://groups.google.com/group/comp.arch/msg/bbbc035cf1a8502c

http://groups.google.com/group/comp.arch/msg/11b14c4bda2d5d82

http://groups.google.com/group/comp.arch/msg/9b00fda2752966f9

http://groups.google.com/group/comp.arch/msg/335aeb22fd6fe526

http://groups.google.com/group/comp.arch/msg/1ace9400b1b16cd4

http://groups.google.com/group/comp.arch/msg/995379a16beb3b69
(simply excellent Wheeler post)

...

Any thoughts?

;^)


 
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.