On Feb 1, 2008 3:33 AM, Frank Wierzbicki <email@example.com> wrote:
> On Jan 31, 2008 6:56 PM, Alexandru Popescu
No, I actually meant what I have written down :-). Note, I'm speaking
> > 2/ there is a python bytecode to java bytecode converter (which
> > according to people handles correctly "all" conversions).
> > Currently pyasm is written in python and work on python bytecode directly.
> > This lives in another sandbox project: sandbox/pyasm.
> Right -- that is the work of Jim Baker and Tobias Ivarsson.
> > However, moving forward doesn't only mean to integrate these 2
> > subprojects into the trunk. There is still a missing step in the
> > middle of processing:
> > a) adapt pyasm to work on the parser generated AST
> > b) add a post parser step that takes as input the AST and generates
> > python bytecode. After this step pyasm can probably be applied as is
> > (or with very small changes).
> Well not python bytecode but JVM bytecode -- but maybe that is what
> you meant? Also we need to translate pyasm to pure Java since we are
> not pypy (though who knows about the future...)
about 2 possible approaches:
a/ (that is the most natural) move pyasm to java and apply it to the
AST instead of python bytecode => java bytecode
b/ (would be a twisted approach, but would probably offer a guarantee
that the AST is the most correct one)
AST => python bytecode (through a transformer) => java bytecode (through pyasm)
I do believe that a/ is the right approach, but you never know :-).Well, if there are important modules that people may miss right away
> > Am I seeing things correctly?
> Yes I think so otherwise.
> > There are other 2 important aspects (cpython c modules and java
> > integration), but that will come a bit later.
> CPython c modules are tough -- for now we translate them into Java.
> Someday we may look to calling C extensions through JNA as Charles
> Nutter of JRuby has considered doing in the Ruby realm, but that is
> perhaps pie in the sky talk.
then you/we should definitely consider
porting them to Java. Is there such a list available? The only
reference I could find is around 2 years old already.