Hacker News with Generative AI: Macros

C++ template macroprogramming versus Lisp macros (simondobson.org)
Rhombus: A New Spin on Macros (2023) (dl.acm.org)
Rhombus is a new language that is built on Racket. It offers the same kind of language extensibility as Racket itself, but using traditional (infix) notation.
State-shift: Macros for implementing Type-State-Pattern on your structs and met (github.com/ozgunozerk)
Elixir Macros Demystified: defmacro and require (arrowsmithlabs.com)
This is Part 3 in a series on Elixir macros - what they are, why they matter, and how to use them.
Lisp implemented in Rust macros (github.com/RyanWelly)
A simple, lexically scoped Lisp interpreter that operates fully in Rust's declarative macros. The lisp! macro expands to the lisp value computed by the code, and then stringifies it.
Braiding the spaghetti: implementing defer in the preprocessor (wordpress.com)
EĿlipsis now implements a simple form of this feature by mixing some specific preprocessor extensions (in particular counters) with the usual macro magic.
Recursive Macros with C++20 __VA_OPT__ (scs.stanford.edu)
Unhygienic and referentially opaque macros with Scheme syntax-rules [pdf] (2013) (okmij.org)
Lisp Macros to Enable C Syntax in Common Lisp (github.com/y2q-actionman)
Rhombus: Macro-extensible language with conventional syntax built on Racket (racket-lang.org)
C Macro Reflection in Zig (jstrieb.github.io)
Tail Recursion for Macros in C (wordpress.com)
101 Macros for Lotus 1-2-3 and Unnamed Lotus Symphony Adventure Game (2022) (smoliva.blog)
Automata via Macros (2006) (cs.brown.edu)
Using Rust Macros for Custom VTables (pocoo.org)