Re: [genius-list] Re: genius-0.4.3

From: George <jirka_at_5z.com>
Date: Thu, 27 May 1999 09:53:44 -0700

On Thu, May 27, 1999 at 02:02:05AM -0400, Squeak wrote:
> Cheese feature request: set-able output radix. Hex is nice sometimes.

on the todo, I need to find a way to do this cleanly

> I'm continuing to play with the C++ interface to gmp. Comments welcome,
> numerous bug fixes since last time, and some preliminary transcendental
> support. http://www.xirr.com/~squeak/gmp.H. Note it is definately just
> hacked together right now. I wanted to see the billionth digit of pi and
> all, for myself, blah blah.

you should really look at mpwrap from genius ... those could actually be
separated into a library, they provide a much more higher level interface to
gmp, which is consistent across all the gmp types, and also it can do complex
numbers, and copy on write.

> genius> [[1,2:3,4],5:6,7]
> =
> [1 2 5
> 3 4 5
> 6 6 7]
> genius> [[1,2:3,4],5,6,7:8,9,10]
> =
> [1 2 5 6 7
> 3 4 5 6 7
> 8 8 9 10 0]
>
>
> seems weird...)

no ... it behaves as it should, the first one definately, try to write it out
with returns

a = [1,2
     3,4]
[a,5
 6,7]

should expand to
[1 2 5
 3 4 5
 6 6 7]

the second one is defined weirdly and I don't know what the exact correct
semantics for that would be, it is:

a = [1,2
     3,4]
[a,5,6,7
 8,9,10]

first we do this:

[a,5,6,7
 8,9,10,0]

then a is expanded as before

[1 2 5 6 7
 3 4 5 6 7
 8 8 9 10 0]

> Are you interested in bug-reports on libgel? There are so anomolies there
> I believe, but I haven't looked close enough to be sure it wasn't an
> id-10-t user error.

yes, do send me those

George

-- 
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
  The following implements RSA in perl and is illegal to export from the US:
          #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
          $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
          lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
Received on Thu May 27 1999 - 09:53:48 CDT

This archive was generated by hypermail 2.2.0 : Sun Apr 17 2011 - 21:00:02 CDT