Day 315 — The data layer, closed book

Thursday, 17 June 2027 · Week 45 of 52 · Production · Catch-up day · 35 min

Light day. Week 45 is engineering rather than finance, and the recall that matters is the decision rules rather than the syntax.

What you should be able to do tonight

  • State when a computation belongs in SQL, in polars, in numpy and in a compiled loop.
  • Give the cumulative speedup of your pipeline and which change contributed most.

Tasks 35 min

20 min Finish anything outstanding from days 309 to 314. The benchmark harness is the piece to have committed, because week 47’s scheduled pipeline has to run inside a time budget.

15 min Closed book: the four-way decision rule for where a computation belongs, the two mechanisms Parquet uses to read less, and the cumulative speedup with its largest contributor.

Drill interview thread

Spaced repetition, not cramming. Every drill in the year is collected on the drills page.

Timed mixed set, sixth sitting: five problems in fifteen minutes. Score and plot.

A SQL problem at the harder end: from a positions table with daily snapshots per symbol, write a query that finds, for each symbol, the longest consecutive run of days it was held. Gaps and islands is the pattern; write it with window functions.

Research presentation, sixth sitting: five minutes, the full version, timed. Record it. This is the first time you should be at full length and it will be too long.

Resources

Deliverable

The closed-book week 45 page, the gaps-and-islands query working against your own data, and a recorded five-minute research presentation.

Checkpoint

Where does a computation belong: SQL, polars, numpy or a compiled loop? Give the rule and one example of each.

Prepare for tomorrow

Ten minutes tonight so Day 316, Friday, 18 June 2027 starts clean. This is what the evening email sends you.

Install a C++ compiler and confirm it works on a hello world.

Read the first two chapters of LearnCpp: the compilation model and basic syntax.

Twenty minutes. You are learning to read C++, not to write it professionally.