Re: pmap not parallel for me...

2009-01-31 Thread Conrad
Yup, that fixed it. Thanks! -Conrad --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to cloj

Re: pmap not parallel for me...

2009-01-31 Thread Rich Hickey
On Jan 31, 11:41 am, Conrad wrote: > Hi everyone- I'm a new Clojurist trying to understand how to make use > of Clojure parallelism... I wrote this simple program that calculates > the number of prime numbers in a number range. It is purposely > inefficient: > > (defn prime [a] > (not-any? #(

pmap not parallel for me...

2009-01-31 Thread Conrad
Hi everyone- I'm a new Clojurist trying to understand how to make use of Clojure parallelism... I wrote this simple program that calculates the number of prime numbers in a number range. It is purposely inefficient: (defn prime [a] (not-any? #(integer? (/ a %)) (range 2 a))) (defn primes [a b]

pmap not parallel for me...

2009-01-31 Thread Conrad
Hi everyone- I'm a new Clojurist trying to understand how to make use of Clojure parallelism... I wrote this simple program that calculates the number of prime numbers in a number range. It is purposely inefficient: (defn prime [a] (not-any? #(integer? (/ a %)) (range 2 a))) (defn primes [a b]