Login

Tags

Factual Blog / Tagged:

java

Fast Indirect Sorting in Java

Fast indirect sorting in Java I was recently writing some performance-sensitive code in which I had a double array of distances (one per element), and I wanted to get a list of elements sorted by distance: double[] distances = { d1, d2, ..., dN }; Element[] elements = { e1, e2, ..., eN }; // do...

The Flotsam Project: Insanely Fast Floating-Point Number Serialization for Java and Javascript

At Factual, we have a lot of geospatial data that we want to send to a browser. It’s often possible to use polygons or images to transmit this data efficiently, but a couple of weeks ago we ran into a case where we needed a floating-point quantity for each map tile pixel. We started by sending...

Thinking in Clojure for Java Programmers (Part 2 — Macros FTW)

How long does it take to change your language? Sun once estimated that it takes on average 18 months to evaluate and approve proposals for changes to the Java language. That estimate doesn’t include building, testing, and releasing the change. Nor does it include the time and effort needed to update compilers, IDEs, and so on....

Thinking in Clojure for Java Programmers (Part 1 — A Gentle Intro)

We do a lot of Java work at Factual. Most of our back-end data store is written in Java, and we use a ton of Java libraries and frameworks. We recently began experimenting with Clojure in certain parts of our data store. Clojure is a Lisp implementation that runs on the JVM and offers excellent Java...