3 ms·
I've been vaguely following JPython's story, and the limit is less the Python language, and more the Python runtime environment and its reliance on C APIs writt
by pacala 10y ago
I've been vaguely following JPython's story, and the limit is less the Python language, and more the Python runtime environment and its reliance on C APIs written with the GIL assumption in mind. http://jyni.org http://jyni.org doesn't appear to be ready for prime time, though there is recent progress, https://github.com/Stewori/JyNI/issues/2 https://github.com/Stewori/JyNI/issues/2.
Does JVMCI bring hope for JPython + JyNI ?
- chrisseaton 10y agoYes JVMCI can help there in a couple of areas. Part of Graal (the new compiler) is a new FFI that bypasses JNI and can represent native calls directly in the JIT. That should improve native call performance. There is also a C interpreter with JIT being built on top of Graal and JVMCI. In JRuby we're looking at interpreting C extensions rather than running them as native code. In some cases this is faster than the native code, because we can optimise the Ruby and the C code together.