~/talk

It quacks but it’s not a duck structural typing in Scala 3

Talkat ScalaCon 2022 · 2022-10-04..10-07· [scala, compilers-and-language-design]
links:none on file
slides:none on file

Explains how Scala 3 combines macros, literal singleton types and compiler rewrites to give compile-time checked structural access: the Selectable trait triggers rewrites for refinements so missing members fail at compile time, the older Dynamic trait does runtime proxies, and a demo Istra library wraps Apache Spark DataFrame API to let columns be accessed as refined members. Shows concrete signatures, macro rewrites, and a working demo that catches typos at compile time while keeping Spark performance.

AI-written summary · about

  1. 0:00Introduction and concepts
  2. 2:07Type system foundations
  3. 6:32Duck typing in Scala
  4. 10:48The Dynamic trait
  5. 16:45Advanced Dynamic usage
  6. 21:35Refined types
  7. 26:17The Selectable trait
  8. 32:49Spark API challenges
  9. 37:58Istra library and conclusion
~/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.