Re:Nash – A tracing JIT compiler for Scheme [pdf]
by igouy on Sunday March 05, 2017 @01:49AM
(#13794910)
Let me help you with a benchmarks game URL --
http://benchmarksgame.alioth.debian.org/u64q/compare.php?lan...
NodeJS (V8) is slower than Racket in many benchmarks:
https://benchmarksgame.alioth.debian.org/u64q/measurements.p...
https://benchmarksgame.alioth.debian.org/u64q/measurements.p...
Note that Racket is not even in the top 5 for most Scheme compiler benchmarks:
https://ecraven.github.io/r7rs-benchmarks/benchmark.html
There are a bunch of Scheme implementations in JS, none of them are benchmarked in the previous link: https://github.com/jashkenas/coffeescript/wiki/List-of-langu...
JavaScript is a really shitty language to target because it has very few performant control structures and terrible data types (you need ints and good arrays). Scheme also has first-class continuations, which cannot be implemented efficiently in JavaScript. Even if you leave out continuations IMO it is impossible to make a performant transpiler for most languages that targets JavaScript.