News for hackers. Stuff that matters.
Re:Are Go maps sensitive to data races? by alkonaut on Monday December 07, 2015 @06:43AM (#10688813)
This is a library thing, not a language thing. And it's a performance tradeoff: they could have shipped with a concurrent map only, that is 1/10 as fast as the current one, but never causes a data race. However everyone that isn't doing anything concurrently would be paying for it. Not very clever. I trust the class library designers thought this through. They reached the same conclusion as pretty much every other library designer in every other language. For the same reasons.
Re:Are Go maps sensitive to data races? by titzer on Monday December 07, 2015 @06:53AM (#10688846)
Data races are not the same thing as non-atomic accesses.
Re:Are Go maps sensitive to data races? by alkonaut on Monday December 07, 2015 @07:01AM (#10688877)
Sorry, I interpreted the statement as being about concurrency in maps, not about atomicity.