Message from discussion
bignums in clisp
Received: by 10.180.73.134 with SMTP id l6mr3235707wiv.1.1349228880752;
Tue, 02 Oct 2012 18:48:00 -0700 (PDT)
Path: q11ni134131933wiw.1!nntp.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!216.40.29.110.MISMATCH!novia!news-out.readnews.com!transit3.readnews.com!panix!not-for-mail
From: Paul Wallich <p...@panix.com>
Newsgroups: comp.lang.lisp
Subject: Re: bignums in clisp
Date: Tue, 02 Oct 2012 21:48:00 -0400
Organization: Trivializers R Us
Lines: 33
Message-ID: <k4g5gg$ftb$1@reader1.panix.com>
References: <7c6cd833-2c5b-43a4-9825-7fd540ece54a@googlegroups.com> <87627jgmta.fsf@gnu.org> <k44gnl$o33$1@news.ox.ac.uk> <barmar-ABCFBE.16040128092012@news.eternal-september.org> <20120928140653.318@kylheku.com> <barmar-4DCE69.21544929092012@news.eternal-september.org> <k4ev7v$gp7$1@news.ox.ac.uk> <k4f0j3$r38$1@reader1.panix.com> <87obkkvr1e.fsf@kuiper.lan.informatimago.com>
NNTP-Posting-Host: localhost
Mime-Version: 1.0
X-Trace: reader1.panix.com 1349228880 16299 127.0.0.1 (3 Oct 2012 01:48:00 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Wed, 3 Oct 2012 01:48:00 +0000 (UTC)
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
In-Reply-To: <87obkkvr1e.fsf@kuiper.lan.informatimago.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
On 10/2/12 11:21 AM, Pascal J. Bourguignon wrote:
> Paul Wallich <p...@panix.com> writes:
>
>> On 10/2/12 10:54 AM, Ian Clifton wrote:
>>> Barry Margolin <bar...@alum.mit.edu> writes:
>>>
>>>> In article <20120928140653....@kylheku.com>,
>>>> Kaz Kylheku <k...@kylheku.com> wrote:
>>>>
>>>>> They are not "bigger", just more, err, "magnitudinous"!
>>>>>
>>>>> Bigger means, strictly, occupying more RAM. :)
>>>>
>>>> It obviously depends on the context. I'm pretty sure he meant it in the
>>>> normal, mathematical sense, in which 10 is bigger than 9.
>>>
>>> I suppose it would be possible—not perhaps sensible, but possible—to
>>> have a Lisp implementation whose bignum type had a length which could
>>> expand as necessary beyond integer to itself become a bignum of the same
>>> kind. Such a Lisp could represent any integer, I guess.
>>
>> Aren't you going to run out of memory long before then? Perhaps there
>> should be bignums with some kind of sparse-byte or runlength encoding.
>
> Of course. There are a finite number of integers whose lengths are
> smaller than the number of particules in the Universe. On the other
> hand, there are an infinite number of integers whose lengths are bigger
> than the number of particules in the Universe. Such a trivial truth
> doesn't seem to be known even by "educated" people. I despair of
> humanity.
I certainly despair of its sense of humor.