~/talk

How to Avoid Safety Hazards when using Closures in Scala

Talkat Strange Loop 2022 · 2022-09-22..09-24· [microservices]
slides:none on file

Shows a concrete library called spores 3 that replaces ordinary closures with an explicit, typed environment and a compile-time check that rejects accidental captures. It uses type-class serialization to guarantee serializability at compile time, interoperates with uPickle, and runs on Scala JVM and Scala.js with Scala Native planned. The implementation is open source (Apache‑2) and demonstrably prevents the common runtime "task not serializable" and data‑race hazards by shifting checks to compile time.

AI-written summary · about

  1. 0:00Introduction
  2. 2:53Understanding closures
  3. 8:05Safety risks in closures
  4. 12:58Remedies and best practices
  5. 19:31Introducing Spores 3
  6. 32:21Serialization and summary
~/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.