[Python-Dev] Stackless Python
Bob Ippolito
bob at redivi.com
Wed Jun 2 01:37:59 EDT 2004
On Jun 2, 2004, at 1:14 AM, Phillip J. Eby wrote:
> At 12:31 AM 6/2/04 +0200, Christian Tismer wrote:
>> If you have
>> to have compiled calls all the time, well, I did not invent Java,
>> and I don't want to know who was it. (Actually I do :)
>
> Keep in mind that Jython *compiles* Python code to Java bytecodes. It
> is *not* a Python interpreter written in Java. I suspect this will
> severely limit the applicable approaches.
>
> Googling "Java co-operative multitasking" and "Java asynchronous
> methods" turns up plenty of hits on people who are trying to figure
> out how to do them, but not much about any successes. :) Indeed, the
> only thing I've ever run into that does it, is that commercial system
> I mentioned, which does it by writing a Java VM in Java, so they can
> control its execution. I don't think that idea will go over very well
> with the Jython team. :)
Well the tasklet/channel model of Stackless is a single threaded
version of CSP, which has at least one Java implementation:
http://wotug.kent.ac.uk/parallel/languages/java/jcsp/
If you add a bunch of extra mutexes, then it could act just like
Stackless (no actual concurrency).
That, of course, doesn't cover every single function that the Stackless
API currently exposes, but tasklets/channels are the raison d'etre.
You don't really need the other functions (or at least, I haven't
needed them).
-bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20040602/b7b8f3e6/smime.bin
More information about the Python-Dev
mailing list