Idea · Oct 13, 2026

Build Your Own Resumable Download Manager

A staged networking assignment in which students build a GetRight-style download manager with HTTP range requests, parallel segments, validators and checksums, graded against a chaos server that drops connections, rotates URLs and silently changes files mid-download.

What it would do

A front-page post about making big Firefox downloads resumable reminded HN that this problem was solved by download managers decades ago and then forgotten, and the comments listed every way it can go wrong: one-time URLs that return 410 Gone, servers that ignore Range, files that change between attempts and produce silently corrupt splices. Milestones: (1) a single-connection HTTP/1.1 client over raw sockets that streams to a .part file and survives Ctrl-C; (2) resumption with Range, handling 206, 200 (Range ignored), 416 and 410 correctly; (3) safe resumption using If-Range with ETag or Last-Modified, plus a final SHA-256 check against a published digest; (4) N parallel segments with dynamic work stealing when one segment is slow; (5) a persistent job journal so downloads continue after a process crash. The instructor provides a Flask or Go 'chaos server' with scripted misbehaviors (mid-stream resets, throttling, wrong Content-Length, changed ETag, expiring signed URLs), and the autograder runs each student's client against every scenario and checks the final bytes, the number of bytes re-downloaded, and whether corruption was detected rather than written.

Key features

  • Raw-socket HTTP/1.1 client milestone before any library is allowed
  • Correct handling of 206, 200, 416, 410 and changed validators via If-Range
  • Parallel segmented download with work stealing and a progress UI
  • Crash-safe job journal and resume across process restarts
  • Chaos-server autograder that scores correctness, wasted bytes and corruption detection

More in Systems & Hardware

Build Your Own FORTRAN I Compiler

For Fortran's 70th birthday, students build a compiler for a FORTRAN I subset that targets a simulated IBM 704 with only three index registers, and reproduce the original team's bet that compiled code could rival hand-written assembly.

Systems & HardwareClass assignmentLargeOct 16, 2026

Build Your Own Persistent P2P Tunnel

A staged networking project where students build a paired, encrypted file-sharing tunnel that discovers its public address, punches through NATs, and falls back to a relay, then measure how often each path actually works.

Systems & HardwareClass assignmentLargeOct 15, 2026

Strictly C

A portability lab for systems courses that compiles each student's C code under several compilers, standards, and architectures, then explains every place where the program relied on undefined, unspecified, or implementation-defined behavior.

Systems & HardwareTeaching toolMediumOct 15, 2026

Build Your Own Static Recompiler

A staged compilers assignment in which students translate CHIP-8 (then a small 6502 subset) ROMs ahead of time into WebAssembly, using their own interpreter as the oracle that proves every recompiled program behaves identically.

Systems & HardwareClass assignmentLargeOct 12, 2026

All 39 ideas in Systems & Hardware →