Hrvoje Niksic <hniksic(a)srce.hr> writes:
Simon Josefsson <jas(a)pdc.kth.se> writes:
> I wasn't thinking about adding a elisp type for bignums (I guess this
> is what you're refeering to?) but instead have the MP-routines use a
> internal representation (a vector containg bytes or something) and
> have a function like gmp-print for printing the numbers as a string.
>
> GMP works like this in C so this would be the most natural solution.
Yuck! This is *far* from natural for me, because bignums have a
tradition of being correctly implemented in various Lisps.
I agree, that's why I was so surprised this wasn't already
implemented.
We should either do it correctly, or not do it at all, as far as
I'm
concerned.
Since my lack of knowledge of XEmacs internals prevents me from doing
it properly, I just wanted bignums for doing some
authentication/encryption stuff. The `calc' package will be enough for
me until I want performance. In this case, a native bignum
implementation or a elisp-library that uses GMP is equally good for my
purposes.
/s