On 3 January 2024 12:42:23 WET, Waldek Hebisch <[email protected]> wrote:
>On Wed, Jan 03, 2024 at 07:07:47PM +0800, Qian Yun wrote:
>> I suggest to check for symbol instead of "#+" feature testing.
>> 
>> This will allow FFI-free pure-lisp build.
>
>IMO pure-lisp build is futile.  We want to use GMP, blas, lapack
>and possibly our own routines.  Currently ECL and GCL use
>GMP for bignums, so that covers important part.  But we also
>would like to use GMP for polynomial multiplication and for
>that purpose bypassing Lisp bignums is very desirable.  Currently
>we have proof-of-concept lapack and blas interface.  Main issue
>blocking its inclusion is configure machinery to detect blas
>and lapack, 

you may want to use what we have in SageMath for 
blas/lapack detection.

We actually only use OpenBLAS (which is  the most 
popular optimised open-source BLAS/LAPACK implementation, available on almost 
all Linux, macOS, and *BSDs)

It's very easy if pkg-config for OpenBLAS is available.
(we do some tricky things to generate pkg-config files if they are not there, 
but perhaps you may just skip this, and assume it's available)


> FFI part is easy to resolve.
>
>> To quote the FriCAS development goals:
>> 
>>     "make it easier for external programs to interface with FriCAS"
>> 
>> I think that FFI-free pure-lisp build is one step toward this goal.
>> 
>> fricas0 is one example that utilizes pure-lisp build.
>> 
>> In Sagemath, there's a pexpect (IO) based interface for FriCAS and
>> Maxima, but there's an additional ECL based interface for Maxima.
>> So using FriCAS as a pure-lisp library can have its advantages.
>
>Big point about ECL is ease of calling C code.  And it seems that
>to get good performance using ECL we need to call C: "native"
>ECL is too slow.  So really library use should include FFI.
>

-- 
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/5F92EA30-B76C-49A0-8AC8-1A5BFA119419%40gmail.com.

Reply via email to