The following Aldor construct does not yet work in Axiom. This is in fact the reason why I would love to have Aldor working. I did not expect it to work, and it does not, but it works almost. The code is as follows: fricas (1) -> <aldor> #include "axiom" fricas Compiling FriCAS source code from file /var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/4460571600609964226-25px001.as using Aldor compiler and options -O -Fasy -Fao -Flsp -lfricas -Mno-ALDOR_W_WillObsolete -DFriCAS -Y $FRICAS/algebra -I $FRICAS/algebra Use the system command )set compiler args to change these options. "/var/lib/zope2.10/instance/axiom-wiki/var/LatexWiki/4460571600609964226-25px001.as", Note that such a construction - the resulting domain depending on the function parameter - is currently illegal in Axiom. In Aldor it is fine. I compiled it with Aldor as usual, and then loaded it into Axiom. As signature I got the slightly unusual: fricas )di op f and trying it out I obtained: Axiom output parse error! which is roughly what I expected. However, to my great surprise, if you turn on the debugger (beforehand. You always have to start a fresh axiom because of the error I told you about in my previous message) with: )lisp (setq |$monitorNewWorld| t) and thus trace: f(1783)$Test the final bit reads: protected-symbol-warn called with (NIL)..IntegerMod 1783 wants positiveRemainder : (%,%) -> % from Integer ---->Integer----> searching op table for: positiveRemainder : (%,%) -> % from Integer <----#<compiled-function |INT;positiveRemainder;3$;28|> Integer goget stuffing slot 47 of IntegerMod 1783 <------#<compiled-function |INT;positiveRemainder;3$;28|> Integer PrimeField n activating lazy slot 8: Integer PrimeField n activating lazy slot 9: IntegerPrimesPackage Integer ..PrimeField n wants prime? : Integer -> Boolean from IntegerPrimesPackage Integer ---->IntegerPrimesPackage Integer----> searching op table for: prime? : Integer -> Boolean from IntegerPrimesPackage Integer <----#<compiled-function |PRIMES;prime?;IB;4|>(IntegerPrimesPackage,Integer) goget stuffing slot 10 of PrimeField n <------#<compiled-function |PRIMES;prime?;IB;4|>(IntegerPrimesPackage,Integer) which clearly tells you, that the calculation is done alright, only the signature interferes with success. Any ideas? Peter said, that it's on the interpreter side. You can read the whole thread on http://lists.gnu.org/archive/html/axiom-developer/2005-01/msg00154.html Concerning his patches, Peter also pointed out that
property change --kratt6, Sat, 15 Oct 2005 06:04:09 -0500 reply Severity: normal => wishlist
Note that with Peter''s patches the error message System Error: Unfortunate use of dependant type is directly triggered by the code produced by aldor. In the lisp file, there line 201 reads:
(|Halt| (the |SInt| 101))))
Martin |