~/talk

Taming the Flat Float Array Optimization: Tracking Separability in the Type System

Talkat OCaml Workshop 2025 · on Friday, 2025-10-17· [compilers-and-language-design]
links:none on file
links:none on file
slides:none on file

Extends the type/kind system to track three-valued separability axis so the compiler knows whether a type is definitely non-float, definitely float, or unknown. That lets previously-rejected layouts like unboxed existentials and an unboxed non-allocating option appear safely, avoids the per-access float-check and allocations for array get/set when the kind proves non-float, and enables array-specialized codegen instead of the extra branch/heap allocation path. Prototype is implemented in OxCaml kind system and compiles and validates the examples.

AI-written summary · about

  1. 0:00Introduction
  2. 1:02Array representations in OCaml
  3. 5:00Non-uniform float arrays
  4. 8:53Float array checks impact
  5. 13:51Solving runtime with type labels
  6. 17:08Compile-time separability
  7. 20:25Tracking separability
  8. 22:58Real-world Oxaml
  9. 24:23Q&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.