ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> JPython
JPython
[JPython] ANNOUNCE: JPE, the Java-Python Extension - first beta release
by Frederic Giacometti other posts by this author
Apr 29 2001 10:13PM messages near this date
[JPython] jython vs other scripting | [JPython] WWW.090000900.COM GAGNEZ 1 AN DE COMMUNICATIONS GSM ! WIN 1 JAAR GRATIS GSM-GEBRUIK !
April 28, 2001

I am pleased to announce the first beta release of JPE,
the Java-Python Extension.

JPE is at once:
    - A Python module (named 'java') providing access to all Java
services
      from Python
    - A Java package (named 'python') providing access to all Python
services
      from Java


Computing Paradigm
==================

JPE relies on the following computing paradigm:
One Python VM (PyInterp* pointer) an one Java VM (JavaVM* pointer) are
in the same process.
The virtual machines act as common process resources, shared by the
threads.

Each virtual machine has its own thread-specific execution environment
(PyThreadState* pointer in Python, JNIEnv* pointer in Java).
Each thread is attached to zero or one thread environment
from each virtual machine; each thread environment is attached
to one thread.

The paradigm is generic.
I have not done much research in the literature in this regard,
but I am not aware of a similar pattern.
I'll baptize it the "symmetrical virtual machine" pattern :))

This is different from Jython, for instance, in the sense that Jython
is an emulation of the Python VM, written in Java, and entirely running
within the Java VM.

The advantage of the symmetrical virtual machine approach
over the emulation is that we get to work with the actual,
full-featured Python VM, rather than with an emulation on top of
another virtual machine, emulation which necesseraly suffers
from limitations inherited from the emulating environment.

Object semantics are the same in both environments.

Voila!

Frederic Giacometti
frederic.giacometti@[...].com

The home of JPE is http://www.arakne.com/jpe
JPE can be downloaded directly at http://sourceforge.net/projects/jpe




_______________________________________________
JPython-Interest maillist  -  JPython-Interest@[...].org
http://mail.python.org/mailman/listinfo/jpython-interest

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved