10 ms·
Tangential: if we're talking Lisp and native code speed, Steel Bank Common Lisp (by default) compiles everything to machine code. [0] https://sbcl.org https://
by phoe-krk 3y ago
Tangential: if we're talking Lisp and native code speed, Steel Bank Common Lisp (by default) compiles everything to machine code.
[0] https://sbcl.org https://sbcl.org
- ska 3y agoCompiled lisps have been a thing for nearly as long as lisps have. IIRC the first one was in early 1960s. It's a cultural oddity how strongly people seem to associate them with interpreted code.
- Zambyte 3y agoI think it's because people (rightfully) associate interactive programming with Lisp, and (wrongfully) associate interpreting with interactive programing, since loading compiled machine code into a running program is foreign to most people who do not use Lisp.
- sitkack 3y ago(not (eq? 'lisp 'scheme)) If you want native code from Scheme, using Gambit.
- JasonFruit 3y agoFrom the title: "Lisp with native code speed".
- binary132 3y ago>chez scheme
- kaashif 3y agoWhat does this comment mean? Can you elaborate?
- binary132 3y agoArticle is about a Scheme implementation. User didn't want to talk about Common Lisp. Other user pointed out that the title of the article says "lisp". My comment points out that the article also says "scheme". Scheme is a Lisp. Not all Lisps are Scheme. Hope that clarifies.
- jll29 3y agoChez Scheme outperforms Gambit in the benchmarks cited in a commment above. Chez Scheme has a few interesting features that most compilers do not have, for any language: "A source file can also be precompiled into a stored binary form and automatically recompiled when its dependencies change. Whether compiling on the fly or precompiling, the compiler produces optimized machine code, with some optimization across separately compiled library boundaries. The compiler can also be directed to perform whole-program compilation, which does full cross-library optimization and also reduces a program and the libraries upon which it depends to a single binary."
- sitkack 3y agoI am not a big direct Chez Scheme user, so that was news to me. Thank you! There is this tool that apparently makes it easier and creates a single file. https://github.com/rschardt/chez-exe https://github.com/rschardt/chez-exe