~/talk

Debugging Trait Errors as Logic Programs

Talkat HATRA 2023 · on Sunday, 2023-10-22· [rust]
links:none on file
slides:none on file

Rust trait resolution is literally a Prolog‑style logic program and compiler diagnostics collapse once constraints grow — real Bevy docs show 92 trait impls but only about six relevant entries for a given error. The project extracts proof trees from the trait solver and prototypes interactive visualizers: top‑down trees, directory stepping and inverted leaves‑first views that highlight the failing leaf (e.g. “timer does not implement system_param”). The demo surfaces unifications, branching points, and enormous inferred types but leaves scalability, heuristics and repair suggestions open.

AI-written summary · about

  1. 0:00Trait errors in Rust
  2. 1:24Traits as logic programs
  3. 5:58Rust diagnostics limits
  4. 8:51Tracing Bevy trait errors
  5. 12:49Debugger interface demo
  6. 16:24Visualizing complex types
  7. 17:27Q&A
~/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.