A JavaScripter writes on why Clojure has the edge on Node.js
I'm a professional JavaScripter so you shouldn't read this as Us vs. Them. But if you're interested in a really high performance evented webserver that has the same delicious lack of ceremony of Node.js, I recommend playing around with Clojure and aleph.
I hope nobody paints this as too much of a religious war. As far as I'm concerned, Node.js and Clojure/aleph have a lot in common, and are exposing developers to a more efficient way of writing applications. (To be truly efficient in writing JavaScript, your keyboard needs a }); key of course.)
I really need a spare hacking weekend to get on top of this. I've been looking for the right way in to Clojure web applications, and aleph is very intriguing.
For reference, here's Hello World in Clojure/aleph
(use 'aleph)
(defn hello-world [request]
(respond! request
{:status 200
:headers {"Content-Type" "text/html"}
:body "Hello World!"}))
(run-aleph hello-world {:port 8080})