Re: [Rd] Compile R to WebAssembly / Emscripten?

2019-02-26 Thread Gabriel Becker
As I recall, the major blocker is that R links against a number of other things (notably BLAS, pcre, etc) so while technically possible (?) I suppose, the universe of things you'd have to compile over and then get working is much larger than just the R internals. I think most people who consider t

[Rd] Possible Update to R-internals Manual

2019-02-26 Thread brodie gaslam via R-devel
According the R-ints the only current uses of the `truelength` meta datum is for environment hash tables.  Jim Hester just made me aware that R3.4.0 introduces a new use case: growable vectors. I attach a patch to the R-ints manual that reflects this change.  The wording is obviously just a sug

Re: [Rd] bias issue in sample() (PR 17494)

2019-02-26 Thread Tierney, Luke
On Tue, 26 Feb 2019, Kirill Müller wrote: > Ralf > > > I don't doubt this is expected with the current implementation, I doubt the > implementation is desirable. Suggesting to turn this to > > pbirthday(1e6, classes = 2^53) > ## [1] 5.550956e-05 That isn't a small number given simulation sizes p

Re: [Rd] bias issue in sample() (PR 17494)

2019-02-26 Thread Kirill Müller
Ralf I don't doubt this is expected with the current implementation, I doubt the implementation is desirable. Suggesting to turn this to pbirthday(1e6, classes = 2^53) ## [1] 5.550956e-05 (which is still non-zero, but much less likely to cause confusion.) Best regards Kirill On 26.02.19

Re: [Rd] bias issue in sample() (PR 17494)

2019-02-26 Thread Ralf Stubner
Kirill, I think some level of collision is actually expected! R uses a 32bit MT that can produce 2^32 different doubles. The probability for a collision within a million draws is > pbirthday(1e6, classes = 2^32) [1] 1 Greetings Ralf On 26.02.19 07:06, Kirill Müller wrote: > Gabe > > > As men