Jul 09

Another performance/scalability “debate” due to Friendster migrating to PHP from Java

Tech 1 Comment »

There has been a usual public “I am better than you” debate over the fact that Friendster goes PHP.

Ian Kallen uses some common sense in his thoughts: The Scalability Holy Grail.

Obviously there is never a winner in “language X is better/faster/more scalable than language Y”. It just doesn’t make sense.

However, I do have direct knowledge on whether a Java site can run fast (some of the pro-PHP’ers claim it can’t on that thread).

TheServerSide doesn’t run fast, or slow, due to the fact that Java and a JVM are in the loop. What has allowed us to scale is the architecture. We don’t use all of the most amazing design patterns, or the latest technology. We are using EJB and our own MVC layer (for now), yet it still runs well (although it is a pain to maintain like this).

Smart caching is king in our application (as Ian mentions in his blog). This is where Tangosol Coherence comes into play. Weilding that tool well has allowed our cluster to scale. It also allows us to get away with sloppy lower-level code, as in the grand scheme of things those nano-seconds don’t matter!

We try hard not to be bottlenecked at the DB, and that is what gives us our performance AND scalability.

A PHP site designed to scale will be able to do this just as well. A site not designed in this manner will not be able to handle a large load.

Moving to PHP has worked for Friendster, but this probably means that they didn’t grok how to write a Java web application that can scale (even with Java book authors ;) Fortunately they could write one in PHP, and good luck to them. There is room for all!

Jul 08

My Virtual Computer: Letting you logon to any computer and see your stuff

Tech No Comments »

Intel has an Internet Suspend/Resume (ISR) project.

Imagine a world where computers become so ubiquitous that the idea of carrying a laptop will almost be laughable, a world where any computer could be your computer! According to the Pittsburgh Post-Gazette, this is the goal of Intel Research Pittsburgh’s Internet Suspend/Resume (ISR) project, a project that may one day let your work jump from computer to computer without interruption by using Internet, distributed file systems, and virtual machines. When the non-proprietary technology becomes available, a user will suspend a task on the computer he’s working on, and resume this work using another computer in another part of a city or several thousand miles away. The second system will look identical to the first one, with the same files and applications opened. This technology would also ease OS upgrades or eliminate the pain coming from a hard disk failure. The project has even a feature named Rollback which would permit to go back in time, eliminating these pesky viruses. A pilot test will start this fall, so don’t expect to be able to use ISR before a while.

I can’t wait for this type of system. I remember the days when I was at Uni and could logon to any machine there, and I would get MY desktop. X was so cool :)

Now, one of the bains is that I have multiple computers and don’t have a really nice way to sync up between them. I would love to have one “virtual computer” running, and each machine would be able to give me a view of it. It would also be cool if the virtual computer could run Mac, or Windows, or Linux, or all of them at the same time :)

Jul 08

Government screwing the guys in the military?

Personal 14 Comments »

Norm blogged about how his high school buddy was borked out of his GI Bill.

G.I. Bill doesn’t pay for one MN Marine

A Minnesota marine served his country for more than four years. But when Erik Barstow came home and tried to go to college with money from the G.I. bill he couldn’t. At first he thought it was just a paperwork snafu but 5 Eyewitness News shows why he now blames his recruiter.

I have run into this myself, with a friend in Colorado. He was promised $ for grad school, and at the last minute they screwed him over, and it was the recruiters fault there too.

How can we do this to people that are risking their lives? (NOTE: You can be against the war but NOT against the troops…. like the bumper sticker says: “A patriot against the war”)

Jul 08

Standardizing on links that open a new window vs. in the same window

Tech 1 Comment »

I don’t know about you, but I have gotten into the mode of “open in new tab” or “open in new window” for some links that I come across.

One of the annoyances is that you don’t often know if a link is target="elsewhere" or javascript:doSomethingWickedAndOpenANewWindow().

So, I wish there was a way to mark the difference. We could have a new pseudo part to CSS. We can now do a:hover, what about a:newwindow.

For now we can manually do stuff with class=”", but it would be nice to push out a standard so people start following it.

We could do the same with internal vs. external links (people often have a little icon for external links)

Jul 08

Pat Helland – Sings Bye Bye to Mr CIO Guy

Tech 29 Comments »

This is quality. Listen in to Pat Helland singing, with Don Box on guitar, and Dave Chappell on keys.

Pat wrote Bye Bye to Mr CIO Guy which takes the mickey out of the Harvard Business Reviews’ paper IT Doesn

Jul 08

Microsoft view of JavaOne

Tech 4 Comments »

Eric Gunnerson was in the same position that I was in when I went to Microsoft TechEd a month ago. It was my first time at a Microsoft conference, and I was actually impressed.

Eric seems to be impressed with some parts of JavaOne too, including the community aspect that Java has (which is of course a double edged sword).

It is especially interesting to read about his thoughts on Groovy and AOP.

Groovy is a new scripting language (well, they call it an

Jul 07

Would you like using() in Java?

Tech 1 Comment »

I have been talking to a bunch of people here and there about C#/.NET and Java.

People either seem to love of hate the using() statement in C#

One end of the spectrum:

Uh. Is try {} finally {} that hard?

to the other:

I don’t know how I lived without the convenience. It is just so nice to be able to use the using paradigm. You get used to having classed that implement IDisposable and everything gets taken care of for you.

I personally kinda like it. However I would rather just have closures in the language, as they can take care of this stuff for you… and much much much much more.

What do you think?

Jul 07

Rod Johnson on The Spring Framework

Tech 4 Comments »

We got to interview Rod Johnson on his thoughts wrt Spring, AOP, and the future of lightweight development.

The interview was published today on TheServerSide.

Later in the week we will put up a book review of his new book too.

It is interesting to see that more and more projects that I am aware of are choosing Spring (including some of my own). The mailing list is certainly busy, busy, busy too.

I like how the Spring guys seem pretty inclusive (like the Geronimo guys). It will be an interesting year.

Jul 07

YABenchmark: Java and C++ again

Tech No Comments »

We have another benchmark to start wars over. This one is done by a university (Uni of South California), so it MUST be un-biased ;)

The paper is more than just a benchmark though, it has sections:

Benchmarks

Five composite benchmarks listed below show that modern Java has acceptable performance, being nearly equal to (and in many cases faster than) C/C++ across a number of benchmarks.

In Theory: Maybe Java Should be Faster

This section discusses the theory behind how Java CAN be faster than C++ (many people seem to think that because C++ is compiled it must be faster)

Why is “Java is Slow” so Popular?

Java is now nearly equal to (or faster than) C++ on low-level and numeric benchmarks. This should not be surprising: Java is a compiled language (albeit JIT compiled).
Nevertheless, the idea that “java is slow” is widely believed. Why this is so is perhaps the most interesting aspect of this article.

An interesting read.

Performance of Java versus C++

Jul 07

Erik’s JavaOne-esque Schedule

Tech No Comments »

I had to laugh when I saw Erik Thauvin’s schedule.

It is based on the scheduling that Jonathan Schwartz talked about in one of his keynotes at JavaOne.

I am impressed at the 3 durex… but then I zoomed in and saw the writing “extra small” ;)