AI assistants now write a lot of our Elixir and Erlang, and they’re fluent at it. What they get wrong is quieter: code that compiles, reads well and passes the obvious test, then fails under load, on unexpected input, or in the release rather than in iex. Catching that takes knowing how the language and the runtime actually behave, which is the knowledge these two books try to teach.
Learning Erlang from Claude ( GitHub - ayarodionov/Learning-Erlang-from-Claude · GitHub ) covers the runtime itself: supervision trees, processes and mailboxes, binaries and memory, ETS, gen_server and gen_statem, distribution, releases, testing, observability, schedulers, and NIFs and ports. Everything in it applies to Elixir unchanged.
Learning Elixir from Claude ( GitHub - ayarodionov/Learning-Elixir-From-Claude · GitHub ) covers what Elixir adds on top: pattern matching, errors and control flow, Task and Agent, GenServer, supervision and Registry, Enum and Stream, strings and Unicode, protocols, macros, Mix and releases, ExUnit, types and telemetry.
Every chapter has the same five parts: why it exists, the building blocks, how it actually works, plausible but wrong, and a review checklist with sources. The “plausible but wrong” section is the heart of each chapter: code an assistant (or a tired human) writes readily, why it fails, and the fix.
About the books:
- Each has 15 chapters, ending with a review cheat sheet that collects every checklist, to run generated code past before accepting it.
- Both are free under the MIT license, in Markdown and as PDFs, per chapter or as one book.
- The Erlang book was checked against the OTP 29.1.1 documentation. The Elixir book was checked against the Elixir 1.20 documentation, and its examples were run on Elixir 1.14 and 1.18.
- They were written with Claude, which fits the subject, and checked against the official docs they cite. They can still contain mistakes: treat the linked docs as the authority, and please report errors as issues on GitHub.
I’d welcome corrections, and suggestions for “plausible but wrong” examples you’ve seen in real code.