~/talk

Impractical Macros

Talkat RustFest Zürich 2017 · 2017-09-30..10-01· [rust]
links:none on file
slides:none on file

A Rust macro actually interprets Brainfuck entirely at compile time, producing Rust code that evaluates to a struct literal and simple additions; it uses macro_rules 1.0! and token lists as integers (a homemade Zermelo numbers encoding), a zipper to represent tape and a pair of stacks to implement nested loops, plus a decimal-digit tokenizer. The macro requires a raised recursion_limit, runs the demo and prints the expected output, showing the implementation works despite being intentionally impractical.

AI-written summary · about

  1. 0:00Introduction
  2. 0:49Macros
  3. 2:37Brainfuck
  4. 4:28Implementation
  5. 7:47Looping
  6. 11:26Macro Code
  7. 15:05Demo
~/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.