Performance pattern: Modulo and powers of two
The modulo operator is rare but does occur in certain vital use-cases in Java programming. I’ve been seeing it a lot in striping, segmenting, pipelining and circularity use cases lately. The normal and...
View ArticleLMAX disruptor framework and whitepaper
This is really old news now as I’m very late in posting it but since I’m still coming across people who have remained blissfully unaware I thought this was worth re-iterating. If you haven’t come...
View ArticleExposing JMX attributes and operations in Java
Something I’m working on currently in my spare time requires me to expose attributes and operations over JMX programmatically without the use of Spring. And I jumped at the opportunity to do a quick...
View ArticleJProfiler 7 released
Aside from knowledge of the jvm – profiler technology is another critical skill to possess in our toolbox. It pays to know how to use them and how to leverage new innovations in them to achieve insight...
View ArticlePaul Graham – Beating the averages
Recently, having been prodded sufficiently by fellow enthusiasts, I’d been looking into the rationale behind Clojure amidst the ongoing explosion of dynamic languages on the jvm. And while I was...
View ArticleJava 7 released!
As if you didn’t know – Java 7 is released (1, 2, 3). As the linked post says it’s been a long five years but hopefully more regular release cycles and expert innovation of the kind we’ve already seen...
View ArticleJava 7 loop predication bugs surface and workaround known
Software and bugs always have been and always will be inseparable. Java 7 certainly wasn’t going to be the first exception to this rule. Unsurprisingly, since internal testing can never compete with...
View Articlejsr166e: Upcoming java.util.concurrent APIs for Java 8
Jsr166e is to Java8 as Jsr166y was to Java7. Jsr166y introduced the fork join framework and Phaser to Java7 which are worthy of blog posts of their own. The fork join framework will enable us to...
View ArticleThree Java releases in one day!
Oracle have just made three java releases (or maybe I’ve only just noticed them). Java SE 7u1 Java SE 6 Update 29 JDK 7 for Mac OS X Developer Preview The 7u1 release fixes six bugs of which two appear...
View ArticleHow to print assembly for your Java code in OS X
0. Write program. package name.dhruba; public class Main { public static void main(String[] args) { System.out.println("Hello World!"); } } 1. Add JVM arguments to your program....
View Article