Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Big nums

3 views
Skip to first unread message

Dan Sugalski

unread,
Jun 11, 2004, 3:36:13 PM6/11/04
to perl6-i...@perl.org
Time for these as well. There's a partial implementation of them in
types/bignum.c. I think it's time to move that to src/ (and the
header file to .h) and get it integrated into parrot.
--
Dan

--------------------------------------it's like this-------------------
Dan Sugalski even samurai
d...@sidhe.org have teddy bears and even
teddy bears get drunk

toe...@toetsch.at

unread,
Jun 12, 2004, 5:39:27 AM6/12/04
to Dan Sugalski, perl6-i...@perl.org

| Time for these as well. There's a partial implementation of them in
| types/bignum.c. I think it's time to move that to src/ (and the
| header file to .h) and get it integrated into parrot.

I'm not really sure if types/bignum.c is what we want. There are AFAIK
some other math packages around, which are maintained and more complete.
GMP comes to my mind.

leo


Dan Sugalski

unread,
Jun 14, 2004, 3:40:43 PM6/14/04
to Alex Gough, toe...@toetsch.at, perl6-i...@perl.org
At 8:15 PM +0100 6/14/04, Alex Gough wrote:
>#### [Sat, Jun 12, 2004 at 11:39:27AM +0200: toe...@toetsch.at]
>That's not such a bad plan. There's still a lot to do before the
>bignum stuff is entirely ready (in terms of functions for the
>standard) (and I'm still too busy right now to get deeply into
>anything).

The only thing that worries me about GMP is the license. It's LGPL,
so we might be able to, but it's tough to tell for sure, and the
explanatory text doesn't help at all.

The only bignum stuff I want in the core is the
basics--extended-precision numbers and basic math. (If we get
transcendentals as a bonus, well... swell) I think I'd as soon just
flesh out what we have now and be done with it.

Dan Sugalski

unread,
Jun 14, 2004, 3:54:05 PM6/14/04
to Alex Gough, toe...@toetsch.at, perl6-i...@perl.org
At 3:40 PM -0400 6/14/04, Dan Sugalski wrote:
>At 8:15 PM +0100 6/14/04, Alex Gough wrote:
>>#### [Sat, Jun 12, 2004 at 11:39:27AM +0200: toe...@toetsch.at]
>>>
>>> | Time for these as well. There's a partial implementation of them in
>>> | types/bignum.c. I think it's time to move that to src/ (and the
>>> | header file to .h) and get it integrated into parrot.
>>>
>>> I'm not really sure if types/bignum.c is what we want. There are AFAIK
>>> some other math packages around, which are maintained and more complete.
>>> GMP comes to my mind.
>>
>>That's not such a bad plan. There's still a lot to do before the
>>bignum stuff is entirely ready (in terms of functions for the
>>standard) (and I'm still too busy right now to get deeply into
>>anything).
>
>The only thing that worries me about GMP is the license. It's LGPL,
>so we might be able to, but it's tough to tell for sure, and the
>explanatory text doesn't help at all.

But on second reading it the license makes this untenable. If we did
use the GMP library and shipped it with parrot then we'd be obligated
to package the full GMP source code with every binary distribution,
so... no joy there.

Leopold Toetsch

unread,
Jun 19, 2004, 5:52:52 AM6/19/04
to Dan Sugalski, perl6-i...@perl.org
Dan Sugalski <d...@sidhe.org> wrote:
> Time for these as well. There's a partial implementation of them in
> types/bignum.c. I think it's time to move that to src/ (and the
> header file to .h) and get it integrated into parrot.

Anyone working on that? Who volunteers?

leo

Alin Iacob

unread,
Jun 20, 2004, 8:23:57 AM6/20/04
to l...@toetsch.at, perl6-i...@perl.org
Leopold Toetsch a trimis aceste cuvinte prin eter:

>
> Anyone working on that? Who volunteers?
>
> leo

I'll take a whack at it after I'm done with my exams if
noone beats me to it.

--
Alin Iacob Dezordinea nu patrunde
ali...@fx.ro in noi
noi ordonam particulele.

Leopold Toetsch

unread,
Jun 21, 2004, 2:36:39 AM6/21/04
to al...@cpan.org, perl6-i...@perl.org
Alin Iacob <al...@cpan.org> wrote:
> Leopold Toetsch a trimis aceste cuvinte prin eter:
> >
> > Anyone working on that? Who volunteers?
> >
> > leo

> I'll take a whack at it after I'm done with my exams if
> noone beats me to it.

Good. I should probably have mentioned that bignums should be usable
tomorrow :) OSCON with pie throwing contest is coming ...

leo

Alin Iacob

unread,
Jun 21, 2004, 6:06:18 AM6/21/04
to l...@toetsch.at, perl6-i...@perl.org
Leopold Toetsch a trimis aceste cuvinte prin eter:
> Alin Iacob <al...@cpan.org> wrote:
>
>>I'll take a whack at it after I'm done with my exams if
>>noone beats me to it.
>
>
> Good. I should probably have mentioned that bignums should be usable
> tomorrow :) OSCON with pie throwing contest is coming ...
>
> leo
>

Then somebody should beat me to it unless Dan really, really
likes pies ;)

Then somebody should beat me to it unless Dan really, really
likes pies ;)

--
Alin Iacob - ali...@fx.ro
Beneficium accipere, libertatem est vendere.

Dan Sugalski

unread,
Jun 21, 2004, 8:58:07 AM6/21/04
to Alin Iacob, l...@toetsch.at, perl6-i...@perl.org
On Mon, 21 Jun 2004, Alin Iacob wrote:

> Leopold Toetsch a trimis aceste cuvinte prin eter:

> > Alin Iacob <al...@cpan.org> wrote:
> >
> >>I'll take a whack at it after I'm done with my exams if
> >>noone beats me to it.
> >
> >
> > Good. I should probably have mentioned that bignums should be usable
> > tomorrow :) OSCON with pie throwing contest is coming ...
> >
> > leo
> >
>
> Then somebody should beat me to it unless Dan really, really
> likes pies ;)

Mmmm, pie! But, like so many other things, best served rather than thrown.
:)

> Leopold Toetsch a trimis aceste cuvinte prin eter:
> > Alin Iacob <al...@cpan.org> wrote:
> >
> >>Leopold Toetsch a trimis aceste cuvinte prin eter:
> >>
> >>>Anyone working on that? Who volunteers?
> >>>
> >>>leo
> >
> >
> >>I'll take a whack at it after I'm done with my exams if
> >>noone beats me to it.
> >
> >
> > Good. I should probably have mentioned that bignums should be usable
> > tomorrow :) OSCON with pie throwing contest is coming ...
> >
> > leo
> >
>
> Then somebody should beat me to it unless Dan really, really
> likes pies ;)
>
> --
> Alin Iacob - ali...@fx.ro
> Beneficium accipere, libertatem est vendere.
>

Dan

--------------------------------------"it's like this"-------------------

Leopold Toetsch

unread,
Jun 26, 2004, 8:18:40 AM6/26/04
to Dan Sugalski, perl6-i...@perl.org
Dan Sugalski wrote:
> Time for these as well. There's a partial implementation of them in
> types/bignum.c. I think it's time to move that to src/ (and the header
> file to .h) and get it integrated into parrot.

There is now a BigNum PMC in CVS. It uses libgmp if present currently.
Other implementations are welcome.

leo


0 new messages