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
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
> "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
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
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
> "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
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
'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