~/talk

Implementing the Scala 2.13 collections

Talkat Scala Days Lausanne 2019 · 2019-06-11..06-13· [scala]
links:none on file
slides:none on file

Scala 2.13 ships a redesigned collections library that focuses on concrete implementation details: add IterableOnce for single-pass types and primitive-friendly stepper support to avoid boxing; implement an immutable, index-backed sequence (MySeq) and factories so map/filter return MySeq after refining the CC/C type parameters; wrap a Java HashMap to make MyMap and build an intMap plus a collision‑proof hash map using an ordering constraint; everything compiles and runs, with strict‑optimized traits and builders improving allocation and runtime performance.

AI-written summary · about

  1. 0:00Introduction
  2. 0:57IterableOnce
  3. 4:22ArraySeek
  4. 5:15Collection Types
  5. 8:24Index Seek
  6. 22:00Inheritance
  7. 28:33Nonstandard collections
  8. 33:09Collision proof maps
  9. 33:52Strict optimized maps
  10. 35:59Info Factory
  11. 37:01Built from and Factory
  12. 40:46Inmap Factory
  13. 42:02Summary
  14. 43:00QA
~/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.