← Wed, Nov 11 digest

Why I wrote the BEAM book (2025)

read article ↗ hn thread ↗

A veteran engineer shares the ten-year, multi-cancellation journey of writing The BEAM Book, a definitive manual on Erlang and Elixir virtual machine internals.

summary is enough The post provides a neat personal retrospective on a long book-writing project, but technical readers interested in the VM should check the book itself.

summary

An engineer with a decade of experience at Klarna recounts the grueling path to publishing The BEAM Book, surviving two publisher cancellations before successfully open-sourcing and self-publishing the 1.0 version. The book addresses critical low-level BEAM VM mechanics such as schedulers, memory management, garbage collection, and performance tuning. It serves as a practical reference for developers operating high-scale Erlang and Elixir systems.

key points

  1. The book survived two major publisher cancellations before being open-sourced on GitHub and self-published.
  2. Core topics cover deep VM internals like process scheduling, memory heaps, garbage collection, and bytecode compilation.
  3. Community feedback and contributions transformed an isolated, struggling writing project into a collaborative living reference.

who should read it

Developers and systems architects working with Erlang, Elixir, or other BEAM-based technologies.

discussion warm

consensus

Commenters overwhelmingly praise the BEAM runtime and Elixir, emphasizing its production reliability, low operational costs, and capability for small teams to scale massively.

pushback

A minority mention that performance can be a bottleneck in specific microbenchmarks and that convincing clients to move away from mainstream stacks is difficult.

best comment by thibaut_barrere ↗

I use Elixir (BEAM-based), with LLMs daily, on a fast growing site (current pace is 5 billion HTTP queries per year on a single front node).

Elixir is well handled by LLMs at this point, and we keep the “easy to scale and maintain” aspect (operational characteristics of the runtime are very good).

I can safely say that total cost of ownership is excellent.

Provides concrete production scale data and insights on running Elixir alongside LLMs efficiently on a single node.

Generated by an LLM from the article and thread. Check the sources before relying on it.