[#107430] [Ruby master Feature#18566] Merge `io-wait` gem into core IO — "byroot (Jean Boussier)" <noreply@...>
Issue #18566 has been reported by byroot (Jean Boussier).
22 messages
2022/02/02
[ruby-core:107560] [Ruby master Feature#18463] Random number generation with xoshiro
From:
"bbrklm (Benson Muite)" <noreply@...>
Date:
2022-02-11 15:26:44 UTC
List:
ruby-core #107560
Issue #18463 has been updated by bbrklm (Benson Muite). A work in progress Gem can be found at https://gitlab.com/bkmgit/xoshiro256plusplus The default in https://github.com/ruby/ruby/blob/master/random.c is to use uint32_t type in C. Will uint64_t also be supported when it is available? It is also possible to just use xoshiro128++ which generates uint32_t type, which has portability and maintenance advantage, but also a speed disadvantage. ---------------------------------------- Feature #18463: Random number generation with xoshiro https://bugs.ruby-lang.org/issues/18463#change-96473 * Author: bbrklm (Benson Muite) * Status: Open * Priority: Normal ---------------------------------------- Xoshiro https://prng.di.unimi.it/ random number generation is typically faster than Mersenne Twister currently used in Ruby in https://github.com/ruby/ruby/blob/master/random.c It would be good to allow use of xoshiro either as an option or as default. Xoshiro is the default for Fortran https://gcc.gnu.org/onlinedocs/gfortran/RANDOM_005fNUMBER.html and Julia https://github.com/JuliaLang/julia/tree/master/stdlib/Random/src Happy to implement this. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>