arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2008.00553cs.DCstat.CO
收藏

使用Futures的R语言并行和分布式处理的统一框架

A Unifying Framework for Parallel and Distributed Processing in R using Futures

Henrik Bengtsson

摘要:

一个未来是设计用于代码的并发和异步评估的编程构造,使其对于并行处理特别有用。future包实现了Future API,用于在R中使用future进行编程。这个最小的API提供了足够的结构来实现并行版本的完善的高级映射缩减API。未来的生态系统支持异常处理、输出和条件中继、并行随机数生成以及全局自动识别,从而降低了代码并行化的阈值。Future API将并行前端与并行后端连接起来,遵循的理念是最终用户选择并行后端,而开发人员则专注于并行化的内容。存在各种各样的后端,并且自动支持满足规范的第三方贡献,这确保相同的代码在所有后端上都能工作。未来的框架解决了R中其他并行框架没有解决的几个问题。

英文摘要:

A future is a programming construct designed for concurrent and asynchronous evaluation of code, making it particularly useful for parallel processing. The future package implements the Future API for programming with futures in R. This minimal API provides sufficient constructs for implementing parallel versions of well-established, high-level map-reduce APIs. The future ecosystem supports exception handling, output and condition relaying, parallel random number generation, and automatic identification of globals lowering the threshold to parallelize code. The Future API bridges parallel frontends with parallel backends following the philosophy that end-users are the ones who choose the parallel backend while the developer focuses on what to parallelize. A variety of backends exist and third-party contributions meeting the specifications, which ensure that the same code works on all backends, are automatically supported. The future framework solves several problems not addressed by other parallel frameworks in R.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑