Ideas for implementing first-class continuations

Exception approach

  • Provides a one-shot outward continuation
  • Cant be resumed

Concurrent threads

  • Can suspend/resume
  • Can't escape

Using generator blocks (aka yield)

  • Pseudo resumable

Partial CPS application (from PLT paper)

  • Proper continuation support

Last edited Feb 5, 2008 at 12:30 PM by leppie, version 2