Delimited Continuations for Prolog


Tom Schrijvers and Bart Demoen and Benoit Desouter and Jan Wielemaker.
In Theory and Practice of Logic Programming (TPLP), Cambridge University Press, 2013.
Proceedings of the International Conference on Logic Programming (ICLP).

Abstract

Delimited continuations are a famous control primitive that originates in the functional programming world. It allows the programmer to suspend and capture the remaining part of a computation in order to resume it later. We put a new Prolog-compatible face on this primitive and specify its semantics by means of a meta-interpreter. Moreover, we establish the power of delimited continuations in Prolog with several example definitions of high-level language features. Finally, we show how to easily and effectively add delimited continuations support to the WAM.

BibTeX

@article{iclp2013,
  author = {Tom Schrijvers and Bart Demoen and Benoit Desouter and Jan Wielemaker},
  title = {Delimited Continuations for Prolog},
  year = {2013},
  publisher = {Cambridge University Press},
  journal = {Theory and Practice of Logic Programming (TPLP)},
  note = {Proceedings of the International Conference on Logic Programming (ICLP)},
  url = {/Research/papers/iclp2013.pdf},
  abstract = {Delimited continuations are a famous control primitive that originates in the functional programming world. It allows the programmer to suspend and capture the remaining part of a computation in order to resume it later. We put a new Prolog-compatible face on this primitive and specify its semantics by means of a meta-interpreter. Moreover, we establish the power of delimited continuations in Prolog with several example definitions of high-level language features. Finally, we show how to easily and effectively add delimited continuations support to the WAM.},
}