Counting Fast in Erlang with:counters and:atomics
60 points
2 days ago
| 1 comment
| andrealeopardi.com
| HN
dnautics
2 hours ago
[-]
hm, last i checked counters were fully implemented as atomics, it seems now theres another internal bif for "write concurrency", is this new or was it always like this and did i just miss it?
reply
filmor
1 hour ago
[-]
Already existed when it was first merged: https://github.com/erlang/otp/commit/fefb5d039e87ff7137e78b3...

Atomics were introduced a while before `counters`, maybe you remember a custom implementation on top of that?

reply