Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which scheme implementation is easiest to embed into C/C++ program?

Tags:

scheme

I am rewriting a program that has embedded a script language for extension and configuration, the old program used Lua, Lua can be embedded into my program easily, just download its source, decompress, and move all source files into my program directory, remove lua.c and luac.c, and everything works very well. For functional programming language learning, I decided to choose a lisp dialect(scheme) as new script backend, but there is a lot of scheme implemetation, which one is best for embedding ?

like image 924
moligaloo Avatar asked Aug 16 '13 06:08

moligaloo


Video Answer


1 Answers

There is a plethora of Schemes made for embedding. Two that I would personally recommend:

  • Chibi, because it's designed to be small and lightweight and supports the new R7RS standard
  • Guile, because it's GNU's choice and is a very mature project

Of the two, Chibi works hard to keep its code and memory footprint small. On the other hand, Guile is more advanced in terms of features offered. Only Chibi supports R7RS, but I believe Guile is working towards that.

For a look at the other great Schemes, take a look at Wikipedia's listing of Scheme implementations.

like image 190
csl Avatar answered Oct 27 '22 13:10

csl