Thursday, October 16, 2008

Java: CNI vs JNI

Old discussion:

http://gcc.gnu.org/ml/java/2004-03/msg00110.html

Short summary article:

http://en.wikipedia.org/wiki/Compiled_Native_Interface

For one of my current projects CNI looks quite attractive.

Update: used GCJ/CNI to implement GDXLS (see: http://yetanothermathprogrammingconsultant.blogspot.com/2008/10/gdxls-read-xls-files-on-linux.html and http://yetanothermathprogrammingconsultant.blogspot.com/2008/10/gdxls-write-xls-files-on-linux.html). Much more fun than JNI!

Some links with background info:
http://per.bothner.com/papers/UsenixJVM01/CNI01.pdf
http://people.redhat.com/lockhart/.gcc2004/MasterGCC-2side.pdf#page=169

No comments:

Post a Comment