4 ms·
http://www.pvk.ca/Blog/2014/03/15/sbcl-the-ultimate-assembly-code-breadboard/ http://www.pvk.ca/Blog/2014/03/15/sbcl-the-ultimate-assembly... SBCL: The Ultimate
by wglb 13y ago
http://www.pvk.ca/Blog/2014/03/15/sbcl-the-ultimate-assembly-code-breadboard/ http://www.pvk.ca/Blog/2014/03/15/sbcl-the-ultimate-assembly... SBCL: The Ultimate Assembly Code Breadboard
- userbinator 13y agoI 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.