
← BEAM There, Done That21 aug · 55 min
Erlang on a Microcontroller: Davide Bettio & Paul Guyot on AtomVM
<p>In 1952, Marvin Minsky and Claude Shannon built a box with a single switch. When you flip it, the only thing it does is reach out and switch itself back off. Seventy years later, 5,000 of those boxes are sitting on desks worldwide — and the thing making them tick is Erlang, running on a chip smaller than a fingernail.</p><p>Davide Bettio built AtomVM, the virtual machine that makes this possible. Paul Guyot wrote the Erlang firmware, added SMP support as a weekend project, and shipped 5,000 units.</p><p>Topics include:</p><ul><li><p>what AtomVM is — a from-scratch BEAM-compatible VM for microcontrollers with a few hundred kilobytes of RAM and no OS</p></li><li><p>debugging a virtual machine with no stack traces: printf everywhere, blindfolded</p></li><li><p>the first production batch with a 5–10% return rate that turned out to be a mechanical problem — after Paul rewrote half the software looking for a bug that wasn't there</p></li><li><p>why the actor model, let it crash, and binary pattern matching are unusually well-suited to embedded devices</p></li><li><p>what AtomVM actually supports: GenServer, maps, JSON, Erlang distribution, and via the Popcorn project — Phoenix LiveView on a microcontroller</p></li><li><p>Paul's SMP implementation as a "mixed blessing" — added for purely selfish engineering reasons, then forced the whole team to rewrite their drivers</p></li><li><p>where AtomVM differs from the BEAM: no dirty schedulers, no hot code unloading, a simpler scheduler model that mostly doesn't surface at the API level</p></li></ul><p>Recorded June 24, 2026.</p><p><br><strong>Resources mentioned:</strong></p><ul><li><p>atomvm.net</p></li><li><p>GitHub: atomvm/AtomVM</p></li><li><p>Popcorn project — Phoenix LiveView on AtomVM</p></li><li><p>Discord: AtomVM community</p></li></ul>