~/talk

async fn from Editor to Executable

Talkat EuroRust 2023 · 2023-10-12..10-13· [rust]
slides:none on file

A concrete change removes GenFuture from async lowering and replaces generator plumbing with a cleaner identity future approach while keeping explicit resume types to dodge lifetime bugs, using nightly compiler flags to inspect HIR/MIR and type sizes. The work reduces profiler noise and yields small compile-time wins, exposes why mem::size_of of Futures explodes, and shows practical fixes (pin box / pin on stack) that cut an observed sevenfold growth to a reasonable factor in collaboration with the mocha crate author.

AI-written summary · about

  1. 0:00Async function compilation
  2. 3:18Async functions as compiler sugar
  3. 7:30Generator abstraction and stack traces
  4. 10:05Lifetime errors and identity future
  5. 13:00Recap of compiler transformations
  6. 15:47Futures as state machines
  7. 17:30Future size growth and workarounds
  8. 18:55Future optimizations
  9. 20:42Dangling stack traces on Linux/Mac
  10. 21:05Summary and closing
~/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.