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

*To*: srfi-77@xxxxxxxxxxxxxxxxx*Subject*: Re: arithmetic issues*From*: Marcin 'Qrczak' Kowalczyk <qrczak@xxxxxxxxxx>*Date*: Mon, 24 Oct 2005 02:53:20 +0200*Delivered-to*: srfi-77@xxxxxxxxxxxxxxxxx*In-reply-to*: <871x2bkfj7.fsf@xxxxxxxxxxxxxxxxx> (Thomas Bushnell's message of "Sun, 23 Oct 2005 15:57:32 -0700")*Mail-followup-to*: srfi-77@xxxxxxxxxxxxxxxxx*References*: <20051021145326.816C11B77BB@xxxxxxxxxxxxxxxxxxxxx> <20051021155906.GC16464@NYCMJCOWA2> <Pine.LNX.4.58.0510210910130.18969@xxxxxxxxxxxxxx> <20051022011713.1F22A1B77BB@xxxxxxxxxxxxxxxxxxxxx> <87vezqmjkq.fsf@xxxxxxxxxxxxxxxxx> <20051022232548.5A2971B77BB@xxxxxxxxxxxxxxxxxxxxx> <873bmtxdnm.fsf@xxxxxxxxxxxxxxxxx> <20051023181854.4E7DD1B77BB@xxxxxxxxxxxxxxxxxxxxx> <871x2cowe8.fsf@xxxxxxxxxxxxxxxxx> <20051023195403.A50AF1B77BB@xxxxxxxxxxxxxxxxxxxxx> <435BEC21.60509@xxxxxxxxxxxx> <20051023205012.BFD241B77BB@xxxxxxxxxxxxxxxxxxxxx> <87zmoz27dg.fsf@xxxxxxxxxxxxx> <87hdb7kgmk.fsf@xxxxxxxxxxxxxxxxx> <87k6g3zw34.fsf@xxxxxxxxxxxxx> <871x2bkfj7.fsf@xxxxxxxxxxxxxxxxx>*Sender*: Marcin 'Qrczak' Kowalczyk <qrczak@xxxxxxxxxx>*User-agent*: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Thomas Bushnell BSG <tb@xxxxxxxxxx> writes: > It is an explanation of why your appeal to tradition is ill-founded; > the tradition actually points the opposite way. There is no tradition in not providing a read syntax for "error objects". Aubrey Jaffer said: | I think that an implementation should be allowed to signal an | error under some conditions where an error object is encountered. | Mandating readable written representations for error objects | prevents an implementation from signaling such errors. There is no reason to signal an error when NaN is read. Having a universally agreed syntax for both printing and reading NaNs is good for portability. There are reasons to signal an error when it would be produced (IEEE specifies this in the form of an INVALID exception) and perhaps when it's used in arithmetic (IEEE provides signalling NaNs in addition to quiet NaNs, although most languages support only quiet NaNs), but not when it's read and by default not when it's printed. William Kahan has written in 1997 <http://www.cs.berkeley.edu/~wkahan/ieee754status/IEEE754.PDF> (emphasis mine): | Twenty years ago anarchy threatened floating-point arithmetic. | Over a dozen commercially significant arithmetics boasted diverse | wordsizes, precisions, rounding procedures and over/underflow | behaviors, and more were in the works. "Portable" software intended ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | to reconcile that numerical diversity had become unbearably costly ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | to develop. ^^^^^^^^^^ | | Thirteen years ago, when IEEE 754 became official, major | microprocessor manufacturers had already adopted it despite the | challenge it posed to implementors. With unprecedented altruism, | hardware designers had risen to its challenge in the belief that | they would ease and encourage a vast burgeoning of numerical | software. They did succeed to a considerable extent. Anyway, | rounding anomalies that preoccupied all of us in the 1970s afflict | only CRAY X-MPs--J90s now." [...] | NaNs were not invented out of whole cloth. Konrad Zuse tried similar | ideas in the late 1930s; Seymour Cray built "Indefinites" into the | CDC 6600 in 1963; then DEC put "Reserved Operands" into their PDP-11 | and VAX. But nobody used them because they trap when touched. NaNs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | do not trap (unless they are "Signaling" SNaNs, which exist mainly ^^^^^^^^^^^ | for political reasons and are rarely used); NaNs propagate through | most computations. Consequently they do get used. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | Perhaps NaNs are widely misunderstood because they are not needed | for mathematical analysis, whose sequencing is entirely logical; | they are needed only for computation, with temporal sequencing that | can be hard to revise, harder to reverse. NaNs must conform to ^^^^^^^^^^^^^^^^^^^^ | mathematically consistent rules that were deduced, not invented ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | arbitrarily, in 1977 during the design of the Intel 8087 that ^^^^^^^^^^^ | preceded IEEE 754. -- __("< Marcin Kowalczyk \__/ qrczak@xxxxxxxxxx ^^ http://qrnik.knm.org.pl/~qrczak/

**Follow-Ups**:**Re: arithmetic issues***From:*Thomas Bushnell BSG

**References**:**arithmetic issues***From:*Aubrey Jaffer

**Re: arithmetic issues***From:*John.Cowan

**Re: arithmetic issues***From:*bear

**Re: arithmetic issues***From:*Aubrey Jaffer

**Re: arithmetic issues***From:*Thomas Bushnell BSG

**Re: arithmetic issues***From:*Aubrey Jaffer

**Re: arithmetic issues***From:*Thomas Bushnell BSG

**Re: arithmetic issues***From:*Aubrey Jaffer

**Re: arithmetic issues***From:*Thomas Bushnell BSG

**Re: arithmetic issues***From:*Aubrey Jaffer

**Re: arithmetic issues***From:*Jens Axel Søgaard

**Re: arithmetic issues***From:*Aubrey Jaffer

**Re: arithmetic issues***From:*Marcin 'Qrczak' Kowalczyk

**Re: arithmetic issues***From:*Thomas Bushnell BSG

**Re: arithmetic issues***From:*Marcin 'Qrczak' Kowalczyk

**Re: arithmetic issues***From:*Thomas Bushnell BSG

- Prev by Date:
**Re: arithmetic issues** - Next by Date:
**Re: arithmetic issues** - Previous by thread:
**Re: arithmetic issues** - Next by thread:
**Re: arithmetic issues** - Index(es):