3 ms·
Some Lisps? Almost all Common Lisps compile to native machine code. Which is why CL programs tend to run orders of magnitude faster than e.g. Python programs. (
by dreamcompiler 11y ago
Some Lisps? Almost all Common Lisps compile to native machine code. Which is why CL programs tend to run orders of magnitude faster than e.g. Python programs. (But they're still typically slower than C because of runtime memory allocation and typetag checking.)
- agumonkey 11y agoTalking about speed, someone put this online http://www.nexoid.at/tmp/scheme-benchmark-r7rs.html http://www.nexoid.at/tmp/scheme-benchmark-r7rs.html
- eggy 11y agoChez Scheme (the compiled version vs. Petite Chez) figures high on those lists, and it was just opensourced by Cisco. I used to use Gambit-C, and I still like it, but Chez is fast.
- agumonkey 11y agoIt is and regularly way above the others. I had to hold on my fanaticism.
- eggy 11y agoI am playing with Eduardo Cavazos's libraries with Chez [1], and particularly the port of xspringies. Great fun considering as he points out that the mass-spring calcs are all taking place in scheme. It runs fine on my 2-3 year old notebook. C was a third language for me in the day, and I like Lisps, so this Lispy-C thing is going to eat my afternoon up! [1] https://github.com/dharmatech?tab=repositories https://github.com/dharmatech?tab=repositories
- groovy2shoes 11y agoThat would be ecraven (who hangs out in #scheme on Freenode). See also: https://github.com/ecraven/r7rs-benchmarks https://github.com/ecraven/r7rs-benchmarks