On 11/19/23 18:27, Waldek Hebisch wrote:
On Sun, Nov 19, 2023 at 10:05:10AM +0800, Qian Yun wrote:
Currently, the only FFI function used during build (without-x11)
is |remove_directory| in |erase_lib|, and there has a Lisp fallback.
So the autotools variable "fricas_has_directory_operations"
means we have those C functions, while Lisp symbol
:fricas_has_remove_directory means we can use them.
This is not true for CLISP built without FFI.
Why would anyone use CLISP built without FFI? I consider any
Lisp without well-working FFI as deficient and I intend to
use FFI in FriCAS algebra.
Currently FFI is only used by hyperdoc/drawing, and remove_directory.
It is not used (directly) by algebra. Except for GMP, which is only
available for sbcl and clozurecl.
For one thing, a pure lisp build of FriCAS can be interesting --
it might get distributed by quicklisp, for example. (A very very
long way to go there.)
On the other hand, current hand-written FFI doesn't scale well --
if we want to "support for using external mathematical routines
from Spad", then CFFI and C2FFI is the way to go.
I had a FLINT binding working some time ago. (via C2FFI).
- Qian
--
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/3b747772-613b-4176-a94e-c2ae346ce946%40gmail.com.