[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: arithmetic issues

This page is part of the web mail archives of SRFI 77 from before July 7th, 2015. The new archives for SRFI 77 contain all messages, not just those from before July 7th, 2015.



Marcin 'Qrczak' Kowalczyk <qrczak@xxxxxxxxxx> writes:

> 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.

I claim that this inconvenience is hardly worth affecting the
standard, as modular arithmetic in terms of bignums is very easy to
implement.  (Certainly easier than the reverse.)  In fact, the
reference implementation provides just such an implementation---just
drop it in, if you don't want to do it yourself.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla