Hostname: page-component-7b7567c8c-fvjsw Total loading time: 0 Render date: 2026-11-12T05:26:51.932Z Has data issue: false hasContentIssue false

Delimited continuations for prolog

Published online by Cambridge University Press:  25 September 2013

TOM SCHRIJVERS
Affiliation:
Ghent University, Belgium (e-mail: tom.schrijvers@ugent.be)
BART DEMOEN
Affiliation:
KU Leuven, Belgium (e-mail: bart.demoen@cs.kuleuven.be)
BENOIT DESOUTER
Affiliation:
Ghent University, Belgium (e-mail: benoit.desouter@ugent.be)
JAN WIELEMAKER
Affiliation:
University of Amsterdam, The Netherlands (e-mail: jan@swi-prolog.org)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

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.

Information

Type
Regular Papers
Copyright
Copyright © 2013 [TOM SCHRIJVERS, BART DEMOEN, BENOIT DESOUTER and JAN WIELEMAKER]