[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Integer division
- From: Andres Perera <andres.p@...>
- Date: Sun, 25 Nov 2012 08:35:16 -0430
On Sat, Nov 24, 2012 at 11:22 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>>> I have an idea.
>>> Strings can be treated as integer numbers of arbitrary length.
>>> So, a string of length 8 can be used instead of 64-bit integer.
>>> Let all integer and bitwise operations be implemented on strings.
>>> Strings will never overflow because of auto growing up.
>>> It will be cool to have very-long-integer arithmetic in Lua
>>> without external libraries.
>>>
>
>> implementing a BCD-like solution without optimizing per
>> arch is pretty much useless in the face of competition (gmp,
>> openssl bn, cobol itself). serious projects would end up
>> using external libraries anyway
>
> I haven't checked Python's source code but I would be very sup
your message got truncated here
(i apologize for spamming but the recipient list trims the author and
i'm too lazy to manually add them)
- References:
- Integer division, Dirk Laurie
- Re: Integer division, Petri Häkkinen
- Re: Integer division, Roberto Ierusalimschy
- Re: Integer division, Egor Skriptunoff
- Re: Integer division, Sven Olsen
- Re: Integer division, Roberto Ierusalimschy
- Re: Integer division, Jay Carlson
- Re: Integer division, Roberto Ierusalimschy
- Re: Integer division, Jay Carlson
- Re: Integer division, Roberto Ierusalimschy
- Re: Integer division, Egor Skriptunoff
- Re: Integer division, Andres Perera
- Re: Integer division, Dirk Laurie