Read the LLVM source code for fun today. Some of those optimization passes are genuinely beautiful algorithms.