~/talk

5 Things you Need to Know About Scala Compilation

links:none on file
slides:none on file

Build time often comes from tooling not the compiler: SBT adds roughly 15% overhead via dependency resolution, generators, formatting and caching. Scala’s single-threaded compiler makes type checking expensive — roughly 30% of time — and macros/implicits can explode code; a simple decoder example generates 4 duplicate decoders and grows ASDs from ~8KB to ~31KB. Measured compile speeds vary by style: ~1200 LOC/s (Java-like) vs 480 LOC/s (functional). A parallel compiler called Hydra exists to address this.

AI-written summary · about

  1. 0:00Introduction
  2. 1:19Quiz
  3. 1:38Build Time
  4. 4:24Lessons
  5. 5:00Type classes and macro derivation
  6. 8:09Whitebox macros
  7. 9:51Type checking
  8. 10:49Macro expansions
  9. 11:19Explosion factor
  10. 13:19Singlethreaded
  11. 14:48Compilation times
  12. 17:34Test your knowledge
  13. 25:59What is implicit
  14. 28:13When was Scala first announced
  15. 30:21Summary
~/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.