~/talk

Metaprogramming in Rust

TalkinFrenchat Sunny Tech 2025 · 2025-06-26..06-27· [rust, compilers-and-language-design]
links:none on file
slides:none on file

Explains using Rust procedural macros to embed a parser-combinator language directly in Rust rather than using an external DSL; covers how procedural macros work and how they were applied to simplify writing parser combinators in Rust.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10What is metaprogramming
  3. 6:01Metaprogramming approaches
  4. 6:21Macros in Rust intro
  5. 7:43List comprehensions
  6. 16:23Formalizing comprehensions
  7. 18:48Declarative macros
  8. 21:40For comprehension with macros
  9. 26:14Recursive macro impl
  10. 30:56Procedural macros deep dive
  11. 33:02AST parsing and manipulation
  12. 37:40Parser for comprehensions
  13. 40:13Token stream generation
  14. 42:19Assembling macro pipeline
  15. 43:23Compile-time code execution
  16. 44:04Practical DSL example
  17. 46:09Bootstrapping parsers
  18. 47:59Choosing macro approaches
  19. 48:42Conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.