Re: ES6 accuracy of special functions

2014-07-30 Thread Raymond Toy
On Wed, Jul 30, 2014 at 4:31 AM, Katelyn Gadd wrote: > History has shown that native code developers concerned with > performance (game devs, graphics devs, etc) will happily use > approximations of these special functions when performance is > important, and will pick approximations with suitabl

Re: ES6 accuracy of special functions

2014-07-30 Thread Katelyn Gadd
History has shown that native code developers concerned with performance (game devs, graphics devs, etc) will happily use approximations of these special functions when performance is important, and will pick approximations with suitable accuracy. The inverse we have here, where the builtins have

Re: ES6 accuracy of special functions

2014-07-29 Thread Raymond Toy
On Jul 29, 2014 5:47 AM, "alawatthe" 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 th

Re: ES6 accuracy of special functions

2014-07-29 Thread Carl Shapiro
The exp function in V8 has a similar issue https://code.google.com/p/v8/issues/detail?id=3468 as do the recently added hyperbolics https://code.google.com/p/v8/issues/detail?id=3266 These issues are not limited to the V8 environment. As noted in the spreadsheet, other browsers exhibit similar

Re: ES6 accuracy of special functions

2014-07-29 Thread alawatthe
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 s

ES6 accuracy of special functions

2014-07-28 Thread Carl Shapiro
Dear es-discuss, In ECMA-262, section 15.8.2 , the note allows implementations to choose appropriate algorithms for the evaluation of the special functions and it is recommended but not required to use the algorithms from