~/talk

Procedural Macros vs Sliced Bread

Talkat Rust Latam 2019 · 2019-03-29..03-30· [rust]
slides:none on file

Claim: procedural macros are game changing; the talk shows what that means concretely. It cites the history (derive lands mid‑2016 and derive macros stabilized Oct 2018), shows real tooling — syn and quote crates plus proc_macro TokenStream — and demonstrates outcomes: Serde becomes wildly popular, structopt and no_panic get implemented, macro output must preserve spans so compiler diagnostics stay useful, and hygiene remains an open problem.

AI-written summary · about

  1. 0:00Intro
  2. 0:31Rise of Procedural Macros
  3. 3:05Rise of Sliced Bread
  4. 4:41The proc-macro crate type
  5. 5:02println! (...)
  6. 7:58TokenStream?
  7. 8:47Token Tree? enun Token Tree Group (Group) Ident (Ident)
  8. 11:04Modularized Macros
  9. 14:44Parsing with syn
  10. 16:11Expanding with quote
  11. 17:36Interpolation in quote
  12. 18:55Working with Span
  13. 20:46Hygiene
  14. 22:49Diagnostics API
  15. 23:36Debugging Macros
  16. 26:01Procedural Macro Gallery
  17. 28:06Questions?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.