5 Things you Need to Know About Scala Compilation
summary
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
chapters (15)
- 0:00Introduction
- 1:19Quiz
- 1:38Build Time
- 4:24Lessons
- 5:00Type classes and macro derivation
- 8:09Whitebox macros
- 9:51Type checking
- 10:49Macro expansions
- 11:19Explosion factor
- 13:19Singlethreaded
- 14:48Compilation times
- 17:34Test your knowledge
- 25:59What is implicit
- 28:13When was Scala first announced
- 30:21Summary








