On Sun, Apr 16, 2023 at 12:28 PM Ralf Hemmecke <[email protected]> wrote: > > On 16.04.23 12:18, Dima Pasechnik wrote: > >> I generic interface is anyway never needed. I guess also Sage just picks > >> out a couple of useful features from other systems > > > no, not really. E.g. with libgap (library interface to GAP) you can really > > write anything you can do in GAP in Python syntax in Sage, > > the interface is not requiring you to write boilerplate interface code. > > OK, maybe I do not know enough of how that works, but we clearly have to > distinguish two types of interfaces. > A) control an external program P by the host program and allow output > from P to be shown in your system > B) same as A) plus allow your system to use the computed values from P > in your system. > > Maybe what you describe is interface type (B), but I guess, that still > needs quite some effort to translate the data or at least write some > routines to interpret the ASCII output of P.
No, there is, ideally, no ASCII involved! E.g. Sage and GAP use the same machine precision integers (int), and the same long integers (GMP integers). So they copy this data in memory (or even not copy, just modify in place). The main issue here becomes memory management of such objects, especially as GAP has its won garbade collector. (Same with the Lisp interface). And what I meant is that in > this part Sage covers only a part of FriCAS. > > Just calling P from my system and only showing its output in my system > is not so hard. The problem is to use the data that is computed > externally. I wonder why OpenMath is not yet generally accepted as an > interface communication language. > > 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/1f97d3e5-071f-d315-40dc-64667dd7e2f9%40hemmecke.de. -- 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/CAAWYfq2YY52BwoVrvu2sLBtNatpYLkCN6hoP70NpyZADFoZQqQ%40mail.gmail.com.
