[scheme-reports-wg2] Reformulated numeric-tower ballot John Cowan (29 Apr 2014 03:49 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Jay Freeman (29 Apr 2014 06:51 UTC)
[scheme-reports-wg2] Re: [Scheme-reports] Reformulated numeric-tower ballot Taylan Ulrich Bayirli/Kammer (29 Apr 2014 07:55 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Jay Freeman (29 Apr 2014 08:37 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Peter Bex (29 Apr 2014 11:45 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Peter Bex (29 Apr 2014 13:18 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Peter Bex (29 Apr 2014 14:01 UTC)
[scheme-reports-wg2] Re: [Scheme-reports] Reformulated numeric-tower ballot Taylan Ulrich Bayirli/Kammer (29 Apr 2014 14:11 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Peter Bex (29 Apr 2014 14:25 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Alaric Snell-Pym (29 Apr 2014 22:13 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot John Cowan (29 Apr 2014 22:54 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Alaric Snell-Pym (30 Apr 2014 12:59 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot John Cowan (30 Apr 2014 16:38 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Peter Bex (01 May 2014 08:57 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Jussi Piitulainen (29 Apr 2014 13:58 UTC)
[scheme-reports-wg2] Re: [Scheme-reports] Reformulated numeric-tower ballot Taylan Ulrich Bayirli/Kammer (29 Apr 2014 16:14 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Devon Schudy (29 Apr 2014 15:38 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot John Cowan (29 Apr 2014 17:04 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Devon Schudy (01 May 2014 13:02 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Alaric Snell-Pym (01 May 2014 13:11 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Takashi Kato (29 Apr 2014 20:07 UTC)
Re: [Scheme-reports] Reformulated numeric-tower ballot Perry E. Metzger (29 Apr 2014 22:48 UTC)
Re: [scheme-reports-wg2] Reformulated numeric-tower ballot Taylan Ulrich Bayirli/Kammer (30 Apr 2014 07:44 UTC)

Re: [Scheme-reports] Reformulated numeric-tower ballot John Cowan 30 Apr 2014 16:33 UTC

Alaric Snell-Pym scripsit:

> To me that sounds like a definition of "fixnums overflow into flonums",
> which is something slightly different. A system might have fixnums that
> raise a condition rather than overflowing, without having a bignum system.

I agree that that's possible in principle, but in practice no system I
know of uses it: they either nonconformantly wrap (producing incorrect
fixnum results), or overflow to flonums, or overflow to bignums.
Conditions are raised only when the bignums get too big, which can also
be a matter of the format rather than the total storage.

> I'd argue that overflow-to-flonum is questionable (it produces incorrect
> results rather than no results, and lets you check for incorrectness
> with exact?, but I foresee lots of code not thinking to check for exact?
> and silently failing); it strikes me as useful to allow developers to
> have mental rules like "exact + exact = exact".

I agree, modulo physical devices can't represent arbitrarily large
integers.  But in order for "exact + exact = exact" to be as true as it
can be, we need bignums.

> I think that people who don't mind exacts overflowing to inexacts
> are probably people who wanted inexacts in the first place and just
> happened to get an exact when they typed "10".

That, or they want fairly predictable performance (on modern CPUs,
fixnums and flonums have about the same performance).

> bignums are an implementation issue; minimal ranges are a user issue,
> and what happens when those ranges are exceeded (errors or overflows to
> inexacts) :-)

What we are voting on is not bignums, but unbounded (modulo physical
constraints) exact integers.

--
John Cowan          http://www.ccil.org/~cowan        cowan@ccil.org
Do what you will / this Life's a Fiction
And is made up of / Contradiction.  --William Blake

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports