John Lam 1997 — 2026

Joel Spolsky Abducted by Aliens

You know what? Sometimes life isn’t fair. I work hard on these blog posts, deleting words until I get to the point where (hopefully) you can understand what I’m trying to say. And then along comes DHH who writes this absolutely brilliant one-liner:

“Just after he explains to the grand jury of Smalltalkers how dynamically-typed languages can’t be fast because a method call doesn’t compile down to a single CALL instruction.”

This is in response to the latest misguided Joel Spolsky posting on Ruby Performance Revisited. I would go and read that first if you haven’t already.

Then go and take a look at Avi Bryant’s excellent explanation about how dynamic dispatch works in modern runtimes.

A really nice thing that Avi points to is Sun releasing the source code for Strongtalk, a high performance open source virtual machine for Smalltalk. Sun acquired the company (Animorphic) that created the Strongtalk VM to fold the Strongtalk dynamic dispatch technology into the Java Hotspot VM.

But perhaps the best post about this whole affair is from Jeff Atwood. I want the old Joel back too.

5 archived reader comments

rbi (2006-09-14)

The Jeff Atwood article is nothing more than a technical content-free ad-hominem attack. It completely misses the point. Joel created a vbscript to php converter with some additional syntactical sugar on top of vbscript. It is a great solution that fits his business requirements exactly.

The article you pointed out mentions that Ruby’s runtime is naive and slow and doesn’t use even the most basic of performance optimizations.

How does that article do anything but bolster Joel’s case?

Bertrand (2006-09-14)

What’s with all the Joel hate lately? He even confesses ignorance as to the real cause for Ruby slowness. But it is a fact that Ruby is a slow language in its present state. His point (which all the answers carefully ignore) is that if you don’t care about performance, sure Ruby may be a good fit for you, but if you do care about perf, you should not choose a language that is slow. Err, kind of makes sense, doesn’t it?

John Lam (2006-09-15)

The problem is that Joel is out of his depth. He’s commenting on stuff with an air of authority even though he didn’t bother doing even rudimentary fact checking before posting.

The problem with his posting about the poor performance of Ruby was not that Ruby is slow - nobody denies this, least of all me. The problem with his post was his claim that dynamically typed languages are slow, and that they can’t be optimized down to a single call instruction.

That’s wrong, as Avi pointed out.

BTW, I have no problem whatsoever with Wasabi. It’s just the juxtapostion of it with his ranting about the immaturity of Ruby / Rails that I found amusing.

Jeremy (2006-09-22)

Yeah but you got to give him props for the X-Ray glasses post - that was an instant classic

John Lam (2006-09-26)

Oh yes - I still read Joel, and I loved the X-Ray glasses post too.