Counting Fast in Erlang with:counters and:atomics
https://andrealeopardi.com/posts/erlang-counters-and-atomics/
#HackerNews #Tech #Erlang
Two BEAM escape hatches for counting fast—shared, mutable, off-heap integer arrays. How :atomics and :counters work, what they guarantee, and when to reach for each.