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.
--
Waldek Hebisch
--
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/ZeI-a-yDGIV4PCYm%40fricas.org.