On 09/ 6/10 10:42 PM, Simon King wrote:
Hi Dave!

On 6 Sep., 22:29, "Dr. David Kirkby"<[email protected]>  wrote:
Is the endianness really different on sage.math and t2.math?

Yes. x86 are little endian. SPARC is big endian.

Cool! Now I am really proud that my code mostly works on t2.

I can try the code if you want on my OpenSolaris system. That uses an Intel Xeon
processor, so is little endian.

Frank Lübeck suggested to use this little example in GAP:
     Reset(GlobalMersenneTwister);; List([1..10],i->Random(1,100000));

This is on a Sun Ultra 27 running OpenSolaris, with a Xeon box.

sage -t  -long devel/sage/sage/quadratic_forms/quadratic_form__siegel_product.py
         [164.1 s]

----------------------------------------------------------------------
All tests passed!
Total time for all tests: 1825.6 seconds
drkir...@hawk:~/noatlas/sage-4.5.3.rc0$ ./sage -gap

            #########           ######         ###########           ###
         #############          ######         ############         ####
        ##############         ########        #############       #####
       ###############         ########        #####   ######      #####
      ######         #         #########       #####    #####     ######
     ######                   ##########       #####    #####    #######
     #####                    ##### ####       #####   ######   ########
     ####                    #####  #####      #############   ###  ####
     #####     #######       ####    ####      ###########    ####  ####
     #####     #######      #####    #####     ######        ####   ####
     #####     #######      #####    #####     #####         #############
      #####      #####     ################    #####         #############
      ######     #####     ################    #####         #############
      ################    ##################   #####                ####
       ###############    #####        #####   #####                ####
         #############    #####        #####   #####                ####
          #########      #####          #####  #####                ####

     Information at:  http://www.gap-system.org
     Try '?help' for help. See also  '?copyright' and  '?authors'

   Loading the library. Please be patient, this may take a while.
GAP4, Version: 4.4.12 of 17-Dec-2008, i386-pc-solaris2.11-gcc
gap> Reset(GlobalMersenneTwister);; List([1..10],i->Random(1,100000));
[ 85758, 234, 18408, 12676, 2507, 38166, 24692, 15013, 4755, 94043 ]
gap>


The resulting sequence seems to depend on endianness.



But endianness strikes back in an unexpected way...

I used to work on a 24-bit machine. Either the most (or least), my memory fails
me, was in the middle!

Interesting design concept...

Best regards,,
Simon


--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to