并行计算的箭头
Arrows for Parallel Computation
摘要:
箭头是计算的通用接口,也是API设计中Monad的替代品。与基于Monad的并行性相比,我们探索了使用箭头来指定广义并行性。具体来说,我们定义了一个基于Arrow的语言,并使用多个并行Haskell实现它。由于每个并行计算都是一个箭头,因此这种并行箭头(PArrows)可以很容易地组合和转换。为了允许更复杂的分布式系统中的计算节点之间的通信方案,我们利用期货的概念来包装直接通信。为了表明PArows具有与现有并行语言相似的表达能力,我们实现了几个算法框架和四个基准测试。基准测试表明,我们的框架不会引起任何显着的性能开销。我们的结论是,箭头有相当大的潜力,组成并行程序和生产程序,可以执行多个并行语言实现。
英文摘要:
Arrows are a general interface for computation and an alternative to Monads for API design. In contrast to Monad-based parallelism, we explore the use of Arrows for specifying generalised parallelism. Specifically, we define an Arrow-based language and implement it using multiple parallel Haskells. As each parallel computation is an Arrow, such parallel Arrows (PArrows) can be readily composed and transformed as such. To allow for more sophisticated communication schemes between computation nodes in distributed systems, we utilise the concept of Futures to wrap direct communication. To show that PArrows have similar expressive power as existing parallel languages, we implement several algorithmic skeletons and four benchmarks. Benchmarks show that our framework does not induce any notable performance overhead. We conclude that Arrows have considerable potential for composing parallel programs and for producing programs that can execute on multiple parallel language implementations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。