Idea · Oct 3, 2026

Before the Sun Burns Out

Pick an algorithm and an input size, and watch its running time land on a log-scale timeline of the far future, from 'before your coffee cools' to 'after the last star dies'.

What it would do

Inspired by a Show HN 'Timeline of the Far Future' page, this weekend project turns growth rates into a gut feeling. The user chooses an algorithm (or a raw complexity class such as n log n, n^3, 2^n, n!), an input size n, and a machine speed (a laptop, a GPU, the whole world's compute). The app computes the operation count with big-number arithmetic and places a marker on a zoomable logarithmic timeline annotated with real events: a blink, a lecture, a semester, a human lifetime, recorded history, the Sun becoming a red giant, the last stars burning out. A slider on n animates the marker so students see 2^n leave the solar system somewhere between n=60 and n=90 while n^2 barely moves. A 'race' mode places several algorithms on the same timeline, and a share link encodes the scenario so instructors can drop a specific comparison into lecture slides.

Key features

  • Exact operation counts with BigInt and log-space math, so n! at n=200 still renders
  • Zoomable log timeline annotated with about 40 everyday and cosmic reference events
  • Machine presets from a 1 MHz 6502 to an estimate of all compute on Earth
  • Race mode that drops several algorithms on the same timeline at once
  • Animated n slider showing the moment each class crosses a human or cosmic boundary
  • Shareable URL encoding of every scenario for lecture slides

More in Algorithms & Data Structures

Build Your Own Spreadsheet Engine

A staged course project where students build a working spreadsheet: formula tokenizer and parser, dependency graph, topological recalculation, cycle detection, undo/redo and a React grid on top.

Algorithms & Data StructuresClass assignmentLargeOct 6, 2026

Proof Sketch Animator

Type a plain-English description of any algorithm and watch Claude generate a step-by-step animated visualization on a live canvas. No D3 expertise required - educators get custom algorithm animations in seconds for lectures or study guides.

Algorithms & Data StructuresSide projectSmallJul 13, 2026

Pixel Sort Canvas

Upload any image and watch sorting algorithms rearrange pixels by hue or brightness on the GPU in real-time, turning a CS1 concept into shareable generative art.

Algorithms & Data StructuresSide projectSmallJun 20, 2026

Algorithm Cinema

A React app where users paste pseudocode or pick a named algorithm and instantly get a step-by-step animated visualization with AI-generated narration. Each "frame" highlights the active element, annotates the current operation, and plays…

Algorithms & Data StructuresSide projectSmallMay 27, 2026

All 27 ideas in Algorithms & Data Structures →