Tor: Modular search with hookable disjunction


Tom Schrijvers and Bart Demoen and Markus Triska and Benoit Desouter.
In Science of Computer Programming , 84:0, pp. 101 - 120, 2014.

Abstract

Abstract Horn Clause Programs have a natural exhaustive depth-first procedural semantics. However, for many programs this 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. The Tor library is already provided and used as an add-on to SWI-Prolog.

BibTeX

@article{scp2014,
  number = {0},
  pages = {101 - 120},
  volume = {84},
  year = {2014},
  title = {Tor: Modular search with hookable disjunction },
  journal = {Science of Computer Programming },
  issn = {0167-6423},
  doi = {http://dx.doi.org/10.1016/j.scico.2013.05.008},
  url = {/Research/papers/scp2013.pdf},
  author = {Tom Schrijvers and Bart Demoen and Markus Triska and Benoit Desouter},
  abstract = {Abstract Horn Clause Programs have a natural exhaustive depth-first
procedural semantics. However, for many programs this 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. The Tor library is already
provided and used as an add-on to SWI-Prolog.},
}