C++ Logo

std-proposals

Advanced search

Re: Distributed random number ordering

From: DBJ <dbj_at_[hidden]>
Date: Thu, 13 May 2021 10:30:52 +0200
>
>
>
"...I see many reasons this should be on GitHub, and no reason this should
be in the Standard Library...."

Probably the best manager I ever have met had a saying: "Don't go
reasonable on me!". True that.

DBJ

Arthur said:

Even better: Get the source code of `stable_uniform_int_distribution` from
a third-party GitHub repository, where if you ever do discover that the
behavior differs across platforms, you can just file a bug and it's clearly
on them to fix it. If you rely on the Standard Library for this stuff, then
you have nowhere (or rather, five or six places) to file bug reports when
it doesn't work.

I see many reasons this should be on GitHub, and no reason this should be
in the Standard Library. (At least not for the computationally difficult
distributions with floating-point dependencies, like `normal_distribution`.
For `uniform_int_distribution` specifically, the Standard probably *should*
just mandate the algorithm, because it's relatively trivial.)

–Arthur
-- 
Std-Proposals mailing list
Std-Proposals_at_[hidden]
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals

Received on 2021-05-13 03:31:09