2 ms·
Clojure compiles to Java bytecode so it's use as an embedded script engine will be limited to programs written in Java, or else you'll have a huge overhead with
by slondr 8y ago
Clojure compiles to Java bytecode so it's use as an embedded script engine will be limited to programs written in Java, or else you'll have a huge overhead with having to run a JVM next to your application.
It's a shame, too, because Scheme/Lisp has proven itself to be a very worthwhile scripting language in its own right.
- jwr 8y agoI really wish people wrote these comments after spending more than three minutes looking at a language. Don't like the JVM startup time? See Clojurescript and planck. Sub-second startup+compilation+execution on my old laptop.
- reutsharabani 8y agoClojure is a language, it is not necessarily bound to the JVM (although the common implementation is the one using the JVM). Like CPython to Python. The JVM also brings with it the entire JVM ecosystem which makes clojure very practical. Finally, there is actually an implementation of clojure for the browser (clojurescript) - which is a better idea than anything I've seen on the front-end (react-redux is OK, but clojurescript wrappers to react are just awesome). There is also an implementation for the CLR. Clojure runs everywhere, it has a rich ecosystem since it utilizes good hosts (JVM, CLR, js engines (with google compiler optimizations)). It is, IMO, the most practical lisp out there.