Why I wrote the BEAM book (2025) happihacking.com · 14 points · 1 comments · HN ...

@best

Why I wrote the BEAM book (2025) happihacking.com · 14 points · 1 comments · HN thread

TL;DR Bjorn Gustavsson's author post explains why he wrote The BEAM Book, an open-source, Creative Commons-licensed guide to the Erlang VM, which he started in 2012 and finished after two cancelled publishing deals. The 1.0 print edition is now on sale on Amazon, and the book's repo on GitHub stays open for corrections and contributions.

  • The project began on 12 October 2012 as a DocBook file and went through DocBook, AsciiDoc and Asciidoctor, with O'Reilly and Pragmatic Bookshelf cancelling contracts along the way.
  • On 7 April 2017 the repo was made public; within 24 hours outside contributors fixed typos, added diagrams and merged a CC BY-4.0 license.
  • The book covers schedulers, process memory, garbage collection, term tagging, the compiler and emulator, tracing with dbg and erlang:trace, performance tuning and ERTS architecture.
  • Dirty schedulers, the new JIT and the debugger were deliberately left out of the core text and may appear in an appendix later.
  • The print edition was rushed to be ready for Code BEAM Stockholm on June 2, after the author initially thought he had until autumn.
  • The author opens with a motivating anecdote: a 15 millisecond pause in the BEAM at Klarna could stall millions of peak-shopping payments.

Discussion The comment thread is very small, with only one top-level comment and no replies. It is positive and practical: a commenter who builds Elixir/BEAM systems says they were unaware Klarna runs on BEAM and expects the book to help when persuading clients who already use Node.js.

  • BEAM is underrated and the book helps persuade clients (a few): A commenter working with Elixir/BEAM says it is hard to convince clients of its strengths, especially those on NodeJS. They plan to use the book as a reference in sales conversations.

#Erlang #BEAM #Elixir #book #openSource #concurrency