Try Clojure – An interactive tutorial in the browser
tryclojure.org
Try Clojure – An interactive tutorial in the browser
1–10 of 96 posts
Re: Try Clojure – An interactive tutorial in the browser
#2Re: Try Clojure – An interactive tutorial in the browser
#3Do I need to have a somewhat decent knowledge of Java to plunge into Clojure right away?
Re: Try Clojure – An interactive tutorial in the browser
#4Do I need to have a somewhat decent knowledge of Java to plunge into Clojure right away?
Java the JVM? You _probably_ don’t need to know it to get started, but you’ll have to get familiar with JVM deployment, dependency management, packaging, JVM memory settings, etc if you want to run something outside your dev machine. Getting to 90% here is pretty easy, but the last 10% (to me at least) tends to feel a lot more difficult that other languages.
As a small pro-tip: use jstack. I wish every language came with a jstack. It just dumps the stack traces of all threads of a program by pid.
Re: Try Clojure – An interactive tutorial in the browser
#5Re: Try Clojure – An interactive tutorial in the browser
#6Do I need to have a somewhat decent knowledge of Java to plunge into Clojure right away?
Re: Try Clojure – An interactive tutorial in the browser
#7Do I need to have a somewhat decent knowledge of Java to plunge into Clojure right away?
Java the language? Very likely not. As proof - a majority of Clojure runs in JavaScript without any code changes (via ClojureScript). That said exceptions tend to look like Java classes, so you’ll definitely see Java bits. Java the JVM? You _probably_ don’t need to know it to get started, but you’ll have to get familiar with JVM deployment, dependency management, packaging, JVM memory settings, etc if you want to run…
Re: Try Clojure – An interactive tutorial in the browser
#8Do I need to have a somewhat decent knowledge of Java to plunge into Clojure right away?
Re: Try Clojure – An interactive tutorial in the browser
#9I put each of these implementations in a load test lab where I collect then analyze the performance data for comparison purposes. Those two blogs include the performance results. It is hard for Clojure to compete with other tech stacks, primarily because each method call in Clojure goes through Java reflection which is pretty slow. There is a way to prevent the use of Java reflection in Clojure but then the Clojure code doesn't end up looking very Lisp like. The usual advise is to use type hints very sparingly like in hot spots in the code.
I still like Clojure, though.
Re: Try Clojure – An interactive tutorial in the browser
#10Do I need to have a somewhat decent knowledge of Java to plunge into Clojure right away?