[pypy-dev] Work on the JVM backend

Antonio Cuni anto.cuni at gmail.com
Fri Jan 13 16:07:37 CET 2012


Hello Frank,

On 01/13/2012 12:02 AM, fwierzbicki at gmail.com wrote:

> Again, I don't know the details about how JPype would be used exactly,
> I just wanted to make sure you knew about invokedynamic.

as Alex pointed out, the idea is to use JPype to be able to test the code
which calls JVM methods without any need to translate.

The alternatives are:

1. use CPython + JPype/something else (JPype seems to be no longer developed,
but last time I checked it was still the best thing I could find. Suggestions
are welcome :-))

2. use Jython, although this might carry its own set of problems.

In any case, the idea is to wrap all the code to interface to the JVM inside
rlib/rjvm.py: this way it should be "easy" to write multiple "backends" to
actually call the JVM, one for JPype, one for Jython, etc.

ciao,
Anto


More information about the pypy-dev mailing list