~/talk

Inline Traits for Specialization

Talkat Scala Days 2026 · 2026-10-12..10-13· [compilers-and-language-design, scala]
name:James You
links:none on file
slides:none on file

Implementation of compile-time specialization for Scala 3 uses inline traits plus context-bound specialized type parameters to inline trait methods into subclasses and eliminate allocations and virtual dispatch, yielding zero-cost trait-based abstractions when combined with the Specialized type class. A working experimental compiler patch exists in Scala 3.10 experimental implementation from a Google Summer of Code project and aims for preview in Scala 3.12. The scheme generates per-primitive specialized subtraits and preserves boxed erased signatures for library compatibility.

AI-written summary · about

~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.