This blog is an archive of old posts - please use http://markwatson.com/blog to see new posts and copies of the older posts still on this archive.
Mark is an author of 16 books on Artificial Intelligence, Java, Lisp, and the Semantic Web
Wednesday, December 29, 2004
Combining Java with other languages
How often is language choice dictated by the availability of existing libraries? For me, quite often! I have been looking at two approaches to leveraging Java code for alternative languages/platforms:
IKVM - a JVM implementation (uses GNU CLASSPATH) that runs inside Mono and Microsoft's .Net CLRs
PyLucene - the large Java Lucene search application is compiled using GNU gcj into native code and then wrapped using SWIG as a Python library
I have used PyLucene with Python: great to be able to effectively use a large Java application in Python. I have not experimented with IKVM yet, but for a practical Java programmer who might need to reuse some code in the .Net framework: it looks promising.