Threads vs. continuations

miller.paul.w at miller.paul.w at
Tue Feb 19 21:26:13 CET 2008

I've been doing some thinking, and I've halfway convinced myself of
the following statement: that threads as implemented by Python (or
Java) are exactly equivalent to one-shot continuations in Scheme.  Am
I right?  (I'd have asked in the scheme groups, but I feel like I'm
less likely to get flamed to death here... hehe.)

If that's the case, it seems threads plus hygeinic macros and a few
primitives a la Scheme would form a solid basis upon which to build a
programming language.  The only thing preventing Python from being
that language is the difficulty of integrating a macro system, n'est-
ce pas?



More information about the Python-list mailing list