Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion bignums in clisp

Received: by 10.68.138.14 with SMTP id qm14mr5576937pbb.5.1349877269011;
        Wed, 10 Oct 2012 06:54:29 -0700 (PDT)
Path: t10ni23662056pbh.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-hub.siol.net!news.mi.ras.ru!goblin2!goblin.stu.neva.ru!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: "Pascal J. Bourguignon" <p...@informatimago.com>
Newsgroups: comp.lang.lisp
Subject: Re: bignums in clisp
Date: Tue, 02 Oct 2012 17:21:01 +0200
Organization: Informatimago
Lines: 33
Message-ID: <87obkkvr1e.fsf@kuiper.lan.informatimago.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>
Mime-Version: 1.0
X-Trace: individual.net 01SC0tkF9UjesaQe3LvNOwcD3vd8U1QZk6LNHH9LPTKGLk/Kwq
Cancel-Lock: sha1:NjdjZmM2NDljMGJjMzM5MGU4Y2Y2MDIwZGFhZGRkMjFmZDQ3ZTU2NA== sha1:6BJmUoIXbJhHo5fTVHSm829t23M=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA
      oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9
      033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac
      l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR
      mV+hO/VvFAAAAABJRU5ErkJggg==
X-Accept-Language: fr, es, en
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Bytes: 2958
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

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. 

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.