Code Generation: The Lisp Way
summary
Compares Lisp-style macros to C++ template metaprogramming and argues macros are true compile-time code generation, demonstrates list-based backquote/unquote interpolation that avoids repeated evaluation in a C-like min macro, warns macros are not hygienic and uses gensym-style symbol manipulation to prevent name collisions, and describes an Open Networks library that grew from heavy preprocessor use, showing the approach is practical though hygiene needs careful handling.
AI-written summary · about
related talks
01h 48m“Meta: Thoughts on generative C++”
01h 06m“C++ Metaprogramming: Journey from simple to insanity and back"
12mMulti-Stage Programming with Generative and Analytical Macros
40mLet's Build a Hygienic Macro Expander
43mAdventures in Metaprogramming: Macros versus Shapeless
42mAvoiding macros with inline and derived
41mEverything you want to know about C/C++ pre-processor but couldn't ask
01h 00mModern Template Metaprogramming: A Compendium, Part I
