On 3/1/24 01:33, Waldek Hebisch wrote:
IMO before going forward with implementation we should first
define what FFI should do.  One basic question is "who owns
the data".  sbcl FFI slightly prefers variant when C code
owns data.  This avoid memory management by Lisp implementation.
But it also means that memory management is user responsibility.
This may be acceptable when you want to use existing C library
which requires manual memory management anyway.  But for me
_main_ use case is using C code as fast "primitives" that
operate on Lisp data.

I would like to be able to call functions from FLINT or NTL.
AFAICS one has to provide memory for FLINT or NTL to work on, even for the result (correct me, if I am wrong).

Ralf

--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/fa3b63b8-9409-4f91-885d-ef0c0bc2cb26%40hemmecke.org.

Reply via email to