~/talk

How to avoid safety hazards when using closures in Scala

Talkat ScalaCon 2022 · 2022-10-04..10-07· [scala, concurrency]
slides:none on file

A Scala 3 library called spores3 implements closures with explicit, typed environments, using macros for compile-time capture checking and type-class based portable serialization (serializes a builder id plus environment, not code). It enforces that captured vars aren’t referenced, statically requires serializers or a thread-safe type-class for the environment, supports micro-pickle integration, runs on JVM and Scala.js today, and exists as a pre-release (0.1.0) so the design and checks are implemented and usable now.

AI-written summary · about

  1. 0:00Introduction
  2. 2:42What is a closure
  3. 8:02Safety hazards with closures
  4. 16:55Remedies for closure issues
  5. 20:09Introducing spores 3
  6. 37:16Serialization in spores 3
  7. 38:20Implementation details
  8. 44:40Current status and plans
  9. 45:43Summary and advice
  10. 47:06Q&A session
~/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.