What is the easiest implementation of the scheme to implement in a C / C ++ program?

I am rewriting a program that has built in a script language for extension and configuration, the old Lua program used, Lua can be easily integrated into my program, just download its source code, unzip and move all the source files to my program directory, delete lua.c and luac .c and everything works very well. To learn functional programming language, I decided to choose the lisp dialect (scheme) as a new script backend, but there are many implementation schemes that are best to embed?

+7
scheme
source share
2 answers

There are many schemes for implementation. Two that I personally would recommend:

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

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

For other great schemes, see Wikipedia for a listing of the scheme implementations .

+6
source share

I recommend trying Bigloo . On its website:

Bigloo is a schema implementation dedicated to one goal: the inclusion of a schema-based programming style where C (++) is usually required. Bigloo is trying to make Scheme practical by offering features that are usually represented by traditional programming languages, but not offered by Scheme and functional programming. Bigloo compiles circuit modules. It provides small and fast offline executable files. Bigloo provides complete connections between Scheme and C programs, between Scheme and Java programs, and between Scheme and C # programs.

I saw how it was successfully used to create an implementation scheme in application C. An important advantage of Bigloo over other projects is that it supports fully compiled scheme code. And of course, you can mix this with interpreted schema code as needed.

+3
source share

All Articles