Techniques for Metaprogramming in Erlang
summary
Claims that generating Erlang is straightforward and practical get demonstrated with concrete code patterns and working tools: macros for compile‑time wrappers and assertions, parse transforms rewriting logger calls into optimized forms, and hand‑built syntax trees used to generate modules that are compiled and loaded (mochi_global style). Examples include Neotoma PEG/packrat‑parser (original and reworked generator), Lager and Erlydtl showing real rewrites, and Merle (OTP 18) simplifying AST construction, all showing produced code that compiles and runs.
AI-written summary · about
chapters (13)
- 0:00Intro
- 0:30About me
- 1:30Meta programming
- 3:18Why use meta programming
- 4:28Stages of meta programming
- 5:55Macros
- 8:12Using Macros
- 9:05Unit Assertions
- 11:59Summary
- 15:05Logger
- 22:02Parstrands
- 26:22NiggaToma
- 30:13MochiGlobal








