Hacker GitHub

← All repos

sirgallo/cmapv2

View on GitHub ↗ ★ 56 Go

a concurrent hash array mapped trie implementation in go

4 mentions on Hacker News by 2 people: 1 story, 3 comments · first 2025-06-16 · latest 2025-06-19

Mentions per year 4 mentions · busiest year 2025 (4)
20082026
  1. …etc., and those operations' interactions with package unsafe. For example this code https://github.com/sirgallo/cmapv2/blob/6bcaa0253b1b0b261e8a... and in particular its use of this code https://github.com/sirgallo/cmapv2/blob/6bcaa0253b1b0…
  2. …len(n.children))) copy(nodeCopy.children, n.children) // pointers reused https://github.com/sirgallo/cmapv2/blob/main/node.go#L11-L17 Any later mutation (for example `setValue`) writes through those shared pointers, so readers and
  3. …Data races everywhere! Not safe, do not pass go, do not collect $200, absolutely do not use. [1] https://github.com/sirgallo/cmapv2/blob/280e3017ae4ba212f6f8...
  4. ▲ 41
    Cmapv2: A high performance, concurrent map
    story by sirgallo · 2025-06-16 · 27 comments