Delimited continuations for prolog

T. Schrijvers, B. Demoen, B Desouter, J. Wielemaker

Research output: Contribution to JournalArticleAcademicpeer-review

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. Copyright © 2013 [TOM SCHRIJVERS, BART DEMOEN, BENOIT DESOUTER and JAN WIELEMAKER].
Original languageEnglish
Pages (from-to)533-546
Number of pages14
JournalTheory and practice of logic programming
Volume13
Issue number4-5
DOIs
Publication statusPublished - 2013

Fingerprint

Dive into the research topics of 'Delimited continuations for prolog'. Together they form a unique fingerprint.

Cite this