Flame bait: D vs. Rust vs. Go Benchmarking

bearophile bearophileHUGS at lycos.com
Wed Jul 24 04:32:15 PDT 2013


John Colvin:

> There should be a note in std.random docs warning that it's 
> slower but better than the c stdlib version.

Compiling with LDC2 I have found Xorshift about as fast as C rand 
:-)

So I suggested to make Xorshift the default one, but people 
rightly answered the standard one should be the safe (this means 
good) generator. On the other hand a note in the Phobos docs is a 
good idea.

Bye,
bearophile


More information about the Digitalmars-d mailing list