~/talk

Zero Cost Abstractions Eliminating Runtime Overhead in Scala

Talkat LambdaConf 2018 · 2018-06-03..06-05· [machine-learning]
links:none on file
slides:none on file

Concrete claims and code: a Scala new-type macro generates zero-cost newtypes and subtypes (with a Scala 2.12 inline workaround for primitive boxing), a Coercible-style type class enables constant-time coercions (no per-element map), and an @cached macro caches polymorphic instances so implicit summons avoid allocations — demonstrated with an Either functor example. A derivable project implements zero-cost generic programming that benchmarks ~20% faster than Shapeless and performs nearly identically to hand-written code.

AI-written summary · about

  1. 0:00Start
  2. 0:12ZERO COST ABSTRACTIONS
  3. 2:41WARNING
  4. 8:46NEWTYPES: A MOTIVATION
  5. 15:39NEWTYPE: FIRMALIZING THE APPROACH
  6. 17:23NEWTYPE TYPE SEMANTICS
  7. 18:57NEWTYPE: EXTENSION METHODS
  8. 31:39GENERIC PROGRAMING SHAPELESS
  9. 41:27DERIVING NEW TYPE CLASS INSTANCES
~/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.