News for hackers. Stuff that matters.
Re:Go Things I Love: Channels and Goroutines by masklinn on Tuesday January 07, 2020 @11:10AM (#21981281)
> The rationale seems to be that users of the data types can choose whether to make them safe for concurrent use or not depending on the use case.

Also that for most uses a concurrent map is way overkill, and a thread-safe one is both costly and basically useless (hence the Java folks not keeping the thread-safety when migrating from Hashtable to HashMap).

On the other hand they're kinda shit given how awful non-builtin data structures are in Go, and how easy it is to "leak" maps between goroutines.

Re:Go Things I Love: Channels and Goroutines by vips7L on Wednesday January 08, 2020 @07:56AM (#21990954)
Hashtable used a giant mutex when locking.. it was just slow. Especially when compared to ConcurrentHashMap.