4 ms·
I think Go does make it relatively easy to write parallel code in comparison to most other frequently used languages. > Not sure any other language includes th
by burntsushi 9y ago
I think Go does make it relatively easy to write parallel code in comparison to most other frequently used languages.
> Not sure any other language includes that out of the box!
Rust's compiler does it by default, at compile time. ;-) Go's race detector is never wrong, but it may omit things. On the other hand, Rust's compiler is also neither wrong nor does it omit things, except under one circumstance: someone, somewhere, wrote `unsafe` code and committed a bug inside that block.
ThreadSanitizer is also a thing: https://clang.llvm.org/docs/ThreadSanitizer.html https://clang.llvm.org/docs/ThreadSanitizer.html