~/talk

Pattern-matching on mutable values: danger!

Talkat ML 2024 · on Friday, 2024-09-06· [compilers-and-language-design]
links:none on file
links:none on file
links:none on file
slides:none on file

The OCaml pattern-matching compiler produces incorrect code in a corner case: matching on a value with mutable fields that are mutated during pattern-matching — via when-clauses, allocation callbacks, or a concurrent access race — can flip which branch executes. The authors trace the compiler’s matching strategy, measure the failure modes, and propose weakening optimization metadata so generated code remains correct for mutable data; the fix also covers lazy patterns and multicore races.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Speaker introduction
  3. 3:23Problem with pattern matching
  4. 12:00Unsafe pattern matching example
  5. 15:54Consequences and performance
  6. 20:07Q&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.