|
View:
New views
12 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: [Axiom-developer] aldor/axiom interoperabilityOn 3/13/08, Gregory Vanuxem <g.vanuxem@...> wrote:
> Dear Peter, * > > I was waiting for your small Aldor patch and never see it. Did you send > it somewhere ? From: Martin Rubey <martin.rubey@...> Date: 17 Jan 2008 09:21:22 +0100 Message-ID: <9qodbk981p.fsf@...> Sender: fricas-devel@... List-Unsubscribe: <http://googlegroups.com/group/fricas-devel/subscribe>, <mailto:fricas-devel-unsubscribe@...> Dear Franz, MANY MANY thanks for your instructions! They just worked! (except that I don't have lndir, but I did for f in ../../src/algebra/*; do ln -s $f; done; instead) They should definitively replace the old instructions on the wiki. In fact, I think that both src_aldor2.tgz and your script should go into the fricas contrib directory, say, contrib/aldor. Maybe you could polish your script so that it doesn't use lndir, detects ARCH automatically and does not depend on the fricas source directory any longer. ARCH is detected also in contrib/debian/mk_deb, you could steal it from there The fricas source directory is used only to get axiom.sty, I think? Maybe you could just pack it into contrib too? lehner@... writes: > Bill Page wrote: > > After a little more fighting with the src_aldor2.tgz makefile, I have > > finally managed to build the Aldor interface in FriCAS. As Peter said, > > a patch to Axiom's 'hashType' was necessary to make this work. > Is this patch publicly available anywhere? Here it is: Index: src/interp/hashcode.boot =================================================================== --- src/interp/hashcode.boot (Revision 183) +++ src/interp/hashcode.boot (Arbeitskopie) @@ -55,7 +55,7 @@ hash := hashCombine(hashType(arg, percentHash), hash) retCode := hashType(retType, percentHash) EQL(retCode, $VoidHash) => hash - hashCombine(retCode, hash) + hashCombine(retCode, hashCombine(32236, hash)) op = 'Enumeration => for arg in args repeat hash := hashCombine(hashString(STRING arg), hash) Don't ask me what it does, however :-) Many thanks again, Martin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To post to this group, send email to fricas-devel@... To unsubscribe from this group, send email to fricas-devel-unsubscribe@... For more options, visit this group at http://groups.google.com/group/fricas-devel?hl=en -~----------~----~----~----~------~----~------~--~--- _______________________________________________ Aldor-l mailing list Aldor-l@... http://aldor.org/mailman/listinfo/aldor-l_aldor.org |
|
|
Re: [Axiom-developer] aldor/axiom interoperabilityDear all,
unfortunately, I'm also having (severe) problems. My setup is as follows: fricas rev 258 rubey@aquin:/local/scratch/fricas$ svn diff Index: src/interp/hashcode.boot =================================================================== --- src/interp/hashcode.boot (Revision 258) +++ src/interp/hashcode.boot (Arbeitskopie) @@ -55,7 +55,7 @@ hash := hashCombine(hashType(arg, percentHash), hash) retCode := hashType(retType, percentHash) EQL(retCode, $VoidHash) => hash - hashCombine(retCode, hash) + hashCombine(retCode, hashCombine(32236, hash)) op = 'Enumeration => for arg in args repeat hash := hashCombine(hashString(STRING arg), hash) ------------------------------------------------------------------------------- rubey@aquin:/local/scratch/fricas/contrib$ aldor -gloop AA L DDDD OOO RRRR A A L D D O O R R A A L D D O O R R AAAAA L D D O O RRRR A A L D D O O R R A A LLLLL DDDD OOO R R (c) Numerical Algorithms Group Ltd 1995-2001 Release: Aldor(C) version 1.0.3 for LINUX(glibc2.3) Type "#int help" for more details. ------------------------------------------------------------------------------- I compiled FriCAS with gcl, then I followed the instructions given by Franz, i.e., using the old makefiles from Peter.(!!!!) But it doesn't seem to work: --fact.as---------------------------------------------------------------------- #include "axiom" fact(n: PositiveInteger): PositiveInteger == { n <= 1 => 1; res: PositiveInteger := 1; while n > 1 repeat { res := res * n; n := n-1; } res } --fact.as---------------------------------------------------------------------- (1) -> )co fact.as Compiling FriCAS source code from file /users/rubey/martin/Axiom/fact.as using AXIOM-XL compiler and options -O -Fasy -Fao -Flsp -laxiom -Mno-AXL_W_WillObsolete -DAxiom -Y $AXIOM/algebra Use the system command )set compiler args to change these options. #1 (Warning) Deprecated message prefix: use `ALDOR_' instead of `_AXL' Compiling Lisp source code from file ./fact.lsp Issuing )library command for fact Reading /users/rubey/martin/Axiom/fact.asy (1) -> fact 4 >> System error: FUNCALL [or a callee] requires more than one argument. --acint.as--------------------------------------------------------------------- #include "axiom" ACInteger: with { coerce: Integer -> %; foo: % -> Integer; } == Integer add { Rep == Integer; import from Rep; foo(x: %): Integer == { output((rep x)::OutputForm)$OutputPackage; rep x; } coerce(x: Integer): % == per x; } ------------------------------------------------------------------------------- (1) -> )co acint.as Compiling FriCAS source code from file /users/rubey/aldor-test/acint.as using AXIOM-XL compiler and options -O -Fasy -Fao -Flsp -laxiom -Mno-AXL_W_WillObsolete -DAxiom -Y $AXIOM/algebra Use the system command )set compiler args to change these options. #1 (Warning) Deprecated message prefix: use `ALDOR_' instead of `_AXL' Compiling Lisp source code from file ./acint.lsp Issuing )library command for acint Reading /users/rubey/aldor-test/acint.asy ACInteger is now explicitly exposed in frame frame0 ACInteger will be automatically loaded when needed from /users/rubey/aldor-test/acint (1) -> foo(2::ACINT) Internal Error The function foo with signature hashcode is missing from domain UNPRINTABLE ------------------------------------------------------------------------------- Help would be GREATLY appreciated! Could it make a difference if I used src_aldor3.tgz instead? Would this work with fricas, too? Finally, I just noticed something very odd: --fact2.as---------------------------------------------------------------------- #include "axiom" fact(n: Integer): Integer == { n <= 1 => 1; res: Integer := 1; while n > 1 repeat { res := res * n; n := n-1; } res } --fact.as---------------------------------------------------------------------- works well. Martin _______________________________________________ Aldor-l mailing list Aldor-l@... http://aldor.org/mailman/listinfo/aldor-l_aldor.org |
|
|
Re: [Axiom-developer] aldor/axiom interoperabilityOn 3/13/08, Gregory Vanuxem wrote:
> ...The main concern of this mail is if you are able to > compile ecfact.as (attached) and _execute_ the > LenstraEllipticMethod(Integer) function. On my system > it fails, a bug somewhere. Am I alone with this issue ? > Martin ? I'm still using the old build process Greg, you are referring to src_aldor2.tgz that relies on Java, as the "old build process", right? > and want to switch to the new one but this stops me. By you "new one" you mean the new build system recently posted by Peter in the file "src_aldor3.tgz", right? (This one no longer requires Java.) So you are saying that you are trying to use the new build but that there is the regression error that you are now reporting. Is it only the build process that has changed? What other things might be different between the version that you now works and this new one? Are you using the same version of Axiom? What version of Aldor? > I do not want to take your time but maybe you have an idea > of what's going on with this issue. > > The output is : > > Looking in OutputPackage() for ??349042727 with code 483270060 > and an error message : "export not found" > On show at http://axiom-wiki.newsynthesis.org/SandBoxEcfact using the FriCAS version of Axiom with Peter's hashcode patch and the current open source version of Aldor, I get the following similar (but different) error: (1) -> )co ecfact.as (1) -> LenstraEllipticMethod(99) Looking in OutputPackage() for ??349042727 with code 483270060 >> System error: FOAM-USER::|fiRaiseException| is invalid as a function. Regards, Bill Page. _______________________________________________ Aldor-l mailing list Aldor-l@... http://aldor.org/mailman/listinfo/aldor-l_aldor.org |
|
|
Re: [Axiom-developer] aldor/axiom interoperabilityOn 3/14/08, Bill Page wrote:
> On 3/13/08, Gregory Vanuxem wrote: > > ... > > The output is : > > > > Looking in OutputPackage() for ??349042727 with code 483270060 > > and an error message : "export not found" > > > > As shown at http://axiom-wiki.newsynthesis.org/SandBoxEcfact This problem seems to be related only the use of 'output' from inside an Aldor function: -------- file: testoutput.as ------ #include "axiom.as" #pile TestOutput: with testOutput: (Integer) -> Integer == add import from String import from OutputPackage testOutput(x:Integer):Integer == output("help!") x --------- (1) -> )co testoutput.as Compiling FriCAS source code from file /var/zope2/var/LatexWiki/7970768026816943239-25px003.as using AXIOM-XL compiler and options -O -Fasy -Fao -Flsp -laxiom -Mno-AXL_W_WillObsolete -DAxiom -Y $AXIOM/algebra Use the system command )set compiler args to change these options. #1 (Warning) Deprecated message prefix: use `ALDOR_' instead of `_AXL' Compiling Lisp source code from file ./7970768026816943239-25px003.lsp Issuing )library command for 7970768026816943239-25px003 Reading /var/zope2/var/LatexWiki/7970768026816943239-25px003.asy TestOutput is now explicitly exposed in frame initial TestOutput will be automatically loaded when needed from /var/zope2/var/LatexWiki/7970768026816943239-25px003 (1) -> testOutput(1) Looking in OutputPackage() for ??349042727 with code 320506156 >> System error: FOAM-USER::|fiRaiseException| is invalid as a function. Regards, Bill Page. _______________________________________________ Aldor-l mailing list Aldor-l@... http://aldor.org/mailman/listinfo/aldor-l_aldor.org |
|
|
Re: [Axiom-developer] aldor/axiom interoperabilityGreg,
On 3/14/08, I wrote: > > This problem seems to be related only the use of 'output' from inside > an Aldor function: > > -------- file: testoutput.as ------ > #include "axiom.as" > #pile > TestOutput: with > testOutput: (Integer) -> Integer > == add > import from String > import from OutputPackage > testOutput(x:Integer):Integer == > output("help!") > x > --------- > > (1) -> )co testoutput.as > ... > (1) -> testOutput(1) > Looking in OutputPackage() for ??349042727 with code 320506156 > > >> System error: > FOAM-USER::|fiRaiseException| is invalid as a function. > At the end of the page: http://axiom-wiki.newsynthesis.org/SandBoxEcfact I have included the following simple Aldor functions to replace Axiom's 'output' operation with a direct call to Lisp format: -- implement output for Aldor output(x:String):Void == { import { FORMAT: (Boolean,String,String) -> Void } from Foreign Lisp; FORMAT(true,"~a~%",x); } output(x:String,y:OutputForm):Void == { import { FORMAT: (Boolean,String,String,String) -> Void } from Foreign Lisp; FORMAT(true,"~a ~a~%",x,unparse(convert(y)$InputForm)$InputForm); } This allows the LenstraEllipticMethod to produce some useful output. I hope this helps, but of course I still consider it a bug that it seems impossible to call Axiom's output operations from within Aldor. Regards, Bill Page. _______________________________________________ Aldor-l mailing list Aldor-l@... http://aldor.org/mailman/listinfo/aldor-l_aldor.org |
|
|
Re: [Axiom-developer] aldor/axiom interoperability"Bill Page" <bill.page@...> writes:
> On 3/14/08, Bill Page wrote: > > On 3/13/08, Gregory Vanuxem wrote: > > > ... > > > The output is : > > > > > > Looking in OutputPackage() for ??349042727 with code 483270060 > > > and an error message : "export not found" > > > > > > > > > As shown at > > http://axiom-wiki.newsynthesis.org/SandBoxEcfact > > This problem seems to be related only the use of 'output' from inside > an Aldor function: But I used that extensively in axiom-combinat! How come it is broken now? And how come I cannot get any aldor to work together with my fricas currently? I'm a little desperate. Martin _______________________________________________ Aldor-l mailing list Aldor-l@... http://aldor.org/mailman/listinfo/aldor-l_aldor.org |
|
|
|
|
|
Re: [Axiom-developer] aldor/axiom interoperabilityLe vendredi 14 mars 2008 à 23:14 -0400, Bill Page a écrit :
> Greg, > > On 3/14/08, I wrote: > > > > This problem seems to be related only the use of 'output' from inside > > an Aldor function: > > > > -------- file: testoutput.as ------ > > #include "axiom.as" > > #pile > > TestOutput: with > > testOutput: (Integer) -> Integer > > == add > > import from String > > import from OutputPackage > > testOutput(x:Integer):Integer == > > output("help!") > > x > > --------- > > > > (1) -> )co testoutput.as > > ... > > (1) -> testOutput(1) > > Looking in OutputPackage() for ??349042727 with code 320506156 > > > > >> System error: > > FOAM-USER::|fiRaiseException| is invalid as a function. > > > > At the end of the page: > > http://axiom-wiki.newsynthesis.org/SandBoxEcfact > > I have included the following simple Aldor functions to replace > Axiom's 'output' operation with a direct call to Lisp format: > > -- implement output for Aldor > output(x:String):Void == { > import { FORMAT: (Boolean,String,String) -> Void } from Foreign Lisp; > FORMAT(true,"~a~%",x); > } > output(x:String,y:OutputForm):Void == { > import { FORMAT: (Boolean,String,String,String) -> Void } from Foreign Lisp; > FORMAT(true,"~a ~a~%",x,unparse(convert(y)$InputForm)$InputForm); > } > > This allows the LenstraEllipticMethod to produce some useful output. > > I hope this helps, but of course I still consider it a bug that it > seems impossible to call Axiom's output operations from within Aldor. Many thanks for tracking this down, that works for me using this workaround. We know where to investigate now :-) The mail of Martin that you posted on this mailing list contained the patch that I mentioned previously. I'll try the new build process of Peter and hopefully produce a patch for other Axiom flavours. Regards Greg _______________________________________________ Aldor-l mailing list Aldor-l@... http://aldor.org/mailman/listinfo/aldor-l_aldor.org |
|
|
Re: [Axiom-developer] aldor/axiom interoperabilityLe vendredi 14 mars 2008 à 09:02 +0100, Martin Rubey a écrit :
> Dear all, > > unfortunately, I'm also having (severe) problems. > > My setup is as follows: > > fricas rev 258 > [...] > ------------------------------------------------------------------------------- > > I compiled FriCAS with gcl, then I followed the instructions given by Franz, > i.e., using the old makefiles from Peter.(!!!!) > > But it doesn't seem to work: > > --fact.as---------------------------------------------------------------------- > #include "axiom" > > fact(n: PositiveInteger): PositiveInteger == { > n <= 1 => 1; > res: PositiveInteger := 1; > while n > 1 repeat { > res := res * n; > n := n-1; > } > res > } > --fact.as---------------------------------------------------------------------- > (1) -> )co fact.as > Compiling FriCAS source code from file > /users/rubey/martin/Axiom/fact.as using AXIOM-XL compiler and > options > -O -Fasy -Fao -Flsp -laxiom -Mno-AXL_W_WillObsolete -DAxiom -Y $AXIOM/algebra > Use the system command )set compiler args to change these > options. > #1 (Warning) Deprecated message prefix: use `ALDOR_' instead of `_AXL' > Compiling Lisp source code from file ./fact.lsp > Issuing )library command for fact > Reading /users/rubey/martin/Axiom/fact.asy > (1) -> fact 4 > > >> System error: > FUNCALL [or a callee] requires more than one argument. That is strange I can not reproduce it on a mix of Axiom/FriCAS/OpenAxiom. Something is wrong on your side. > --acint.as--------------------------------------------------------------------- > > #include "axiom" > > ACInteger: with { > coerce: Integer -> %; > foo: % -> Integer; > } == Integer add { > Rep == Integer; import from Rep; > foo(x: %): Integer == { > output((rep x)::OutputForm)$OutputPackage; > rep x; > } > coerce(x: Integer): % == per x; > } > ------------------------------------------------------------------------------- > > (1) -> )co acint.as > Compiling FriCAS source code from file > /users/rubey/aldor-test/acint.as using AXIOM-XL compiler and > options > -O -Fasy -Fao -Flsp -laxiom -Mno-AXL_W_WillObsolete -DAxiom -Y $AXIOM/algebra > Use the system command )set compiler args to change these > options. > #1 (Warning) Deprecated message prefix: use `ALDOR_' instead of `_AXL' > Compiling Lisp source code from file ./acint.lsp > Issuing )library command for acint > Reading /users/rubey/aldor-test/acint.asy > ACInteger is now explicitly exposed in frame frame0 > ACInteger will be automatically loaded when needed from > /users/rubey/aldor-test/acint > (1) -> foo(2::ACINT) > Internal Error > The function foo with signature hashcode is missing from domain > UNPRINTABLE The output bug tracked down by Bill. Can not help more :-( Greg _______________________________________________ Aldor-l mailing list Aldor-l@... http://aldor.org/mailman/listinfo/aldor-l_aldor.org |
|
|
Re: [Axiom-developer] aldor/axiom interoperabilityOn 15 Mar 2008 08:22:15 +0100, Martin Rubey wrote:
> "Bill Page" writes: > > > On 3/14/08, Bill Page wrote: > > > On 3/13/08, Gregory Vanuxem wrote: > > > > ... > > > > The output is : > > > > > > > > Looking in OutputPackage() for ??349042727 with code 483270060 > > > > and an error message : "export not found" > > > > > > > > As shown at > > > > http://axiom-wiki.newsynthesis.org/SandBoxEcfact > > > > This problem seems to be related only the use of 'output' from > > inside an Aldor function: > > > But I used that extensively in axiom-combinat! How come it is > broken now? Perhaps because Aldor is not integrated with any of the Axiom versions nor Axiom with any Aldor version... and of course there is no regression testing. Has anyone been using axiom-combinat? I think it would be great to have a platform where work will that would be easily available to others. Maybe the problem with 'output' is a bug introduced by using FriCAS as the version of Axiom. But I do not recall specifically if Greg ever said exactly what version of Axiom he was using. > And how come I cannot get any aldor to work together with > my fricas currently? I'm a little desperate. > I don't know. Perhaps you can report what problems you find so that other people can try to help. Regards, Bill Page. _______________________________________________ Aldor-l mailing list Aldor-l@... http://aldor.org/mailman/listinfo/aldor-l_aldor.org |
|
|
Re: [Axiom-developer] aldor/axiom interoperability"Bill Page" <bill.page@...> writes:
> > And how come I cannot get any aldor to work together with > > my fricas currently? I'm a little desperate. > > > > I don't know. Perhaps you can report what problems you find so that > other people can try to help. I reported them just a few mails ago: http://groups.google.at/group/fricas-devel/msg/83992b708f7e549e I'd be grateful if somebody could post an *exact* setup that works - especially with friCAS, i.e.: FriCAS rev XXX Aldor version 1.0.2/1.0.3/1.1.0/rev xxx aldor_src2.tgz / aldor_src3.tgz so I can try to reproduce it on my system, and see what broke it. I'd prefer one of the binary release version of Aldor, in fact. many thanks, Martin _______________________________________________ Aldor-l mailing list Aldor-l@... http://aldor.org/mailman/listinfo/aldor-l_aldor.org |
| Free Forum Powered by Nabble | Forum Help |