The Ironism

Drawers


The Crypt


Cloudy


Meta-Meta


The Ironism

The lair of Lars J. Nilsson. Contains random musings on beer, writing and this thing we call life.


concurrency4

Java 8 + Light Weight Threads

The last couple of days I’ve been playing around with Quasar from the fine folks at Parallel Universe. “What’s that then?” I hear you ask. It’s an API and a runtime library that promises light weight threads for the JVM, called Fibers, and all the stuff you can do with that, like light weight channels for [...]

fungrimfungrim

Asynchronous Games in Firebase; pt I

Note: this post is cross-posted on Cubeia.com. Since the social web started to expand, asynchronous multiplayer games seems to really have taken off. So my immediate question is obviously, can I do that on Firebase? And the short answer is: of course. For the long answer, please read on.Let’s recap first. In a traditional [...]

fungrimfungrim

A Java Concurrency Bug, and How We Solved It

Note: this post is cross-posted on Cubeia.com. Everyone agrees that good debugging is critical. But it is not entirely trivial when it comes to multi-threaded applications. So here’s the story how I tracked down a nasty bug in the Java5 ReentrantReadWriteLock. Update 15/4: To be a bit clearer, the Java bug in question is on 1) Java [...]

fungrimfungrim