Is a JPython implemention within the realm of possibility?
I am wondering if it is within the realm of possibility that the Zope project might eventually support operation as a Java program (under JPython) in addition to operation under traditional Python. I know it would probably be a large undertaking and that there may well be better places to spend precious energy, but I thought I'd register my interest in the prospect. In our case it is a given that a specialized JVM will be embedded in all of our products and more and more of our own source will be written in Java, so code which can integrate with Java easily is all the more interesting to us. We already have a product which uses traditional Python behind a web server to provide an entirely through-the-web user interface for product configuration/administration. My aim has been to replace the traditional Python with JPython since we'll have lot's of Java stuff we'll want to be using on the server going forward anyway. It looks like Zope would enable us to do what we are already doing more easily (and therefore better). So here's hoping we'll one day see Z-over-P-over-J. Yeah. I know it would have to be slower. Zope looks cool. Bern McCarty
I am wondering if it is within the realm of possibility that the Zope project might eventually support operation as a Java program (under JPython) in addition to operation under traditional Python. I know it would probably be a large undertaking and that there may well be better places to spend precious energy, but I thought I'd register my interest in the prospect.
My guess is that the hardest part of such an undertaking would be to convert Jim's extensions to Java/JPython. Specifically, ExtensionClasses and Acquisition are probably the hardest to do (I believe many of the others are just fast implementations of Python versions). Jim Hugunin mentioned that he had thought a bit about ExtensionClasses, but I'm not sure how far that went. The efficient POS and other extensions are also clearly a significant undertaking, but maybe not as hard to translate. However, I don't see it happening until someone has a commercial motivation to invest the large required number of hours into it. --david
At 02:15 PM 3/1/99 -0500, Bern McCarty wrote:
I am wondering if it is within the realm of possibility that the Zope project might eventually support operation as a Java program (under JPython) in addition to operation under traditional Python. I know it would probably be a large undertaking and that there may well be better places to spend precious energy, but I thought I'd register my interest in the prospect.
Zope relies on a lot of code in C as well as Python, so I doubt you'll see Zope on JPython anytime soon. However, ZPublisher (Zope's ORB) could be made to work with JPython without too much trouble. In fact a while ago I tried this and succeeded, though it was quite slow. The main issue is that ZPublisher uses 'regex' while JPython uses 're'. -Amos
Amos Latteier wrote:
However, ZPublisher (Zope's ORB) could be made to work with JPython without too much trouble. In fact a while ago I tried this and succeeded, though it was quite slow. The main issue is that ZPublisher uses 'regex' while JPython uses 're'.
Actually, some time ago I sent Jim some code that was a regex mockup implemented using re. It didn't do all of regex, but enough to make DocumentTemplate work. -- "There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence." - Jeremy S. Anderson
participants (4)
-
Amos Latteier -
Andrew Csillag -
Bern McCarty -
David Ascher