Re: arithmetic issues William D Clinger (19 Jan 2006 05:58 UTC)
Re: arithmetic issues Paul Schlie (20 Jan 2006 21:43 UTC)
Re: arithmetic issues Marcin 'Qrczak' Kowalczyk (20 Jan 2006 23:19 UTC)
Re: arithmetic issues Paul Schlie (21 Jan 2006 02:17 UTC)
Re: arithmetic issues Marcin 'Qrczak' Kowalczyk (21 Jan 2006 10:51 UTC)
Re: arithmetic issues Paul Schlie (21 Jan 2006 15:56 UTC)
Re: arithmetic issues Michael Sperber (21 Jan 2006 10:52 UTC)

Re: arithmetic issues Marcin 'Qrczak' Kowalczyk 20 Jan 2006 23:19 UTC

Paul Schlie <xxxxxx@comcast.net> writes:

> - Personally, it seems reasonable to require that a base implementation
>   support only finite modular integers with a precision sufficient to
>   represent the larger of:
>
>   (integer-range) => <max-positive-representable-integer> or
>
>   (length <list-of-all-allocatable-elements-for-a-given-implementation>)

My toy Scheme interpreter is hosted by a language with native bignums,
and no distinction between fixnums and bignums in the public API.
A requirement to support modular arithmetic would be inconvenient here.

(Actually the hosting language does have some unsafe fixnum-only
operations, but I'm not sure whether to treat them as public.)

--
   __("<         Marcin Kowalczyk
   \__/       xxxxxx@knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/