I know that Lua is best in class for embedding, but I want to use Scheme or some LISP dialect as the scripting language for my C application. What are good translators for embedding? My criteria:
- Open source (preferably in C - I think most of them).
- R5RS is very welcome, SRFIs plus.
- Easy FFI with C (in both directions) is very important.
- Must be saved, updated, not dead projects.
- Performance comparable to Lua.
- Portable (at least GNU / Linux - MacOS - Windows (MinGW / Cygwin is acceptable)).
I do not care:
- Large library (with simple FFI, I can add a missing one), but that's a plus.
- The size. I plan to run it on a desktop computer, not on Android / iOS.
- Rich documentation. Some samples with FFI may be sufficient.
I currently consider the following:
- GNU Guile This seems to fit, but I don't know about performance (is it VM or interpreted?).
- newLISP. Brand new, documented, but not sure about performance and embedding.
- TinyScheme / Chibi. Very small, R5RS, designed for installation. Not sure about performance.
source share