A monad for deterministic parallelism
Simon Marlow, Ryan Newton, Simon Jones · 2011
We present a new programming model for deterministic parallel computation in a pure functional language. The model is monadic and has explicit granularity, but allows dynamic construction of dataflow networks that are scheduled at runtime, while remaining deterministic and pure. The implementation is based on monadic concurrency, which has until now only been used to simulate concurrency in functional languages, rather than to provide parallelism. We present the API with its semantics, and argue that parallel execution is deterministic. Furthermore, we present a complete work-stealing scheduler implemented as a Haskell library, and we show that it performs at least as well as the existing parallel programming models in Haskell.
Cited by 97 works. doi:10.1145/2034675.2034685
Authors
References
- Cilk
- Algorithmic skeletons : structured management of parallel computation
- I-structures: data structures for parallel computing
- Exploiting coarse-grained task, data, and pipeline parallelism in stream programs
- Algorithm + strategy = parallelism
- Readings in Hardware/Software Co-Design
- Lazy functional state threads
- Implicit Parallel Programming in pH
- Data parallel Haskell
- Combining events and threads for scalable network services implementation and evaluation of monadic, application-level concurrency primitives