3 ms·
Both Lisps (Common and Scheme) are garbage-collected, so they're in the 'slow as molasses' group of languages (which covers pretty much everything outside of C,
by tmtvl 11mo ago
Both Lisps (Common and Scheme) are garbage-collected, so they're in the 'slow as molasses' group of languages (which covers pretty much everything outside of C, C++, Rust, Fortran, Pascal, Ada, and assembly); but among the 'slow as molasses' group, Common Lisp (at least SBCL, which may be the most prolific implementation) is blazingly, scorchingly, stupendously fast. If you know how to use it it's a bat out of hell outrunning greased lightning.
On the Scheme side of things Chez is pretty fast. It's not 'I've gained a whole new level of respect for the people who engineered my CPU' levels fast, but it's still pretty decent.
- gus_massa 11mo agoIn the arbitrary collection of programs in https://benchmarksgame-team.pages.debian.net/benchmarksgame/index.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... , SBCL runs x5 slower than C, Racket x15 slower than C. Chez Scheme shoud be in between, like x10 slower than C. (Anyway, some C programs use very advanced low level tricks, so the difference with realistic programs may be slower.) It's a pity they don't rune benchmarks for Clojure, and I have no idea to make up a number.
- igouy 11mo ago> Chez Scheme shoud be in between ? The default implementation as of Racket version 8.0 uses Chez Scheme as its core compiler and runtime system. https://docs.racket-lang.org/reference/implementations.html https://docs.racket-lang.org/reference/implementations.html > some C programs use very advanced low level tricks * possible hand-written vector instructions or "unsafe" or naked ffi" are flagged https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/clang-sbcl.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...