New interactive mini-book: Go concurrency distilled
It gives a brief overview of many concurrency topics in Go, along with examples you can run in the browser. There's also a PDF version.
The book is AI-free.
Probabilistic data structures: MinHash
MinHash estimates how similar two sets are. It summarizes each set in a short fixed-size signature (for example, 256 numbers). Comparing two signatures gives the approximate Jaccard similarity of the sets: |A∩B| / |A∪B|, the proportion of
Do not ignore this. Do not underestimate it. Yes, I was briefed on something. Yes, it's a big deal. No, I can't give you all the details yet*. But it is urgent to be extra cautious when working with large maps in Go.
* Actually, you know what? I can, and I will. What the hell — we only live once!
Coming in Go 1.28: Use maps.Grow to increase the capacity of an existing map
Go code can pre-size a new map with make(M, size), but an existing map grows one rehash at a time. If you merge many entries into a map, you pay for each intermediate growth, which is ~50% more