Scala 2.9.0 final
scala-lang.org
Scala 2.9.0 final
1–10 of 17 posts
Re: Scala 2.9.0 final
#2Re: Scala 2.9.0 final
#3Re: Scala 2.9.0 final
#4Says our lead programmer: "The new parallel collections are amazing!"
Re: Scala 2.9.0 final
#5Re: Scala 2.9.0 final
#6Re: Scala 2.9.0 final
#7Says our lead programmer: "The new parallel collections are amazing!"
//Uses 4 threads
(1 to 4).par.foreach(x => /*some long computation*/ }
I'd love to see how other languages can do it more tersely with their standard libraries.Re: Scala 2.9.0 final
#8Says our lead programmer: "The new parallel collections are amazing!"
This to me is amazing in it's brevity: //Uses 4 threads (1 to 4).par.foreach(x => /*some long computation*/ } I'd love to see how other languages can do it more tersely with their standard libraries.
using the standard Control.Parallel.Strategies library (use rwhnf instead of rseq unless you are using v3).
Re: Scala 2.9.0 final
#9Says our lead programmer: "The new parallel collections are amazing!"
This to me is amazing in it's brevity: //Uses 4 threads (1 to 4).par.foreach(x => /*some long computation*/ } I'd love to see how other languages can do it more tersely with their standard libraries.
from multiprocessing import Pool
p = Pool(4) # 4 worker threads
p.map(somefunc, someiter)
Not sure if this is apples-to-apples. Regardless, I'm always skeptical of the behavior of threaded code, even if it's embarrassingly parallel stuff that is divided among workers.Re: Scala 2.9.0 final
#10anyone know when the pace of evolution of scala will drop?