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:
-
stdhas an annoyingmoprefix for memory orderings -
stdalso supports non-trivial types, which is a bit of a footgun (see also https://github.com/nim-lang/RFCs/issues/445), althoughAtomTypeis 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.