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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4