On Wed, May 27, 2026 at 7:37 PM Qian Yun <[email protected]> wrote: > > On 5/28/26 8:33 AM, Dima Pasechnik wrote: > > On Wed, May 27, 2026 at 6:22 PM Qian Yun <[email protected]> wrote: > >> > >> On 5/28/26 6:27 AM, Dima Pasechnik wrote: > >>>> > >>>> - make it easier for external programs to interface with FriCAS > >>>> > >>>> (especially sagemath. The call-lisp-from-c interface seems brittle.) > >>> SageMath doesn't do call-lisp-from-c in the case of fricas (it uses > >>> pexpect, that's sockets/pipes, more or less), > >>> and that's actually what makes it more brittle than SageMath's main > >>> interface with maxima, which is call-lisp-from-c. > >>> > >>> For the latter, fricas needs to be packaged as ecl .fas file, to be > >>> loaded by ecl, among with other things on our side. > >>> > >>> Dima > >>> > >>> > >> > >> Yes, current fricas-sage interface is pexpect based. > >> > >> Each lisp has different call-lisp-from-c interface, which is > >> a bit messy, unlike call-c-from-lisp interfaces. > >> > >> About ECL interface, my understanding is that it can only > >> load one .fas at a time, so that fricas and maxima can't coexist? > > > > On the ecl side, ecl certainly can load multiple .fas files. E.g. > > > > (require 'maxima) > > (require 'foobar) > > > > loads maxima.fas and foobar.fas. > > > > SageMath interface would need adjustments and a refactoring, > > certainly, as it wasn't designed to handle FriCAS, > > but I don't see real issues there. > > > > Dima > > > > > I mean, in ./src/sage/interfaces/maxima_lib.py : > > Only one instance of this interface can be instantiated, > so the user should not try to instantiate another one, "this interface" loads maxima.fas. It's not designed to load multiple copies of maxima (which would then need to live in different namespaces, etc)
> > So there can be only one (ecl-python) interface working at a time? no, potentially you can interface with many systems (there is in fact one more Lisp-based system with SageMath interface, Kenzo) Dima > > - 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 visit > https://groups.google.com/d/msgid/fricas-devel/6fcbccbb-c11f-4a47-8096-29818ca35138%40gmail.com. -- 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 visit https://groups.google.com/d/msgid/fricas-devel/CAAWYfq10omurFk1y5V1iDJPwZ_RgSEAR0cg2GJciU5JQUWzMBA%40mail.gmail.com.
