[Python-Dev] Stackless Python
Phillip J. Eby
pje at telecommunity.com
Wed Jun 2 01:14:53 EDT 2004
At 12:31 AM 6/2/04 +0200, Christian Tismer wrote:
>Phillip J. Eby wrote:
>
>>At 06:34 AM 6/1/04 -0700, Guido van Rossum wrote:
>>
>>> > It is most probably possible to implement soft-switchign in Jython.
>>>
>>>That's a rather vague statement; I'd like to hear from Samuele about
>>>that.
>
>I believe it is doable, and I'll ask him. If java can use
>something like function pointers, it is possible.
There are various things that correspond to function pointers. Sort
of. You'll need to be a bit more specific than that.
> 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. :)
More information about the Python-Dev
mailing list