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
cpu-intensive multithreading
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
Patrick Useldinger  
View profile  
 More options Sep 21 2012, 11:32 am
Newsgroups: comp.lang.scheme
From: Patrick Useldinger <use...@gmail.com>
Date: Fri, 21 Sep 2012 08:32:35 -0700 (PDT)
Local: Fri, Sep 21 2012 11:32 am
Subject: cpu-intensive multithreading
Is there any portable (Win, OSX) Scheme implementation which can distribute and preempt cpu-intensive threads over several processors / cores? I am looking to port some number-crunching thing from Python and I'd love to avoid C++.

 
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.
Sam Tobin-Hochstadt  
View profile  
 More options Sep 21 2012, 2:39 pm
Newsgroups: comp.lang.scheme
From: Sam Tobin-Hochstadt <sam...@gmail.com>
Date: Fri, 21 Sep 2012 11:39:27 -0700 (PDT)
Local: Fri, Sep 21 2012 2:39 pm
Subject: Re: cpu-intensive multithreading

On Friday, September 21, 2012 11:32:35 AM UTC-4, Patrick Useldinger wrote:
> Is there any portable (Win, OSX) Scheme implementation which can distribute and preempt cpu-intensive threads over several processors / cores? I am looking to port some number-crunching thing from Python and I'd love to avoid C++.

Racket [1] provides facilities for using multiple processors and cores, in the form of futures [2] and places [3].

[1] http://racket-lang.org
[2] http://docs.racket-lang.org/reference/futures.html
[3] http://docs.racket-lang.org/reference/places.html


 
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.
Patrick Useldinger  
View profile  
 More options Sep 21 2012, 4:11 pm
Newsgroups: comp.lang.scheme
From: Patrick Useldinger <use...@gmail.com>
Date: Fri, 21 Sep 2012 13:11:24 -0700 (PDT)
Local: Fri, Sep 21 2012 4:11 pm
Subject: Re: cpu-intensive multithreading

On Friday, September 21, 2012 8:39:27 PM UTC+2, Sam Tobin-Hochstadt wrote:
> Racket [1] provides facilities for using multiple processors and cores, in the form of futures [2] and places [3].

I have had a look at Racket before, but
1) threads do not work for me
2) futures look a little like black magic (according to the guide, paragraph 18.10) and it's hard to predict whether they will really run in parallel, or what you can do about it
3) places will most likely not permit to share top-level variables (at least in Windows where fork() does not work as in *nix).

Does any of these permit at least read access to global variables? I know this is not recommended, but in my case it is the easiest solution without refactoring the whole program.


 
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.
Sam Tobin-Hochstadt  
View profile  
 More options Sep 21 2012, 5:56 pm
Newsgroups: comp.lang.scheme
From: Sam Tobin-Hochstadt <sam...@gmail.com>
Date: Fri, 21 Sep 2012 14:56:01 -0700 (PDT)
Local: Fri, Sep 21 2012 5:56 pm
Subject: Re: cpu-intensive multithreading

Futures are true shared-memory, and thus support read and write access to all variables.  Depending on your application, futures can be very effective even if they don't guarantee parallelism.  Number-crunching is a particular strength here -- see this benchmark for an example: https://github.com/plt/racket/blob/master/collects/tests/racket/bench...

Sam


 
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.
Patrick Useldinger  
View profile  
 More options Sep 22 2012, 8:53 am
Newsgroups: comp.lang.scheme
From: Patrick Useldinger <use...@gmail.com>
Date: Sat, 22 Sep 2012 05:53:14 -0700 (PDT)
Local: Sat, Sep 22 2012 8:53 am
Subject: Re: cpu-intensive multithreading

On Friday, September 21, 2012 11:56:01 PM UTC+2, Sam Tobin-Hochstadt wrote:
> Futures are true shared-memory, and thus support read and write access to all variables.  Depending on your application, futures can be very effective even if they don't guarantee parallelism.  Number-crunching is a particular strength here -- see this benchmark for an example: https://github.com/plt/racket/blob/master/collects/tests/racket/bench...

Thanks. I'll give it a try.

Regards,
-Patrick


 
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.
Aaron W. Hsu  
View profile  
 More options Sep 24 2012, 2:27 am
Newsgroups: comp.lang.scheme
From: "Aaron W. Hsu" <arcf...@sacrideo.us>
Date: Mon, 24 Sep 2012 01:27:29 -0500
Local: Mon, Sep 24 2012 2:27 am
Subject: Re: cpu-intensive multithreading

On Fri, 21 Sep 2012 08:32:35 -0700, Patrick Useldinger wrote:
> Is there any portable (Win, OSX) Scheme implementation which can
> distribute and preempt cpu-intensive threads over several processors /
> cores? I am looking to port some number-crunching thing from Python and
> I'd love to avoid C++.

Chez Scheme can do this. In particular, I am currently implementing a
high-performance lightweight threading system based on a work stealing
deque and atomic CAS operations. It's for an implementation of APL on top
of Scheme, and it should do quite well for number crunching. If you are
interested, I would love to have real world code to benchmark.

--
Aaron W. Hsu | arcf...@sacrideo.us | http://www.sacrideo.us
Programming is just another word for the lost art of thinking.


 
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.
Patrick Useldinger  
View profile  
 More options Sep 26 2012, 9:09 am
Newsgroups: comp.lang.scheme
From: Patrick Useldinger <use...@gmail.com>
Date: Wed, 26 Sep 2012 06:09:20 -0700 (PDT)
Local: Wed, Sep 26 2012 9:09 am
Subject: Re: cpu-intensive multithreading

On Monday, September 24, 2012 8:27:30 AM UTC+2, Aaron W. Hsu wrote:
> Chez Scheme can do this. In particular, I am currently implementing a
> high-performance lightweight threading system based on a work stealing
> deque and atomic CAS operations. It's for an implementation of APL on top
> of Scheme, and it should do quite well for number crunching. If you are
> interested, I would love to have real world code to benchmark.

Indeed it seems to fit, according to the docs. But I seem to be unable to even get a price quotation for Chez Scheme, and Petite does not fit here.

 
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.
John Cowan  
View profile  
 More options Sep 26 2012, 12:45 pm
Newsgroups: comp.lang.scheme
From: John Cowan <johnwco...@gmail.com>
Date: Wed, 26 Sep 2012 09:45:56 -0700 (PDT)
Local: Wed, Sep 26 2012 12:45 pm
Subject: Re: cpu-intensive multithreading

On Wednesday, September 26, 2012 9:09:22 AM UTC-4, Patrick Useldinger wrote:
> Indeed it seems to fit, according to the
> docs. But I seem to be unable to even get a
> price quotation for Chez Scheme, and Petite
> does not fit here.

For a price quotation, talk to info at scheme dot com.

 
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.
Patrick Useldinger  
View profile  
 More options Sep 26 2012, 1:57 pm
Newsgroups: comp.lang.scheme
From: Patrick Useldinger <use...@gmail.com>
Date: Wed, 26 Sep 2012 10:57:40 -0700 (PDT)
Local: Wed, Sep 26 2012 1:57 pm
Subject: Re: cpu-intensive multithreading

On Wednesday, September 26, 2012 6:45:56 PM UTC+2, John Cowan wrote:
> For a price quotation, talk to info at scheme dot com.

That's what I did. The answer was:

"Thank you for your interest in Chez Scheme.  Cadence Research Systems is now a part of Cisco Systems.  Over time, Chez Scheme will be integrated into Cisco's offerings.  As new updates become available, our team will contact you directly."


 
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.
zahari.zahar...@gmail.com  
View profile  
 More options Sep 28 2012, 3:38 am
Newsgroups: comp.lang.scheme
From: zahari.zahar...@gmail.com
Date: Fri, 28 Sep 2012 00:38:13 -0700 (PDT)
Local: Fri, Sep 28 2012 3:38 am
Subject: Re: cpu-intensive multithreading

On Friday, September 21, 2012 6:32:35 PM UTC+3, Patrick Useldinger wrote:
> Is there any portable (Win, OSX) Scheme implementation which can distribute and preempt cpu-intensive threads over several processors / cores? I am looking to port some number-crunching thing from Python and I'd love to avoid C++.

You can try ShedSkin it will automatically generate C++ code from your Python source along with a Make file.

 
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.
Robert Klemme  
View profile  
 More options Sep 28 2012, 11:32 am
Newsgroups: comp.lang.scheme
From: Robert Klemme <shortcut...@googlemail.com>
Date: Fri, 28 Sep 2012 17:32:34 +0200
Local: Fri, Sep 28 2012 11:32 am
Subject: Re: cpu-intensive multithreading
On 26.09.2012 19:57, Patrick Useldinger wrote:

> On Wednesday, September 26, 2012 6:45:56 PM UTC+2, John Cowan wrote:
>> For a price quotation, talk to info at scheme dot com.

> That's what I did. The answer was:

> "Thank you for your interest in Chez Scheme.  Cadence Research
> Systems is now a part of Cisco Systems.  Over time, Chez Scheme will
> be integrated into Cisco's offerings.  As new updates become
> available, our team will contact you directly."

Reminds me of the saying: "Good things come to those who wait."  Well...

Kind regards

        robert

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/


 
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.
Ludovic Courtès  
View profile  
 More options Oct 3 2012, 5:10 pm
Newsgroups: comp.lang.scheme
From: l...@gnu.org (Ludovic Courtès)
Date: Wed, 03 Oct 2012 23:10:27 +0200
Local: Wed, Oct 3 2012 5:10 pm
Subject: Re: cpu-intensive multithreading
 
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.
gavino_learning  
View profile  
 More options Nov 7 2012, 12:49 am
Newsgroups: comp.lang.scheme
From: gavino_learning <visphatesj...@gmail.com>
Date: Tue, 6 Nov 2012 21:49:22 -0800 (PST)
Local: Wed, Nov 7 2012 12:49 am
Subject: Re: cpu-intensive multithreading

On Wednesday, October 3, 2012 5:10:28 PM UTC-4, Ludovic Courtès wrote:
> GNU Guile 2.0 has futures [0], as well as lower-level thread handling

> routines [1], including SRFI-18 [2].

> [0] http://www.gnu.org/software/guile/manual/html_node/Futures.html

> [1] http://www.gnu.org/software/guile/manual/html_node/Threads.html

> [2] http://www.gnu.org/software/guile/manual/html_node/SRFI_002d18.html

does the guile html server have threading or futures ability to use 8 cpu machine?

 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »