Elixir in Elixir
summary
Shows that Elixir implements most of itself — a 78% in Elixir measurement using GitHub linguist — and demonstrates the concrete mechanics: macros run at compile time, quote/unquote produce and inject ASTs, literals that quote to themselves, and how to implement an if macro by emitting a case. Covers tools and tactics: Macro.expand, Macro.to_string, mex for full expansion, Code.eval_quoted, Macro.prewalk, tradeoffs like code bloat, hygiene, and when to prefer plain functions over macros.
AI-written summary · about
chapters (12)
- 0:00Start
- 1:30BASICS + STDLIB
- 2:16NUMBERS? MEH
- 4:10CODE GENERATION
- 4:55Big Nerd Ranch
- 6:55METAPROGRAMMING
- 7:25WORKING ON DATA
- 8:15THE PROGRAM IS DATA
- 10:17ABSTRACT SYNTAX TREE
- 27:04WRITE FUNCTIONS
- 30:16REDUCE BOILERPLATE
- 30:28LANGUAGE EXTENSION
related talks
39mElixir: Power of Erlang, Joy of Ruby
32mElixir for the rubyist
42mIntroduction to Elixir for Rubyists
44mA Completely Unbiased Showcase of Elixir
40mTechniques for Metaprogramming in Erlang
43mRuby, Clojure, Elixir comparative study
34mRubyists, have a sip of Elixir!
23mElixir: Happy Developers and Scaleable Backends
