3 ms·
> most Common Lisp implementations are native compiled. ... isn't it nice to compile down to the metal? Is just the interpreter native or does cl compile your
by platz 10y ago
> most Common Lisp implementations are native compiled. ... isn't it nice to compile down to the metal?
Is just the interpreter native or does cl compile your app to native as well?
- pmalynin 10y agoSBCL compiles to native. In fact thats how you check if the function was tail-optimized -- it will have a JMP opcode instead of CALL
- ohyes 10y agoTo add to this, Most of them compile to native. I think the exception is CLISP. Certain implementations have both because compiling was costly at one point.
- snaky 10y agoTo native with elegance [1] and even closer to the metal "because sometimes C abstracts away too much" [2]. [1] https://www.pvk.ca/Blog/2014/08/16/how-to-define-new-intrinsics-in-sbcl/ https://www.pvk.ca/Blog/2014/08/16/how-to-define-new-intrins... [2] 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...