Archive for category Java

Bertrand’s right: web writers are wrong.

In “Can I haz web?,” Bertrand Delacrétaz wrote: How many people today still think information is only valid or “serious” when represented on an A4 piece of paper? Well, except it’s letter, not A4… but the point is dead on. People aren’t thinking of the web very well. I’d echo Bertrand’s point, and amplify. Here’s [...]

, , ,

No Comments

New Article: “Considering Datastores.”

I just published “Considering Datastores” in the “articles” section of my blog, a piece discussing various data storage mechanisms and their strengths and weaknesses compared to each other.

, , , , , , , , ,

No Comments

GigaSpaces XAP 7.1 being released Wednesday!

This Wednesday, GigaSpaces is releasing XAP 7.1 GA. XAP stands for “eXtreme Application Platform,” and we included a lot of functionality based around earning that kind of name. Well, more than we already did – we’ve always been leaders in scalability. Probably the most visible aspects of the new release are the technology previews, around [...]

, ,

No Comments

Java Surgery: how to swap(int, int) and have it work… sort of

So it’s a known fact that Java passes references by value. That means that if I pass an Object of some kind into a method, I can change the values in the object, but not the object reference itself. Likewise, if I pass an int into a method, I can change the value of that [...]

, , ,

No Comments

Tools should just go ahead and move to OpenJDK7.

This isn’t particularly thought-through or anything, but … I caught myself thinking this morning that communities like Scala, Groovy, Jython, JRuby, maybe even Maven should go ahead and migrate to OpenJDK7 just to push the JDK7 people along. It’d create momentum around features that people used, and force the development team to trim out the [...]

, ,

No Comments

Java Surgery: Timing Method Calls

My data stores benchmark gives out timings in terms of nanoseconds, by making a list of response times and then applying statistical methods to get data out of the list. However, one part of that comes up every now and then: how do you measure the time it takes to issue a call? After all, [...]

, , , ,

1 Comment

Java Surgery: Spring Injection of Other Beans’ Properties

Today, someone wanted to inject not a bean, but a bean’s referenced property into another bean. Put more succintly: He had a bean A, with a property B, and didn’t want to inject A into bean C, but wanted to inject the result of A.getB(). Easy.

, ,

1 Comment

Java Surgery: Initializing arrays of arrays

From IRC, from whence many “interesting” questions come: “If I have a 4 dimensional integer array in Java, is there a way to initialise every element in it to a particular value?” Well. First off, you don’t have a four-dimensional array. You have a one-dimensional array of one dimensional arrays of one dimensional arrays of [...]

, ,

3 Comments

LeafChat 2: excellent IRC client, but it’s still only a start

I tried out LeafChat 2 this morning. It’s an IRC client that happens to be written in Java. It’s actually very well done, although command shortcuts are missing; you can write some of them yourself, but the scripting API is still slightly too limited to make this worthwhile. It has a number of customizations; thank [...]

, ,

No Comments

ID Generator Bean for GigaSpaces XAP

Shay Hasidim just published Global ID Generator, a global ID generator bean (surprise!) for GigaSpaces XAP, on the GigaSpaces Wiki. Good stuff. I prefer String ids, mind – and GigaSpaces can assign such itself, although there are good reasons to generate it pre-write.

,

No Comments

Rss Feed Tweeter button Linkedin button Digg button Stumbleupon button Youtube button