Hi Jim, Jim Baker wrote:
I'll address Jython: we plan support for Android in our 2.5.1 release. Supporting Android is similar to supporting unsigned applets: we either compile Python code in advance to Java bytecode, or compile it on the fly to Python bytecode (PBC) and execute with our PBC VM (just a straight port of ceval.c).
this is very interesting. Is the PBC VM already working? If so, how do its performances compare against the normally compiled code? I and Niko did some benchmarking on pypy-jvm and we discovered that we spent (unsurprisingly) the largest amount of time inside the main eval loop (up to 68% of the total on some benchmark, IIRC). On average, the dispatch overhead is something like 50%. Is it the same for jython? Btw, did you consider the possibility of reusing the pypy eval loop instead of rewriting yet another one from scratch? ciao, Anto