Mobile // Mobile Applications
Commentary
11/17/2008
12:00 AM
Commentary
Commentary
Commentary
50%
50%

PigIron 0.8 released

PigIron is an open source Java class library which implements the client side of the IBM ® z/VM ® Virtual Machine Operating System's Systems Management Application Programming Interface.

Image of noble porcine PigIron is an open source Java class library which implements the client side of the IBM ® z/VM ® Virtual Machine Operating System's Systems Management Application Programming Interface.

This cycle has been interesting. Having completed bindings to ObjectRexx , I drifted away from using them in favor of using my own FIJI ForthIsh Java Interepreter for testing. This was an eye-opener , since I wrote FIJI in the 1999-2002 time frame and really hadn't used it much since 2002. I'm luck, since it turns out that the younger me designed a pretty good system!

It was all about Testing. It's difficult to test this code because it does real things to real mainframes. That takes some preparation. Some APIs can be unhooked from actually making a change, but most of them you just have to plan out how to test them with real changes to the test system. I still have a lot to do, but great progress has been made.

The core of PigIron was designed according to a simple model. The Java source code for individual classes which embody the remote function call from the client to the mainframe is autogenerated from description files using Gnu m4 .

I should probably call this "metaprogramming" instead of "autogeneration" so as to be buzzword compliant.

The result of this, um, metaprogramming technique is that once the core system was debugged, the only bugs I've been finding are caused by incomplete definitions. You not only have the Java compiler doing type checking, you have the PigGen step prior to that generating either correct code or generating code that won't even dream of compiling under javac.

So the only kind of bug that slips through this double sieve is a PigGen definition file that's simply missing a param. This is quite easy to detect at testing time, since the host system returns errors pointing to specific missing or erroneous params.

PigGen turns out to be as interesting from a software engineering perspective as the application itself.

Comment  | 
Print  | 
More Insights
Building A Mobile Business Mindset
Building A Mobile Business Mindset
Among 688 respondents, 46% have deployed mobile apps, with an additional 24% planning to in the next year. Soon all apps will look like mobile apps and it's past time for those with no plans to get cracking.
Register for InformationWeek Newsletters
White Papers
Current Issue
InformationWeek Tech Digest, Nov. 10, 2014
Just 30% of respondents to our new survey say their companies are very or extremely effective at identifying critical data and analyzing it to make decisions, down from 42% in 2013. What gives?
Video
Slideshows
Twitter Feed
InformationWeek Radio
Archived InformationWeek Radio
Join us for a roundup of the top stories on InformationWeek.com for the week of November 16, 2014.
Sponsored Live Streaming Video
Everything You've Been Told About Mobility Is Wrong
Attend this video symposium with Sean Wisdom, Global Director of Mobility Solutions, and learn about how you can harness powerful new products to mobilize your business potential.