Re:Wolfram and Lisp Recollections
by 83457 on Sunday May 17, 2009 @02:26PM
(#613738)
Are you comparing the speed of optimized code to unoptimized code?
[ Parent
| on HN ]
The algorithms were the same.
But... The C code probably ran 100 times faster than Lisp before I optimised it.
I take it you didn't bother with things such as optimization and type declaration in lisp.
Also great job on comparing what is essentially an interpreter to a compiler.
Re:Wolfram and Lisp Recollections
by asciilifeform on Sunday May 17, 2009 @02:37PM
(#613748)
Which Lisp?
(compiled) Clisp.
> (compiled) Clisp.
Clisp is only byte-compiled :-) So no, no way in bloody hell you beat CMUCL/SBCL by 1000 times.
No need to be hostile, I was just detailing my own experience, relevant to the article.
And it wasn't a totally unreasonable contribution, but it's important to keep in mind that if you compared CINT to SBCL, you'd probably conclude that Lisp is hundreds of times faster than C.
Here's such a comparison: http://shootout.alioth.debian.org/gp4/benchmark.php?test=all...
Re:Wolfram and Lisp Recollections
by bretthoerner on Sunday May 17, 2009 @04:04PM
(#613884)
I don't think it's hostile to point out that Clisp is only interpreted. It points out a flaw in your "C is faster" argument.
I wouldn't have been hostile if you attacked my family and loved ones. My development environment OTOH ..