[Python-3000] Futures in Python 3000

Andy Sy andy at neotitans.com
Sat Apr 22 10:37:43 CEST 2006


Greg Ewing wrote:

> BTW, if you *really* want to understand continuations, you
> need to carry out the following exercise: Write a Scheme
> interpreter in Scheme, doing it in a continuation-passing
> style. [1]
> 
> You'll find that it's possible to do this using a subset
> of Scheme that doesn't itself have continuations, yet it
> will be trivially easy to make it so that your interpreter
> implements a Scheme that does.
> 
> If you carry out this exercise successfully, and make it
> actually work, at some point along the way you will have
> a Zen-like flash of insight, and will suddenly understand
> exactly what a continuation is and how it works.
> 
> (The other possibility is that you will still be none the
> wiser. If this happens, you will never understand
> continuations. Give up programming language implementation
> and become a potato farmer. :-)

Thanks for the suggestion, Greg.  Methinks I'll just go get
myself hammered on some vodka... a much easier way to get the
same kind of headache...



More information about the Python-3000 mailing list