~/talk

Immutable APIs and mutable internals: a Scala design case study

Talkat Scale By The Bay 2018 · 2018-11-15..11-17· [software-architecture, scala]
slides:none on file

Builds a parser combinator library in Scala with an immutable API but a hidden mutable backend that keeps a pointer into an immutable input string, uses a sealed trait and protected mutable methods so mutability is bounded, and implements combinators and a JSON parser via a lawful parser type class. Benchmarks show dramatic speedups (roughly 7–10× in the demo) with tests asserting lawfulness and correctness, so the approach works.

AI-written summary · about

  1. 0:00Motivation for the talk
  2. 2:10Parser design fundamentals
  3. 5:57Core algebraic concepts
  4. 10:05Immutable implementation
  5. 12:59Performance challenges
  6. 15:40Principled mutation strategy
  7. 18:05Optimized parsing techniques
  8. 21:28Results and conclusion
~/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.