On Sun, Jul 26, 2026 at 10:21:09PM +0200, 'Ralf Hemmecke' via FriCAS - computer algebra system wrote:
> I've just translated FriCAS (with the same Aldor version).
> Attached you find the respective DGRG.ap for FriCAS
>
> For FriCAS 1.3.13 6cafaeb7603e379c55244e3d9292ecff5058dd63 there is
>
> (|Apply| |SCartesian|
> (|RestrictTo| (|LitInteger| "2") |PositiveInteger|))))
>
> For FriCAS f6d3ff21ce2460ce83cb25bf560fbfc407db27ee there is
>
> (|Apply| |SCartesian| 2)))
Yes, I know this.
> Since the Aldor interface or Aldor hasn't changed there must be something
> that FriCAS changed in the structures?
This is recent commit, fix for passing parameters to domains.
Attached to my previous message is possible fix, which skips
generating the offending info.
What I do not know is if this info is needed at all. If it is
not needed we could simply remove part of ax.boot responsible
for producing this info. If the info is critically needed,
then we are in trouble: in principle instead of simple thing
like '2' above we may have arbitrarily complex FriCAS expression.
Producing faithful translation of such expression to Aldor is
probably bigger effort than what was already done on Aldor
interface. OTOH it is not clear why Aldor wants information
about defaults: resolving defaults is supposed to happen at
runtime and to compile code all what is needed is information
about available signatures (and not where they are implemented).
If Aldor uses this information for some worthwile optimizations,
then we could try to provide it on "best effort" basis, that
is skip compilcated stuff (which Aldor is unlikely to understand
well enough to optimize) and genrate info for simple cases.
OTOH I do not see how this info could be used to optimize code:
without access to implementation of FriCAS functions Aldor can
not expand them inline. And even trying to hardcode Lisp name
of a function (which could save time spend on runtime lookup) is
problematic, as those names seem to be unavailable in the
interface.
--
Waldek Hebisch