Seq no more
Simon Marlow, Patrick J. Maier, Hans‐Wolfgang Loidl et al. · 2010
We present a complete redesign of evaluation strategies, a key abstraction for specifying pure, deterministic parallelism in Haskell. Our new formulation preserves the compositionality and modularity benefits of the original, while providing significant new benefits. First, we introduce an evaluation-order monad to provide clearer, more generic, and more efficient specification of parallel evaluation. Secondly, the new formulation resolves a subtle space management issue with the original strategies, allowing parallelism (sparks) to be preserved while reclaiming heap associated with superfluous parallelism. Related to this, the new formulation provides far better support for speculative parallelism as the garbage collector now prunes unneeded speculation. Finally, the new formulation provides improved compositionality: we can directly express parallelism embedded within lazy data structures, producing more compositional strategies, and our basic strategies are parametric in the coordination combinator, facilitating a richer set of parallelism combinators.
Cited by 66 works. doi:10.1145/1863523.1863535
Authors
References
- Programming parallel algorithms
- Algorithmic skeletons : structured management of parallel computation
- Lazy task creation: a technique for increasing the granularity of parallel programs
- Functional Programming
- Parallel and Distributed Haskells
- Applicative programming with effects
- Algorithm + strategy = parallelism
- Implicit Parallel Programming in pH
- Data parallel Haskell
- Parallel functional programming in Eden