Greetings,
> 1. Generate small C programs and call them via system() inside the
> scheme interpreter.
 well, if speed is a non-issue...
> ...
 how about dlopen/dlsym? that's pretty simple and rather usual. Callable
C functions should export a standard API (like the builtins in your
interpreter?), you designate an initialization function that registers
these in the namespace, and you're set.

 As for writing a custom ffi, how about looking at libffi or gnu
lightning instead?

Regards,
 Mate

Reply via email to