Can C functions be called from femtolysis?

I recently met a small lisp dialect called femtolisp, written by Jeff Besancon, author of the famous language of Julia. (For more information about the femtological visit https://code.google.com/p/femtolisp/ and https://github.com/JeffBezanson/femtolisp ) and I really like it.

However, I wonder if there is a way to call C functions from femtolysis?

+4
source share
1 answer

No, there is currently no way to call arbitrary C functions from a femtological language. As Matt B. says, there is an expansive API that allows you to write functions in C (which in turn can call any C function) and register them to become callable from femtolysis. One could use this mechanism to add the function ccallthat was used, for example. libffi to call any C. function

+4
source

Source: https://habr.com/ru/post/1537952/


All Articles