4 ms·
I'd think a POSIX mutex--a standard API that I not only could implement anywhere, but which has already been implemented all over the place--is way more "cross
by saurik 11mo ago
I'd think a POSIX mutex--a standard API that I not only could implement anywhere, but which has already been implemented all over the place--is way more "cross platform" than use of atomics.
- woodruffw 11mo agoTo lift things up a level: I think a language’s abstractions have failed if we even need to have a conversation around what “cross platform” really means :-)
- deleted 11mo ago[deleted]
- jhatemyjob 11mo agoIf that's the bar, what language's abstractions haven't failed?
- ruined 11mo agowasm and lambda calculus
- deleted 11mo ago[deleted]
- wat10000 11mo agoIf you're targeting a vaguely modern C standard, atomics win by being part of the language. C11 has atomics and it's straightforward to use them to implement thread-safe reference counting.