Quant SWE

You are aiming at low-latency or trading-systems roles where the machine, the OS and the network are part of the interview.

By the end: Explain where the nanoseconds go: caches, memory ordering, the kernel, the network and the tail of the latency distribution.

0 of 30 steps done≈ 5 h of lessons
Start: The Memory Hierarchy →

A lesson counts as done once you mark it Practicing or Mastered at the top of the lesson. A guided session counts once you tick it off on its own page. Labs are part of the order but are not counted.

  1. 1.Cost models beyond Big-O

    1. The Memory HierarchyIntermediate≈ 15 minHardware
    2. Memory Moves in Lines, Not VariablesIntermediate≈ 10 minHardware
    3. Spatial LocalityIntermediate≈ 10 minHardware
    4. Both Are O(n). One Is Far Slower.Intermediate≈ 10 minHardware
    5. Pointer Chasing: The Address You Do Not Have YetIntermediate≈ 10 minHardware
    6. Branch Prediction: Guessing Well Enough to MatterIntermediate≈ 10 minHardware
    7. Explain what Big-O leaves outGuided sessionReason about locality, allocation and dependency chains without inventing timings.
  2. 2.Shared state and ordering

    1. Shared Mutable StateFoundation≈ 15 minConcurrency
    2. Data Race Is Not Race ConditionFoundation≈ 20 minConcurrency
    3. Mutexes: What They Protect and What They Do NotFoundation≈ 20 minConcurrency
    4. Trace ownership and shared stateGuided sessionSay who owns an object, how long it lives and which threads may touch it.
    5. Atomics: What Is Actually IndivisibleAdvanced≈ 20 minConcurrency
    6. Compare-and-Swap and the Retry LoopAdvanced≈ 15 minConcurrency
    7. Happens-Before: The Edge That Makes a Write VisibleAdvanced≈ 15 minConcurrency
    8. What a Memory Model DefinesAdvanced≈ 20 minConcurrency
    9. False Sharing: Independent Data, Shared LineAdvanced≈ 15 minHardware
    10. Establish ordering before optimizing locksGuided sessionExplain publication and visibility with a happens-before relationship.
  3. 3.Through the kernel and the network

    1. System CallsFoundation≈ 15 minOS
    2. Context SwitchingFoundation≈ 10 minOS
    3. The Socket: A Descriptor With Two Kernel Buffers Behind ItAdvanced≈ 15 minOS
    4. UDP: Datagrams and the Contract You ChooseIntermediate≈ 10 minNetworking
    5. TCP: A Reliable Ordered Byte Stream over an Unreliable NetworkIntermediate≈ 10 minNetworking
    6. Follow a message through the systemGuided sessionLocate where scheduling, buffering and transport can add delay or change delivery behavior.
  4. 4.Measure it honestly

    1. Measure Before You OptimizeFoundation≈ 10 minPerformance
    2. Percentiles: Which One, and How Many Users Is That?Foundation≈ 10 minPerformance
    3. Tail Latency: Why p50 Being Fine Does Not HelpIntermediate≈ 10 minPerformance
    4. Queueing: Why Systems Get Slow Before They Get BrokenIntermediate≈ 15 minPerformance
    5. Coordinated Omission: When the Load Generator LiesAdvanced≈ 10 minPerformance
    6. Read a latency report criticallyGuided sessionDistinguish typical response time, tail behavior, throughput and offered load.
    7. Defend a diagnosis under follow-up questionsGuided sessionMove from observation to hypothesis, discriminating measurement and safe change.
    8. Quant engineering labLab / practice