Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I think either language will be fast enough for you. When comparing Python and Java, it seems a bit unreasonable to blame the language for the speed difference. Java is compiled JIT (except on mobile devices*) whereas Python is interpreted. Just because both use a bytecode does not mean the implementations will have even remotely comparable performance. But both Scala and Clojure are JVM languages so they should have similar performance.</p> <p>Scala has a few implementation advantages over Clojure and I would expect somewhat higher performance. Although Scala's static typing would normally translate into a speed advantage over Clojure's duck typing, Clojure <em>does</em> support type hinting which can speed up code considerably. Possibly, ordinary Scala is faster than ordinary Clojure, but you only need to optimize the bottlenecks. Most of a program's run time is generated by a small amount of the actual code.</p> <p>Regarding interop w/ Java, Scala is closer to Java but I'm sure both languages interoperate well. In <em>Programming Clojure</em> Stuart Halloway writes: "[you can access] <em>anything you could reach from Java code.</em>".</p> <p>And since Scala author Martin Odersky <em>wrote</em> Sun's Java compiler, I kinda think no balls have been dropped on the Scala side, either. :-)</p> <p>You would be hard-pressed to pick two better languages, though I like Ruby also. Why are you worried about which one to try? Why not try them both? Scala is more likely to be "the next Java", while it's hard to imagine that Lisp will finally take off after not doing so for over 50 years. But it's clear that Lisp is on its own unique level of abstraction, and Clojure is fairly simple, so Scala + Clojure won't be that much harder than just (the rather complex) Scala and I'm sure you will be glad you did it. </p> <p>And for that matter they interoperate...</p> <p>* dalvik (android's JVM) got a JIT compiler in 2.2 version in 2010 </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload