~/talk

Do Mutable Variables Have Reference Types?

Talkat ML 2022 · on Thursday, 2022-09-15· [compilers-and-language-design]
links:none on file
slides:none on file

Offshoring fails for mutable variables: naive translation that treats OCaml refs as C pointers either forces ad hoc restrictions (refs only for base types, limited occurrences) or doubles allocations. The paper gives offshoring the systematic fix: one translation maps every ref to a heap pointer (simple but allocates twice), a second translation maps mutable bindings to real C variables and nonmutables to pointers, preserves semantics, enables mutation tracking, and is formalized and mechanized; implementation into metal camel is planned.

AI-written summary · about

  1. 0:00Start
  2. 0:04Generating C
  3. 3:24Challenge
  4. 3:47Pointers and references
  5. 7:58C without mutable variables
  6. 12:06Formalities
~/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.