After many months of work, the Scala Team is happy to announce the first release candidate of the new Scala 2.9 distribution! Scala 2.9.0 RC1 [1] is currently available from our Download Page [2]. The Scala 2.9.0 codebase includes several additions, notably the new Parallel Collections, but it also introduces improvements on many existing features, and contains many bug fixes.
Please help us with the testing of this release candidate, and let us know of any issues you may detect.
This Release Candidate is made available for testing purposes only and is not intended for production environments. We will wait at least two weeks before issuing a final release, in order to allow developers and testers to send us their feedback.
The new Scala 2.9 codebase includes the following new features and changes:
Every collection may be converted into a corresponding parallel collection with the new `par` method. Parallel collections utilize multicore processors by implementing bulk operations such as `foreach`, `map`, `filter` etc. in parallel. Parallel collections are located in the package `scala.collection.parallel`.
Depending on the collection in question, `par` may require copying the underlying dataset to create a parallel collection. However, specific collections share their underlying dataset with a parallel collection, making `par` a constant time operation.
Currently available parallel collections are:
The method `seq` is used to convert from a parallel collection to a corresponding sequential collection. This method is always efficient (O(1)).
try body catch handler finally cleanup
Here, body, hander, and cleanup can be arbitrary expressions.
A large number of bugfixes and performance improvements.
Links:
[1] http://www.scala-lang.org/downloads#RC
[2] http://www.scala-lang.org/downloads