~/talk

Single Serving Values with Linear Types in Scala

Talkat Scale By the Bay 2021 · 2021-10-28..10-29· [scala]
links:none on file
slides:none on file

Linear types require values be used exactly once and the implementation here adds that check to Scala via a Scalafix lint called linear scala that marks types as a with Linear and counts dereferences at compile time. It turns runtime bugs—double-use of a stream, using a closed file handle, wrong monoid argument, or unnoticed shadowed variables—into compile errors, proving the idea on real examples; the prototype is a Scalafix rule and it works for these cases.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 0:46What are linear types
  3. 3:13Types progression and restrictions
  4. 8:38Linear types in Scala
  5. 15:46Linear Scala implementation
  6. 16:09First bug detection example
  7. 19:18Syntax improvements discussion
  8. 21:23Variable shadowing example
  9. 24:13For-comprehension shadowing
  10. 25:35Resource management bug
  11. 27:41Other linear type use cases
  12. 28:45Summary and benefits
  13. 30:10Q&A and resources
~/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.