~/talk

Functional Object-oriented Imperative Scala

Talkat Scala Italy 2019 · 2019-09-20..09-21· [scala]
slides:none on file

Argues Scala deliberately fuses functional, object-oriented and imperative styles so APIs remain pure from the outside while implementations use mutation for performance and clarity. Uses real Scala.js Linker code: refactors a naive O(n^2) list loop into map or a ListBuilder, a reachability analyzer implemented as computeAnalysis (~500 lines) that uses shared mutable fields, an emitter that stores incremental caches in instance state, pluggable backends (Closure, NodeJS, user extensions), and a withGlobals monad proved (~50 lines of comments) to track globals.

AI-written summary · about

  1. 0:00Introduction and talk overview
  2. 1:05Scala’s three paradigms fusion
  3. 3:35Imperative to functional refactor
  4. 6:28Builders for performance
  5. 9:25Local mutable state in methods
  6. 16:35Mutable state across methods
  7. 21:36Instance-level mutable state
  8. 28:07Encapsulation with mutable internals
  9. 31:02Scala’s unique paradigm power
  10. 33:12Open class hierarchies
  11. 37:32Monads for code composition
  12. 40:47Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.