ayarodionov

ayarodionov

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.

Showing Posts 1 to 4

MikaelFangel

MikaelFangel

If the books are written by AI to catch AI mistakes how do make sure that the AI writing the book does not make the same mistakes as it would when writing code? Do you have a human review/verification step?

I at least think it would be nice to know how AI was used in the process before committing myself to a book.

ayarodionov

ayarodionov OP

It took the examples from documentation. So go ahead and read the books.

MikaelFangel

MikaelFangel

Then what does it provide that the documentation not already does?

mudasobwa

mudasobwa

Creator of Cure

Well, you have both Erlang and Elixir and pattern matching falls into Elixir part. Basically, what you call Erlang should have been called OTP.

That said, I would strongly discourage newbies to read this book and anything else produced by AI on that matter.

— All posts loaded —

Where Next? Top

Trending in Other Resources Top

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews