Re: why Clojure/Lisp is so fast

2014-02-19 Thread Andy C
On Tue, Feb 18, 2014 at 11:38 PM, Devin Walters dev...@gmail.com wrote: You need to use the lein plugin for no.disassemble, not the dependency. The README explains how. Thanks - now I can see disassembled code - quit neat. I misread do not use this way as a following as opposed to above

Re: why Clojure/Lisp is so fast

2014-02-19 Thread Andy C
The OP almost certainly intended CLISP to mean Common Lisp. I recall it now - it was Allegro CL which somebody demoed to me almost ten years ago. I wish I started learning Lisp yet cannot believe that Clojure I am learning now (and Scala I am actively using) did not exist back then. -- You

why Clojure/Lisp is so fast

2014-02-18 Thread Andy C
Hi, There are many performance benchmarks showing that compiled CLISP is almost as fast as C++ or Clojure as Java. Being a dynamically typed language though, I wonder how it is possible. Is it because the compiler is able to sort out actually used types and assemble appropriate byte code or the

Re: why Clojure/Lisp is so fast

2014-02-18 Thread Mikera
For Clojure at least, it is a combination of things, including: - The quality of the optimisations that the JVM itself does during JIT compilation. Virtual method calls for example are crazily fast. - The JVM garbage collector - which is seriously good. - The ability to use type hints and

Re: why Clojure/Lisp is so fast

2014-02-18 Thread Mars0i
It really depends on the benchmark and the programmer, and sometimes on the computer. And on what a person chooses to report. Here are some benchmarks, probably only representative of very special cases, that show Java beating Clojure in many cases, Java and SBCL both beating each other in

Re: why Clojure/Lisp is so fast

2014-02-18 Thread Timothy Baldridge
Clojure IMO is not truly dynamic, at least not to the extent of Python/Ruby. I like to refer to Clojure as a dynamic enough language. For example, once defined, types cannot be modified by adding new members (deftype that is). If you want to add a new field to a deftype in Clojure, you have to

Re: why Clojure/Lisp is so fast

2014-02-18 Thread Andy C
Thanks for the insight and link to http://benchmarksgame.alioth.debian.org. WRT dynamically typed languages, I have some 5 years experience with Python circa 2.4ish timeframe. I remember that a practical raw speed was not that bad, but still was in average like 10 times slower from C++. Good

Re: why Clojure/Lisp is so fast

2014-02-18 Thread David Sletten
The OP almost certainly intended CLISP to mean Common Lisp. While the CLISP implementation of Common Lisp is a decent platform (Conrad Barski features it in his book _Land of Lisp_, for example), it is not the fastest implementation. Their documentation acknowledges as much:

Re: why Clojure/Lisp is so fast

2014-02-18 Thread Devin Walters
You need to use the lein plugin for no.disassemble, not the dependency. The README explains how. Cheers, '(Devin Walters) On Feb 18, 2014, at 23:16, Andy C andy.coolw...@gmail.com wrote: Thanks for the insight and link to http://benchmarksgame.alioth.debian.org . WRT dynamically typed