Three Beautiful Quicksorts
What it is
Jon Bentley walks through three implementations of Hoare's Quicksort, from a dozen-line C function to a series of systematic code transformations that make the program ever simpler and more powerful. It is a Google Tech Talk on code elegance and program derivation.
Why Hacker News recommends it
HN commenters point to it as programming inspiration and as a source of Bentley's anecdotes about adding function by deleting code.
- 2 people recommended it
- 2 different months
- 0 strong recommendations
- first 2010, last 2023
What HN commenters said
“there's a (also very interesting) Google Tech Talk”
Bentley's Google Tech Talk on quicksort
erre, 2013-05 · Recommendation · in “A regular expression matcher By Rob Pike and Brian Kernighan (2007)”
“If you're looking for programming inspiration I love these videos”
Programming inspiration through beautiful quicksort implementations
tonym128, 2023-08 · Recommendation · in “Ask HN: Where do I find good code to read?”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: quicksort, code elegance, algorithms, program transformation, jon bentley
Also recommended by the same people
talkCppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step”CppCon · 9 HN recommenders · 2018–2026
explainerThe Fast Fourier Transform (FFT): Most Ingenious Algorithm Ever?Reducible · 7 HN recommenders · 2021–2026
talkModern Dictionaries by Raymond HettingerSF Python · 9 HN recommenders · 2016–2025
talkCppCon 2014: Chandler Carruth "Efficiency with Algorithms, Performance with Data Structures"CppCon · 7 HN recommenders · 2014–2024
talkCppCon 2017: Juan Pedro Bolivar Puente “Postmodern immutable data structures”CppCon · 5 HN recommenders · 2017–2025
talkSorting Algorithms: Speed Is Found In The Minds of People - Andrei Alexandrescu - CppCon 2019CppCon · 7 HN recommenders · 2019–2024
explainerThe Fastest Way to Board a Plane Feels Like the SlowestCGP Grey · 9 HN recommenders · 2020–2023
explainer30 Weird Chess Algorithms: Elo Worldsuckerpinch · 8 HN recommenders · 2019–2026