FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Lightweight Languages Blog: Coffee Talk
Light Weight Languages
ALTERNATIVE SYNTAX

Perl, Ruby, Python, PHP and More.

by Kevin Carlson
DECENT PROGRAMMING

Rails, Ajax, Python, Zope and more.

by Jeffrey Hicks
RubyConf 2006

Breaking News from the Show

by Jack Woehr
April 21, 2006

Coffee Talk

For reasons WAY beyond the scope of this blog, one of my current tasks at work is to create a Java interface for a large Perl application that we now are using. If it was up to me, I would stick with the Perl interface that already exists - but it isn't up to me.

I tossed around a couple of different options: create a SOAP interface, create Java apps that call Perl command-line utilities, create small (non-SOAP) client/server apps, etc. However, then I came across a set of modules that have given me a different perspective on the task that I need to accomplish.

The Inline module, coupled with Inline::Java allows you to call Java classes/methods right from your Perl code. Newer releases of the module allow you to directly call Perl modules FROM Java! One of the more impressive things about this module is that you can pass objects such as arrays or filehandles between the two languages!

While not perfect yet, this module provides an excellent way to create a bridge between Perl and Java. To many, this may not seem like a huge deal. To those of us in the corporate world, who have to live daily with "company standards", this can provide a powerful tool to help you accomplish tasks that may otherwise require a complete rewrite from one language to the other.

The module's documentation is good, but more examples and tips would make it even better! My plan is to document the helpful things that I learn while working with the module and submit them back to the Patrick LeBoutillier, the module's author. Check out this module and see what you think - and don't forget to share what you learn!

Posted by Brent Michalski at 08:47 AM  Permalink



This is a public forum. CMP Media and its affiliates are not responsible for and do not control what is posted herein. CMP Media makes no warranties or guarantees concerning any advice dispensed by its staff members or readers.

Community standards in this comment area do not permit hate language, excessive profanity, or other patently offensive language. Please be aware that all information posted to this comment area becomes the property of CMP Media LLC and may be edited and republished in print or electronic format as outlined in CMP Media's Terms of Service.

Important Note: This comment area is NOT intended for commercial messages or solicitations of business.



October 2006
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        


 
INFO-LINK