Abstract
Non-deterministic choice supports efficient parallel speculation, but unrestricted non-determinism destroys the referential transparency of purely-declarative languages by removing unfoldability and it bears the danger of wasting resources on unnecessary computations. While numerous choice mechanisms have been proposed that preserve unfoldability, and some concurrent implementations exist, we believe that no compiled parallel implementation has previously been constructed This paper presents the design, semantics, implementation and use of a family of bottom-avoiding choice operators for Glasgow parallel Haskell. The subtle semantic properties of our choice operations are described, including a careful classification using an existing framework, together with a discussion of operational semantics issues and the pragmatics of distributed memory implementation. The expressiveness of our choice operators is demonstrated by constructing a branch and bound search, a merge and a speculative conditional. Their effectiveness is demonstrated by comparing the parallel performance of the speculative search with naive and 'perfect' implementations. Their efficiency is assessed by measuring runtime overhead and heap consumption.
Author supplied keywords
Cite
CITATION STYLE
Rauber Du Bois, A., Pointon, R., Loidl, H. W., & Trinder, P. (2002). Implementing declarative parallel bottom-avoiding choice. In Proceedings - Symposium on Computer Architecture and High Performance Computing (Vol. 2002-January, pp. 82–89). IEEE Computer Society. https://doi.org/10.1109/CAHPC.2002.1180763
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.