home mail me! RSS (2.0) feed

Archive for Java

Groovy: Java++ by being Java–

What? Yet another dynamic scripting language for the JVM? Are you not fed up with the Java-based, and rarely used, implementations of the hyped languages Ruby and Python? Sit down and let me explain. Groovy is actually not a brand new language, but rather an extension of Java. The difference between this extension and that [...]

JVMTI: real-time analysis of Java applications

JVMTI is an API built into both JDK 5.0 and 6.0, enabling an aspect-oriented approach to dynamic analysis – such as performance and coverage analysis – without the overhead of ordinary AOP approaches. We all have experienced the need to find that performance bottleneck or that last crucial bug making our most vocal client crazy. [...]

XPath with namespaces in Java

XPath is the expression language operating on an XML tree, used from XSLT. It can also be used stand-alone, such as from a Java application. There is also a standard API, called JAXP, for Java. So, everything is nice and dandy, and the post should stop here! Well… for real XML documents, using namespaces, it [...]

Is your language hot or not?

If one would measure popularity by number of hits on Google, these are the five most popular computer languages: PHP Java C Flash Perl A graph of Google hits, using the query +lang +programming, for some of the most common languages follows. NOTE 1: please inform me if your favorite language is omitted. NOTE 2: [...]

AJAX using one language

AJAX is a bunch of cryptic JavaScript snippets on the client side together with some advanced web services, written in another, and more powerful, language. Right? Not necessarily. I here give a brief comparison of three ways to create AJAX applications with only one language, running on both client and server. The three unilinguistic approaches [...]

Higher order Java

Are you not tired of writing those boring for loops, repeating virtually the same boiler plate “finder” or “accumulator” code over and over again? Are you also too afraid of those academic languages or simply enjoy actually getting paid for what you do, i.e., you are confined to Java? Well, I assume there are tons [...]

Swig: native interfacing for Java

First I was afraid, I was petrified. Kept thinking I could never live without a proper JNI reference manual by my side. But I spent so many nights thinking how to implement those native methods right. I grew strong, I learned how to carry on without a proper wrapper generator. But now Swig is back, [...]