~/talk

Saving Christmas Using Scala

Talkat Scala Days 2023 Madrid · 2023-09-12..09-14· [scala]
links:none on file
slides:none on file

Walks through concrete Advent of Code solutions using Scala: parses inputs with pattern matching, uses sliding windows to count increases, prefers Vector for constant-time index/append, and limits probe-velocity search to ~500 candidates to find the max height for day 17. Implements recursive state simulation for velocities, computes register value per cycle to render a 40x6 (240-pixel) display, converts SNAFU base-5 numbers back and forth, and shows these short programs produce correct, fast results while highlighting common pitfalls.

AI-written summary · about

  1. 0:00Introduction
  2. 2:25Advent of Code setup
  3. 4:12Day 1 depth puzzle
  4. 8:15Scala collections efficiency
  5. 10:01Day 17 trajectory modeling
  6. 18:41Day 3 compartment priorities
  7. 23:05Day 10 CPU simulation
  8. 29:17Day 10 CRT rendering
  9. 32:06Day 25 SNAFU conversion
  10. 36:29Advent of Code pitfalls
  11. 39:41Scala problem-solving benefits
  12. 40:48Encouragement and resources
~/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.