News for hackers. Stuff that matters.
Re:Thread Safety Analysis in Clang by stymaar on Wednesday March 29, 2017 @06:09AM (#13984731)
For the record, Go has no static thread safety guaranty. It's easy to write a data-race in Go (and it occurs frequently). Fortunately the go compiler has a tool that help detecting data-races[1]. The only two languages I know that offer data-race-free multi-threading are Pony[2] and Rust.

Additionally, Go isn't really a C++ competitor: you'll probably never see Google Chrome using Go instead of C++. Go is a good language for back-end micro-services and cli tools, not for building performance-sensitive native desktop applications.

[1]: https://golang.org/doc/articles/race_detector.html

[2]: http://www.ponylang.org/

Re:Thread Safety Analysis in Clang by masklinn on Wednesday March 29, 2017 @06:48AM (#13984894)
> The only two languages I know that offer data-race-free multi-threading are Pony[2] and Rust.

I believe Erlang also does for the most part, though some of its built-in constructs are racey (the process registry if you query it, shared ETS tables, and dirty Mnesia operations).

Re:Thread Safety Analysis in Clang by hellofunk on Wednesday March 29, 2017 @06:35AM (#13984840)
Correct, the point of my post is that Go does not have these guarantees even though it is one of the few (only?) languages based on a methodology that actually has a proven theorem for statically guaranteeing thread safety; yes, that was never implemented in Go despite that all the other aspects of the methodology were. Which I just find interesting.
Re:Thread Safety Analysis in Clang by stymaar on Wednesday March 29, 2017 @08:27AM (#13985355)
> The only two languages I know that offer data-race-free multi-threading are Pony[2] and Rust.

I should have added «with shared memory», otherwise any language that purely rely on message-passing is also free from data-races (even JavaScript is), but it lacks this important feature.