Re: [dwm] OT : suckless foreign function interface

From: Mate Nagy <mnagy_AT_port70.net>
Date: Sat, 15 Nov 2008 08:23:42 +0100

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
Received on Sat Nov 15 2008 - 07:23:42 UTC

This archive was generated by hypermail 2.2.0 : Sat Nov 15 2008 - 07:36:03 UTC