I've been working with Boost::Python to expose some high-performance code to python recently, and it's just a dream to work with. I'd like to be able to maintain a single C++ codebase and expose it to Python via Boost, and to Java as well. I know about JNI, but I was wondering if there's something equivalent to Boost::Python, but targeting Java.
+3
A:
There are a number of Java projects that let you call functions exposed in DLLs without writing JNI wrapper code. These include J/Invoke, NativeCall, xFunction, JNA, and others.
Jonathan Feinberg
2009-12-16 02:53:59
Have you used them? Have a personal preference?
gct
2009-12-16 02:55:13
I haven't; sorry. I've done a bit of JNI, and found it bearable.
Jonathan Feinberg
2009-12-16 05:31:29