Raymond Toy (2014-07-30T05:45:19.000Z)
On Jul 29, 2014 5:47 AM, "alawatthe" <alawatthe at googlemail.com> wrote:
>
> Clear rules would also help in discussions like this one:
> https://code.google.com/p/v8/issues/detail?id=3006
>
> Background:
> V8 implemented a new version of sin and cos, which is faster, but does
not have the precision many user want.
> One of the comments (#8) said about precision:
>
> - The ECMA script specification clearly states that Math.sin/cos are
implementation-dependent approximations. There is no guarantees required
regarding precision.
>
> I think, this feels a little bit odd, because where do we draw the line
between performance and precision?
> So, again clear rules (even if they are not as strict as in Java), would
help a lot.

Yes. There are no requirements, but the spirit of the spec is clearly to be
accurate or at least no worse than fdlibm.

Carried to the extreme, this lack of requirements allows implementations to
be conforming even if all functions returned 0 everywhere. Fortunately, no
one does that.

>
> All the best
> alex aka alawatthe
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140729/a3a56fca/attachment.html>
domenic at domenicdenicola.com (2014-08-07T15:57:55.282Z)
Yes. There are no requirements, but the spirit of the spec is clearly to be
accurate or at least no worse than fdlibm.

Carried to the extreme, this lack of requirements allows implementations to
be conforming even if all functions returned 0 everywhere. Fortunately, no
one does that.