Sorting algorithms
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Very little directly, but it demonstrates Claude Artifacts and ChatGPT repo-cloning building a working interactive tool from a phone, a signal of how quickly AI coding tools now ship small apps.
Simon Willison used Claude, an AI assistant, to build a webpage that animates seven sorting algorithms, the standard methods computers use to arrange data. He added Python's Timsort by asking Claude to clone Python's own code repository from GitHub and read its files. When he asked GPT-5.4 Thinking to review the result, it found the implementation was a simplified, Timsort-inspired mergesort rather than the real algorithm. A shared transcript shows the full sequence of prompts.
Willison built an animated sorting-algorithm comparison tool on his phone using Claude Artifacts, covering bubble, selection, insertion, merge, quick, heap, and Timsort sorts, plus a 'run all' race mode. The workflow shows current AI assistants can clone a GitHub repository, here python/cpython, and read source files on request. A GPT-5.4 Thinking review flagged the Timsort implementation as a simplified approximation, a concrete quality risk of vibe-coding.
Willison prompted Claude Artifacts to build animated demos of bubble, selection, insertion, merge, quick, and heap sort, then asked it to add Timsort by cloning python/cpython from GitHub and consulting Objects/listsort.txt and Objects/listobject.c. GPT-5.4 Thinking reviewed the output and judged it a simplified, Timsort-inspired adaptive mergesort, not faithful Timsort. The tool includes a race mode running all seven algorithms with comparison and swap counts; Timsort, quicksort, and merge sort finished first, second, and third.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Claude Timsort python/cpython GPT-5.4 Thinking Simon Willison
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Node graph engine that runs big diffusion models on 4GB VRAM
ComfyUI's asynchronous weight streaming lets large diffusion models run on 4GB VRAM, meaning practitioners with modest GPUs no longer need expensive hardware for local image, video and audio generation.
OpenGame: turn your local coding agent into a full-stack game studio
Developers with a local coding agent can now scaffold full playable 3D games, art, music, testing, publishing, instead of only refactoring code, opening a path from hobby coding to shippable mini-games.
Let Claude Code or any agent tap, type, and read your real phone
Agents can now close the mobile testing gap by driving and reading a real phone themselves, with nothing installed on the device.
Taking Trainium3 to the Track: Generating Videos with LTX-2.5
Video generation on AWS Trainium3 can now rival Lightricks' paid API in speed, giving teams a non-CUDA inference option, though only after heavy custom patching.
Google’s patent for custom AI video feeds paints a bleak picture of entertainment’s future
A rejected Google patent reveals the company's plans to auto-generate personalized AI video content starring the user, signaling how streaming could evolve if pursued.