Re: [dwm] OT : suckless foreign function interface

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

> 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?

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