On 3/1/24 21:45, Waldek Hebisch wrote:
On Fri, Mar 01, 2024 at 07:40:24AM +0100, Ralf Hemmecke wrote:
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).
I am not sure about this. But in general calling FLINT or NTL
in official way is rather inconvenient.
Yes, inconvenience maybe. But the alternative is to not being able to
call it at all. With inconvenience the situation would still improve.
Well, I currently do not need it desparately, but it would be a
nice-to-have, even if it were inconvenient.
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/f1d19ac5-6aad-4a3b-9075-894c83e368e5%40hemmecke.org.