W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2012

Re: random numbers API

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 16 Nov 2012 08:39:55 -0800
Message-ID: <50A66C5B.9090505@mit.edu>
To: public-webapps@w3.org
On 11/16/12 7:13 AM, Florian Bösch wrote:
> 4) Alternative implementations in JS suffer even in the presence of
> sophisticated JITing VMs from the fact that mathematics is done in
> doubles (in the case of addition, subtraction, division and
> multiplication) and by converting double -> int -> double (in the case
> of bitshifts and modulo division). This makes it both harder to
> implement a reliable PRNG and it makes it slow.

I would be interested in some specific data here.  Do you have an 
example of a PRNG that is actually being slow?

Received on Friday, 16 November 2012 16:40:26 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:50 UTC