[plt-scheme] [ANN] Heist: a Scheme interpreter in Ruby
On Wed, Feb 25, 2009 at 3:43 AM, James Coglan <jcoglan at googlemail.com> wrote:
>
> Thanks for the
> clarification; I've seen the terms CPS and trampolining come up in other
> people's implementations but haven't been able to read enough yet to know
> exactly what trampolining is. I'm familiar enough with CPS since I write a
> lot of JavaScript (where you have events, async IO, animations that all make
> use of 'continuation' functions as callbacks) but can't immediately see how
> to convert my whole interpreter to that style.
In private email I sent you a reference to a paper that describes
trampolining in detail and its connection to CPS. As for seeing an
interpreter in CPS itself, you might find it worthwhile to peruse the
relevant chapter of my PL book, PLAI (www.plai.org), or the superior
EoPL (www.google.com).
Finally, though for a long time I used to think of event-driven
programs as being "merely CPS", I have now come to see them as
something different -- as what (for lack of a better name) I call
"event-style". It's not quite the same thing at all.
Shriram