Submission timeline
2007–2026One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.
First comments on top threads
HN comment orderGood to see this interesting and very fundamental topic getting attention, and looking forward to the next post, where hopefully the algorithm's cleverness will be explored. >It does this by being greedy, that is trying to consume as many lines that are the same before making a change (therefore avoiding the “wrong end” problem), and also by preferring deletions over insertions when given a choice, so that deletions appear first. Not really. The algorithm guarantees to find an alignment/diff/edit script…
There's also patience diff[1], which does a better job in some situations[2] (you might not normally see these inferior diffs because the diffs are massaged after the LCS algorithm). [1]: http://alfedenzo.livejournal.com/170301.html [2]: http://bramcohen.livejournal.com/73318.html
By the way, git also comes with other diff algorithms which may give cleaner diffs than the default one https://gist.github.com/roryokane/6f9061d3a60c1ba41237 Those alternative algorithms can be requested with command line flags like "git diff --histogram" or "git diff --patience". The default algorithm can also be changed via the git config file.
The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.
- Breakout years
- 3
- Total points
- 419
- Total comments
- 53
100+ points or 50+ comments
reference only — not used in Hall rules or ranking
reference only — not used in Hall rules or ranking
Every submission
| Date | Title as submitted | By | Points | Comments |
|---|---|---|---|---|
| 2017-02-23 | The Myers diff algorithm: part 1First breakout | arunc | 148 | 15 |
| 2020-05-30 | The Myers diff algorithm that is used in Git (2017) | dgudkov | 122 | 15 |
| 2024-03-13 | The Myers diff algorithm: part 1Best thread · Latest 20+ point return | frankjr | 148 | 23 |
| 2026-05-14 | The Myers Diff Algorithm | chirau | 1 | 0 |
