14 ms·
Scheme48 complies to bytecode, which is run on a VM that's written in PreScheme (http://en.wikipedia.org/wiki/PreScheme http://en.wikipedia.org/wiki/PreScheme)
by hga 14y ago
Scheme48 complies to bytecode, which is run on a VM that's written in PreScheme (http://en.wikipedia.org/wiki/PreScheme http://en.wikipedia.org/wiki/PreScheme) which compiles to C.
Any system based on a C VM is going to be lots easier to port than something that compiles into native instructions. Also look at the Gambit-C implementation of Scheme, which compiles to C. The C itself is arranged like a VM, it's very fast (biggest issue with this approach is incremental compiling, where you need trampolines; the more code you block compile the more you can avoid this overhead).
- sedachv 14y agoThanks for the link, it was PreScheme I was thinking of. You can make a PreScheme to native code compiler. Portable Standard Lisp also uses the same approach now (PSL->SYSLISP->C), but I think when it started out it may have compiled to machine code.