PigIron 0.8 releasedPigIron 0.8 released

<a href="http://pigiron.sourceforge.net"><img src="http://pigiron.sourceforge.net/images/pig_15.gif" alt="Image of noble porcine" title="Image of noble porcine" width="157" height="116" align="left" /></a> PigIron is an open source Java class library which implements the client side of the IBM &reg; z/VM &reg; Virtual Machine Operating System&#39;s Systems Management Application Programming Interface.

information Staff, Contributor

November 16, 2008

2 Min Read
information logo in a gray background | information

Image of noble porcine

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.

Read more about:

20082008
Never Miss a Beat: Get a snapshot of the issues affecting the IT industry straight to your inbox.

You May Also Like


More Insights