~/talk

Compiling like a boss!

Talkat Scala Days Copenhagen 2017 · 2017-05-30..06-02· [developer-experience]
links:none on file
slides:none on file

Long Scala compiles often come from heavy implicit resolution and macro expansion; adding explicit types or moving implicits from package objects into companion objects can cut times (one case: 40% faster after three-line change). Use scalac flags like -Xprint typer, -Xlog-implicits and -verbose to find costly phases (typer often dominates). Triplequote Hydra replaces scalac (binary-identical output), parallelizes per-source-file on multiple cores and yields about 2.2–2.5x speedups on real projects and up to 6x for some test suites.

AI-written summary · about

  1. 0:00Intro
  2. 2:15Scala releases & compilation speed
  3. 5:23Scala compiler options
  4. 9:16Analyse
  5. 11:28Investigate!
  6. 15:41Implicit resolution: Example
  7. 19:00Take away
  8. 20:52Macro bittersweet
  9. 24:13Distribute Scala compiler
  10. 26:29Amdahl's law -- without infinite cores?
  11. 27:47Hydra Today
  12. 29:54How well does it work?
  13. 31:22How about shapeless tests?
  14. 32:27Cold & Warm times
  15. 33:50Triplequote Hydra Compiler
  16. 35:15Insights
  17. 37:20Hydrate Build
  18. 37:56Giving back to the community
~/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.