[plt-scheme] Behind the scenes, is everything running using continuation passing style?

From: Psy-Kosh (psykosh at earthlink.net)
Date: Wed Nov 14 02:21:06 EST 2007

On Wed, 14 Nov 2007 00:37:44 -0500, Jon Zeppieri <zeppieri at gmail.com>  

> That depends on the implementation.  In the case of PLT, the answer is
> no.  There is a scheme compiler named Chicken, which does perform CPS
> transformation on source *and* actually uses the CPS continuations in
> its call/cc.  That's an important point, by the way: even compilers
> that do perform CPS transformations (and I don't believe there are
> many of these any more) do not necessarily use the CPS continuations
> to implement call/cc.

This may be a dumb question... but if a compiler already is converting  
stuff to CPS, then why would it not just use that as the basis for that  
implementation's call/cc? ie, what would be a reason to not do that?


Posted on the users mailing list.