<vaninwagen>
Candle it is unable to fetch the gist :(
<freza>
hmm, initializing xoroshiro state with the seed words directly doesn't protect against the pathological all-zeros state..? Perhaps such protection should be in place by default?
<freza>
Candle: not sure what gurantees you can expect from random streams based on different seeds. you can however split a single random stream into disjoint (in practice) subsequences using the .jump() or .long_jump() functions, perhaps that's closer to what you want? (note these don't seem to be offered by Pony stdlib, but you can find them in reference C code)
OtakuSenpai has joined #ponylang
<freza>
Candle: so I do see the behaviour you describe, I'm just not sure I'd expect it not to happen, esp. since subsequent seeds only seem to differ by one or two bits typically
OtakuSenpai has quit [Ping timeout: 252 seconds]
OtakuSenpai has joined #ponylang
<Candle>
The point is that the Genes class should be immutable; and to create one, I wanted to pass the RNG instance into it to encapsulate their creation. But you can't as the constructor has the option to store the Random ref instance; which would create an alias to a mutable structure in an immutable structure.
<Candle>
vaninwagen: works for me after restarting my browser.
<Candle>
In the end, I went for a factory method to create them; then there is *some* encapsulation.
<vaninwagen>
Github seems broken herr
<vaninwagen>
*here
ichimaru has quit [Quit: rirc v0.1]
<Candle>
It's probably an artifact of using the time to seed it; given that the 'seconds' element does not change (much)
<Candle>
vaninwagen: github had an issue or two earlier....
ExtraCrispy has quit [Remote host closed the connection]
ExtraCrispy has joined #ponylang
endformationage has joined #ponylang
Bombe has quit [Remote host closed the connection]
Bombe has joined #ponylang
endformationage has quit [Ping timeout: 264 seconds]
dx_ob has joined #ponylang
OtakuSenpai has quit [Ping timeout: 240 seconds]
dx_ob has quit [Quit: Leaving]
endformationage has joined #ponylang
nisanharamati has joined #ponylang
ExtraCrispy has quit [Remote host closed the connection]