Scala 2.9 将添加哪些新功能? [英] What new features will be added to Scala 2.9?

查看:55
本文介绍了Scala 2.9 将添加哪些新功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道平行系列将可用.

I know parallel collections will become available.

这些将采取什么形式,我们可能还会看到什么?

What form will these take, and what else are we likely to see?

推荐答案

完整列表参见:超越 2.8 - 路线图

主要似乎是并行集合.它们是 Scala 集合的直接替代品,但方法是并行执行的.

The main thing seems to be parallel collections. They are drop-in replacement for the scala collections, but the methods are executed in parallel.

来自 Aleksandar Prokopec 的 scala days 演示:

From the scala days presentation by Aleksandar Prokopec:

Scala 并行集合在 2.8 重新实现中引入标准收集操作,而保持与现有的兼容性Scala 集合框架.他们也引入新的操作并行特性算法,和一些合同程序员应该知道.

Scala parallel collections that will be introduced in 2.8 reimplement standard collection operations while keeping compatibility with existing Scala collection framework. They also introduce new operations characteristic for parallel algorithms, and a few contracts the programmer should be aware of.

有关并行集合的精彩视频说明,请参阅 Scala 并行集合 - Aleksandar Prokopec

For a good video explanation of parallel collections, see Scala Parallel Collections - Aleksandar Prokopec

这篇关于Scala 2.9 将添加哪些新功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆