Re:Performance of Rust Language [pdf]
by dwattttt on Tuesday May 26, 2026 @07:32PM
(#48287437)
It's hard to be concrete without talking about something specific. At the limit, in stable Rust (for 8 years?), a proc_macro consumes and emits an arbitrary token stream at compile time; it's not ergonomic, but it's possible.
The equivalent in C++ is in the realm of arbitrary codegen.
The equivalent in C++ is in the realm of arbitrary codegen.