Tag: programming

Catching Native Crashes under JNI with UNIX Signals

A while back I've written about the Java Native Interface (JNI) and how to use and abuse it for running native code inside your Java program, either to run legacy code or to have performance critical code run natively. However if your native code crashes, which is not that hard in C/C++, then...

JNI Basics: Calling Native Code from Java

Have you ever wondered, how you could call native C/C++ Code from your Java Code? Say you have a library, that does exactly what you want either because it is legacy code that you want to wrap within Java or you have found an obscure problem, where no Java solution exists. Of course you could...

Everything Ubus

Computer scientists seem to reinvent the wheel quite often. For the more cynical observers every new Remote-Procedure-Call implementation looks quite like CORBA or Sun-RPC, but under a different name, different interfaces and - more often than not - some restricted features or inefficiencies....

Learning COBOL with Examples - Part 2: FILE I/O

The previous post in this series was about learning the basics of the COBOL programming language. Now I will cover a very important and essential part of COBOL - File Input / Output (I/O). I find it really interesting, as I haven't seen any other language which makes it that easy to read...