Fwd: Re: PDD 4, v1.3 Perl's internal data types (Final version)

2001-07-07 Thread Bryan C . Warnock
On Friday 06 July 2001 10:13 am, Dan Sugalski wrote: > I should point out that the internal representation of large numbers isn't > going to be huge strings of ASCII characters--we'll probably be an array > of 15-bit integers. (As Hong pointed out a while ago, doing that makes > handling multiplic

Re: PDD 4, v1.3 Perl's internal data types (Final version)

2001-07-06 Thread David L. Nicol
Dan Sugalski wrote: > The C structure that represents a bigint is: > >struct bigint { > void *buffer; > UV length; > IV exponent; > UV flags; >} > > =begin question > > Should we scrap the buffer pointer and just tack the buffer on the end > of the structure? Saves

Re: PDD 4, v1.3 Perl's internal data types (Final version)

2001-07-06 Thread Uri Guttman
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> We won't be using a char-based string math library--it'll all be DS> some internal binary format or other. (I can make a good argument DS> for it being done with a base 10 exponent rather than a base 2 DS> one. I can see doing it

Re: PDD 4, v1.3 Perl's internal data types (Final version)

2001-07-06 Thread Dan Sugalski
At 02:49 AM 7/6/2001 -0400, Uri Guttman wrote: >question: > >can you declare at the language level a scalar to be a bigint or bignum? I think Larry's planning on that, yep. For arrays and hashes at least, I expect, and I don't see why not for scalars too. >that means that native format is never

Re: PDD 4, v1.3 Perl's internal data types (Final version)

2001-07-06 Thread Dan Sugalski
At 07:10 PM 7/5/2001 -0400, Bryan C. Warnock wrote: >On Thursday 05 July 2001 02:11 pm, Dan Sugalski wrote: > > =begin question > > > > Should we scrap the buffer pointer and just tack the buffer on the end > > of the structure? Saves a level of indirection, but means if we need > > to make the bu

Re: PDD 4, v1.3 Perl's internal data types (Final version)

2001-07-05 Thread Uri Guttman
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> 'Kay, here's the final version of this. DS>struct bigint { DS> void *buffer; DS> UV length; DS> IV exponent; DS> UV flags; DS>} DS> =begin question DS> Should we scrap the buffer pointer and

Re: PDD 4, v1.3 Perl's internal data types (Final version)

2001-07-05 Thread Bryan C . Warnock
On Thursday 05 July 2001 02:11 pm, Dan Sugalski wrote: > =begin question > > Should we scrap the buffer pointer and just tack the buffer on the end > of the structure? Saves a level of indirection, but means if we need > to make the buffer bigger we have to adjust anything pointing to it. > > =end

PDD 4, v1.3 Perl's internal data types (Final version)

2001-07-05 Thread Dan Sugalski
'Kay, here's the final version of this. Cut here =head1 TITLE Perl's internal data types =head1 VERSION 1.3 =head2 CURRENT Maintainer: Dan Sugalski <[EMAIL PROTECTED]> Class: Internals PDD Number: 4 Version: 1.3