Arrows for Parallel Computation

Martin Braun, Oleg Lobachev, Phil Trinder
1/7/2018
cs.PL

Official code: Parrows/Parrows (18 stars, last commit 2020-08-01).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Parrows/ParrowsOfficial100%

Using Arrows to model parallel processes/computations.

182TeX, FregeMay 12, 20166 years agoNOASSERTION
arrowarrowscomputinghaskellparallel

Similar Papers

Cite this paper

@article{braun2018arrows,
  title  = {Arrows for Parallel Computation},
  author = {Martin Braun and Oleg Lobachev and Phil Trinder},
  year   = {2018},
  eprint = {1801.02216},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1801.02216}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1801.02216.svg)](https://codeofpaper.com/paper/1801.02216)

Discussion