>
> I tend to think clojure is in a similar position - fast enough for the 
> vast majority of things (ymmv of course - depending on what your domain is) 
> and if you meet a situation like this where optimising the clojure becomes 
> too ugly, you can drop down to Java (or indeed C!)
>

Not quite, I'd say. In Java, and I bet it wasn't very different with C in 
the '80s, the most natural way to solve a problem is already the most 
performant, or at least within 50% of that. If you ever need to optimize, 
it means you are doing something very, very critical indeed, and probably 
involving native system resources in a way not idiomatically supported by 
Java's abstractions.

In Clojure this is nohwere close to being true. Idiomatic Clojure is 
concise, expressive, and *slow.* Not 50% slower; not 100% slower; more like 
100 *times* slower. Optimized Clojure is like a completely different 
language. Have you ever experienced the culture shock of opening core.clj? 
On the other hand, have you ever studied String.java or ArrayList.java? No 
surprises there; just the basic Java you write every day.

On the other hand, an attitude that you are nevertheless likely to 
encounter on this grous is "It's not Clojure; it's you. Clojure already has 
all you need to achieve native performance. If that's not what you are 
seeing, don't blame it on Clojure". Many posters feel put down by that kind 
of attitude and the worst part it, it really isn't their fault.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to