Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the fastest scheme implementation?

Tags:

lisp

scheme

Obviously, that will depend on what you want to do: numerical analysis, threading, databases, etc. I've seen the benchmarks; Larceny and Bigloo seem to come up ahead. Is there any implementation of Scheme that performs pretty well in several different benchmarks? Are there any that can create code that runs faster than produced by SBCL? I don't see why SBCL should be so fast - Scheme is a far simpler language than Common Lisp!

like image 980
Gautam Avatar asked Sep 02 '25 15:09

Gautam


2 Answers

Among the Schemes that are fully standards compliant (at least with R5RS) and ready for prime-time use, Chez Scheme must be the fastest.

like image 194
Vijay Mathew Avatar answered Sep 05 '25 15:09

Vijay Mathew


http://community.schemewiki.org/?Stalin

http://en.wikipedia.org/wiki/Stalin_(Scheme_implementation)

From Wikipedia:

Stalin (STAtic Language ImplementatioN) is an aggressive optimizing batch whole-program Scheme compiler written by Jeffrey Mark Siskind. It uses advanced flow analysis and type inference and a variety of other optimization techniques to produce code. Stalin is intended for production use in generating an optimized executable.

The compiler itself runs slowly, and there is little or no support for debugging or other niceties. Full R4RS Scheme is supported, with a few minor and rarely encountered omissions. Interfacing to external C libraries is straightforward. The compiler itself does lifetime analysis and hence does not generate as much garbage as might be expected, but global reclamation of storage is done using the Boehm garbage collector.

It seems that Stalin is no longer being developed.

like image 25
Wodin Avatar answered Sep 05 '25 16:09

Wodin