I recently came across small lisp dialect called femtolisp, written by Jeff Bezanson, the author of famous Julia Language. (For more information about femtolisp visit https://code.google.com/p/femtolisp/ and https://github.com/JeffBezanson/femtolisp) and I really like it.
However, I wonder is there some way to call C functions from femtolisp?
No, there is currently no way to call arbitrary C functions from within the femtolisp language. As Matt B. says, there is an extension API that lets you write functions in C (which can in turn call any C function) and register them to become callable from femtolisp. It would be possible to use this mechanism to add a ccall
function that used e.g. libffi to call any C function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With