Tor: Extensible Search with Hookable Disjunction


Schrijvers, Tom and Triska, Markus and Demoen, Bart.
Principles and Practice of Declarative Programming, 14th International ACM SIGPLAN Symposium, Proceedings.
King, Andy, eds.
ACM, 2012.

Abstract

Horn Clause Programs have a natural depth-first procedural semantics. However, for many programs this procedural semantics is ineffective. In order to compute useful solutions, one needs the ability to modify the search method that explores the alternative execution branches. Tor, a well-defined hook into Prolog disjunction, provides this ability. It is light-weight thanks to its library approach and efficient because it is based on program transformation. Tor is general enough to mimic search-modifying predicates like ECLiPSe's search/6. Moreover, Tor supports modular composition of search methods and other hooks. Our library is already provided and used as an add-on to SWI-Prolog.

BibTeX

@inproceedings{ppdp2012,
  author = {Schrijvers, Tom and Triska, Markus and Demoen, Bart},
  editor = {King, Andy},
  booktitle = {Principles and Practice of Declarative Programming, 14th International ACM SIGPLAN Symposium, Proceedings},
  title = {Tor: Extensible Search with Hookable Disjunction},
  publisher = {ACM},
  year = {2012},
  url = {/Research/papers/ppdp2012.pdf},
  abstract = {Horn Clause Programs have a natural depth-first procedural semantics.  However,
  for many programs this procedural semantics is ineffective. 
  In order to compute useful solutions, one needs the ability to modify the search
  method that explores the alternative execution branches.
  
  Tor, a well-defined hook into Prolog disjunction, provides this ability.
  It is light-weight thanks to its library approach and efficient
  because it is based on program transformation.
  Tor is general enough to mimic search-modifying
  predicates like ECLiPSe's search/6. Moreover, Tor supports 
  modular composition of search methods and other hooks.
  Our library is already
  provided and used as an add-on to SWI-Prolog.
  },
}