Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Re: Repetition of work in Jython
Steve Holden
3/25/2010 6:10:00 PM
Andrey Fedorov wrote:
> Hi all,
>
> So from what I understand, Jython translates Python code into JVM byte
> code. Does anyone know why this was chosen instead of translating Python
> bytecode to JVM bytecode directly? It seems that it would be a lot
> easier to get Jython up-to-speed if there could be some "shared
> components" between them and CPython, no?
>
I don't *know* why Jim Hugunin chose not to take that approach, but I
can easily imagine it would be because a mapping of the Python byte code
to the Java byte code would be much less efficient.
There are various approaches that one could take. The least efficient
would be to write a Python virtual machine in Java, thereby putting two
levels of interpretation into the execution paths.
I doubt it would be possible to get maximal JVM efficiency from code
cast into Python byte codes just because of the disparity between the
two VMs.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010
http://pyco...
Holden Web LLC
http://www.hold...
UPCOMING EVENTS:
http://holdenweb.event...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Repetition of work in Jython
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password