Threads vs. continuations

Tim Daneliuk tundra at tundraware.com
Tue Feb 19 16:09:15 EST 2008


miller.paul.w at gmail.com wrote:
> 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?
> 
> Thanks!
> 
> Paul

An interesting question to which I shall stay tuned for an answer.

However, allow me to point out that there is a macro language for
Python.  It's called 'm4' ... <ducks and runs>

-- 
----------------------------------------------------------------------------
Tim Daneliuk     tundra at tundraware.com
PGP Key:         http://www.tundraware.com/PGP/



More information about the Python-list mailing list