Idea · Oct 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.

What it would do

The HN essay 'Your C is not standard C' and its thread (signed shifts, char signedness, GCC extensions, FENV_ACCESS) make a point most students never hear: code that works on their laptop is often not C, it is GCC-on-x86-64. Strictly C turns this into an assignment check. Students submit code; a Flask backend builds it in containers with gcc and clang at -std=c99, c11 and c23 with -pedantic-errors, runs it with UBSan and ASan, and also cross-runs it under QEMU on a big-endian and a 32-bit target with signed and unsigned char. Differences in output or warnings are grouped into findings such as 'relies on char being signed' or 'left shift of negative value', each linked to the relevant standard clause and a short, human-written explanation. The instructor view aggregates findings across a section so a lecture can start with 'here are the 5 non-portable habits this class has', and an optional Claude pass rewrites each finding as a question for the student instead of a fix.

Key features

  • Build matrix across gcc/clang, C99/C11/C23, -pedantic-errors, x86-64, 32-bit ARM and big-endian MIPS via QEMU
  • UBSan/ASan runs with diffed outputs across targets to catch behavior that only changes elsewhere
  • Curated finding catalog that maps compiler and sanitizer messages to standard clauses and plain-language explanations
  • Section-level dashboard of the most common non-portable habits
  • Socratic mode that turns each finding into a question rather than a patch

More in Systems & Hardware

23:59:60

An interactive timekeeping lab for systems and databases courses that plots UTC, TAI, GPS time, and UT1 together, then runs real leap-second and continuous-UTC scenarios against JavaScript, Python, and Postgres time code so students see exactly where each one breaks.

BuiltSystems & HardwareProduct for a businessOct 17, 2026

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 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.

Systems & HardwareClass assignmentLargeOct 13, 2026

In-Band

A browser lab that simulates a 1970s telephone trunk with DTMF, MF and 2600 Hz supervision tones, so students can seize a trunk with a blue box and then see that the same flaw (control mixed with data) is behind SQL injection and prompt injection.

Systems & HardwareTeaching toolMediumOct 13, 2026

All 39 ideas in Systems & Hardware →