v2.7-alpha.2
版本发布时间: 2013-10-28 21:56:39
Stewori/JyNI最新发布版本:v2.7-alpha.5(2017-09-22 04:13:53)
Release alpha 2 contains significant improvements over alpha 1. The main new feature is full exception support. Exceptions filed in native code via Python C-API are translated to Jython exceptions and can be accessed just like if they were generated by Python code. We added a simple demo script JyNI-Demo/src/JyNIExceptionTest.py to demonstrate this (did not want to mess up JyNIDemo.py with exception stuff).
Additionally, we support some new built-in types, compared to alpha 1. These are PySet, PyFrozenSet, PyUnicode, PyClass, PyInstance, PyMethod and all built-in exception types. Also the support of PyType was significantly improved.
One milestone in direction NumPy/SciPy is that JyNI is now able to use the original datetime module. Jython features an own implementation of the datetime module, so this does not pay off in new functionality right now. However, the original datetime module contains an own C-API section that is not provided by Jython's version. Since NumPy uses this C-API, we will have to use the original module. That JyNI alpha 2 is capable of using it, is demonstrated in JyNI-Demo/src/JyNIDatetimeTest.py.
Another important improvement is that we finally managed to provide a makefile. Building JyNI is much easier now. However, it is not as comfortable as an autotools-script - you may have to adjust some variables in the makefile by hand, depending on your system. Mainly, you have to specify, where Java and Jython can be found. Detailed instructions on building and using JyNI are provided in the readme.
What still does not work is native garbage collection. We are going to address this in the next release. However, until garbage collection works, JyNI should not be used for much more than demonstration purposes, since it would potentially leak a massive amount of memory if an extension crucially relies on garbage collection.
JyNI alpha 2 has been tested on
- Linux Mint Debian edition (LMDE) (32 bit and 64 bit)
- Linux Mint 13 (64 bit)
- Ubuntu 13.10 (64 bit)
If you compiled it for another distribution, please consider to report your experience to contact@jyni.org. If you are using a distribution not listed above, we would also appreciate any feedback, whether you got the binaries working or what error you received if any.
1、 JyNI-2.7-alpha.2-bin-32.tar.bz2 269.57KB
2、 JyNI-2.7-alpha.2-bin-64.tar.bz2 296.41KB
3、 JyNI-2.7-alpha.2.jar 17.6KB