On the static and dynamic extents of delimited continuations

  • Authors:
  • Dariusz Biernacki;Olivier Danvy;Chung-chieh Shan

  • Affiliations:
  • BRICS, Department of Computer Science, University of Aarhus, Aabogade, Aarhus N, Denmark;BRICS, Department of Computer Science, University of Aarhus, Aabogade, Aarhus N, Denmark;Department of Computer Science, Rutgers University, Piscataway, NJ

  • Venue:
  • Science of Computer Programming
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

We show that breadth-first traversal exploits the difference between the static delimited-control operator shift (ailias S) and the dynamic delimited-control operator control (alias F). For the last 15 years, this difference has been repeatedly mentioned in the literature but it has only been illustrated with one-line toy examples. Breadth-first traversal fills this vacuum.We also point out where static delimited continuations naturally give rise to the notion of control stack whereas dynamic delimited continuations can be made to account lbr a notion of 'control queue'.