Quantcast
Channel: Feedblog » java
Browsing latest articles
Browse All 10 View Live

Java and Javascript Configuration with Functions

For the last few years I’ve been playing with a simple configuration system which I call ‘runtime properties’. Runtime properties are similar to Java system properties in concept but differ in a few...

View Article



Java and In-Memory Data Structures – A Flat File Map Proposal

In the past I’ve often used in-memory data structures (vs on disk) in situations where allocating say 5-10MB of data in the local VM is much better than continually hitting a database. This has only...

View Article

On Hashtables and Java Storage Efficiency

I did some more work tonight on hash tables and Java storage efficiency. Turns out that an int actually does store entries in 4 bytes. I created an int[] array with 2M ints. This does in fact use 4...

View Article

First Implementation Pass of Java FlatMap Proposal

On the plane to Seattle I wrote the first pass of my Java flat file map proposal. I’m pretty happy with the code. The 1.0 sources just contain a read-only version of the Map. It turns out I need to...

View Article

java.util.TimeZone is Broken by Design

Look at this stupid code: /** * Gets the TimeZone for the given ID. * * @param ID the ID for a TimeZone, either an abbreviation * such as "PST", a full name such as "America/Los_Angeles", * or a custom...

View Article


Using ZooKeeper to configure External Monitoring Systems

I’m going to be migrating to using ZooKeeper within Spinn3r for a myriad of reasons but this one is especially powerful. One could use ZooKeeper to configure external monitoring systems like Munin and...

View Article

Viewing Java Thread Lock Contention as a Graph Clustering Problem

A few years ago I wrote a little app named ‘exception log introspect’ (ELI) that sent a signal to a running java process to obtain the stack trace. I then analyzed the stack trace to find threads with...

View Article

In Defense of REST

I’m not sure why REST needs defending but apparently it does… Dare steps in and provides a solid background and Tim follows up… What is really interesting about REST from my perspective (and not...

View Article


Unsafe considered Awesome!

I’ve been planning on playing with sun.misc.Unsafe for a while now but couldn’t find the time. Long story short… Unsafe is awesome. Check out the cool things you can do with it (that you normally...

View Article


More cool JDK7 features.

Interesting review of some JDK 7 features: I think the main one I like is the try-with-resource hack: private String example() throws IOException { try(BufferedReader reader = new BufferedReader(...) {...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images