threading
threading copied to clipboard
Deprecate or remove atomics?
It seems that this module have fallen out of grace, with the respective RFC closed. Is it supposed to be deprecated in favor of std/atomics?
I think so, yes.
std/atomics
and threading/atomics
look very similar, but there are some differences:
-
std
has an annoyingmo
prefix for memory orderings -
std
also supports non-trivial types, which is a bit of a footgun (see also https://github.com/nim-lang/RFCs/issues/445), althoughAtomType
is a bit restrictive
So I like the threading
version a bit better. If std/atomics
should be preferred, it should at least be made stable.
So I like the threading version a bit better. If std/atomics should be preferred, it should at least be made stable.
Yeah, let us do that.