BEAM There, Done That

Efficiency Gap: Why Elixir Outruns AI Coding Agents

10 snips
Mar 20, 2026
Jose Valim, creator of Elixir and active open-source maintainer, discusses why Elixir is well suited for AI coding agents. He talks about immutability and isolated state, centralized documentation like HexDocs, and agent-friendly tooling. He also covers designing for humans to help agents, Elixir 2.0 tradeoffs, and his work on types and a web-focused coding agent called Tidewave.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Immutability Makes Code Easier For AI

  • Functional programming and immutability make code clearer and reduce the state agents must load to understand behavior.
  • Jose Valim compares OO's hidden state to a gorilla holding a banana across the jungle, while Elixir's explicit state keeps components isolated and easier for agents to reason about.
INSIGHT

Single Source Docs Boost Agent Accuracy

  • Centralized, stable documentation on HexDocs.pm gives LLMs a single, authoritative source to learn Elixir's APIs and best practices.
  • Jose notes stability (Elixir 1.x, Phoenix) reduces model confusion caused by frequent breaking releases.
ANECDOTE

How OTP Fixed An Elixir Compatibility Break

  • OTP 28 broke serialization behavior Elixir relied on, but the OTP team added a compatibility feature in 28.1 to restore expected behavior.
  • Jose recounts relying on term-to-binary of refs and how the VM team quickly implemented a fix.
Get the Snipd Podcast app to discover more snips from this episode
Get the app