4 ms·
I think this was on HN earlier too. It's slightly different from what I had in mind, however; generating and then running Asm from Lisp is not quite the same as
by userbinator 13y ago
I think this was on HN earlier too. It's slightly different from what I had in mind, however; generating and then running Asm from Lisp is not quite the same as being able to embed instructions inside any function that manipulate the contents of lists directly, which can be easily done in C/C++.
- wglb 13y agoHere is an example of doing exactly that: http://benchmarksgame.alioth.debian.org/u32/program.php?test=mandelbrot&lang=sbcl&id=1 http://benchmarksgame.alioth.debian.org/u32/program.php?test...
- username223 13y agoNote that the C++ is half the code and 6 times as fast. This supports my general impression that you can torture decent performance out of a Lisp compiler, but the result will be ugly, and you'll rarely match C.
- wglb 13y agoI see the ratio as 28.39 sbcl to 10.61 for g++, closer to 3 on the 64 bit version. At any rate, I was addressing generating and then running Asm from Lisp issue.