Get the latest tech news

Counting Fast in Erlang with:counters and:atomics


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.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Erlang

Erlang

Photo of Atomics

Atomics

Photo of counters

counters

Related news:

News photo

Dabbling in Erlang, part 2: A minimal introduction (2013)

News photo

The Isolation Trap: Erlang

News photo

Modelling Agent Systems with Erlang (2004) [pdf]