Welcome to the main channel on the development of MoarVM, a virtual machine for NQP and Rakudo (moarvm.org). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
MasterDuke do we support any systems that don't have 128 bit integers? 16:09
nine Huh....I didn't know 128 bit integers were a thing 16:16
I think at least with msvc you're out of luck 16:18
MasterDuke hm. i was looking at www.pcg-random.org/using-pcg-c.html and just saw this "The 64-bit scheme is only supported on platforms that support 128-bit integers (e.g., using GCC or Clang as the compiler on a 64-bit system)." 16:27
oh, but github.com/imneme/pcg-c#128-bit-math seems to suggest there's a way to get 64-bit output by combining two 32-bit generators 16:29
MasterDuke nqp: my int $r; my int $i := 0; my int $s := nqp::time; $r := nqp::rand_i while $i++ < 100_000_000; say(nqp::div_n(nqp::time - $s, 1000000000e0)); say($r) 21:23
camelia 0.518222349
-940366421805941772
MasterDuke interesting. locally that's ~0.58s but drops to ~0.48s when i switch in xoshiro256++ instead of tinymt64 21:25