Memoizing a Monadic Mixin DSL

Pieter Wuille, Tom Schrijvers, Horst Samulowitz, Guido Tack, Peter J. Stuckey

Abstract

Modular extensibility is a highly desirable property of a domain-specific language (DSL): the ability to add new features without affecting the implementation of existing features. Functional mixins (also known as open recursion) are very suitable for this purpose. We study the use of mixins in Haskell for a modular DSL for search heuristics used in systematic solvers for combinatorial problems, that generate optimized CC++ code from a high-level specification. We show how to apply memoization techniques to tackle performance issues and code explosion due to the high recursion inherent to the semantics of combinatorial search. As such heuristics are conventionally implemented as highly entangled imperative algorithms, our Haskell mixins are monadic. Memoization of monadic components causes further complications for us to deal with.
BibTeX
@inproceedings{wuille2011memoizing,
  author = {Pieter Wuille and Tom Schrijvers and Horst Samulowitz and Guido Tack and Peter J. Stuckey},
  title = {{Memoizing a Monadic Mixin DSL}},
  booktitle = {WFLP},
  year = {2011},
  doi = {10.1007/978-3-642-22531-4\_5},
}

Loading related content...

Figure