Top all-time · #15378
Lup Peng
Personal blog · luppeng.wordpress.comprogrammingsystems
Lup Peng writes Technical Scratchpad, a personal blog at luppeng.wordpress.com about programming and systems. Since 2021, 5 different Hacker News readers have linked it 5 times, most often “When to Use Each of the Git Diff Algorithms”. It is still writing: the last post was on 2026-10-02, and you can follow it by feed.
Too few sampled comments (2) to say how often HN recommends it.?
Why HN links it
HN readers link this blog for its explanation of Git's diff algorithms and when to use each, such as patience and histogram. It comes up in threads about how Git diffs are computed.
Summarised by Claude from a sample of 2 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Blog by Lup Peng about Virtualization, Containerization, Databases, IaaS, PaaS, DevOps, and everything else he’s learning about.
Most-linked posts?
- When to Use Each of the Git Diff Algorithms5 people · 5 mentions · first linked 2021-10-26
What Hacker News says?
You'll probably enjoy the patience or histogram diff algorithms. See https://luppeng.wordpress.com/2020/10/10/when-to-use-each-of... for more. [diff] algorithm = "histogram" You can also teach git to always show e.g. function names in the diff hunk heading. For example, to always show previous Markdown heading: ~/.config/git/config [diff "markdown"] xfuncname = "^(#+\\s*.*)" ~/.config/git/attributes *.md diff=markdo…
Comment linking /2020/10/10/when-to-use-each-of-the-git-diff-algorithms/
on “Do we think of Git commits as diffs, snapshots, and/or histories?”Submitted When to Use Each of the Git Diff Algorithms as a story · 3 points
HN discussionThis made me think of a couple other interesting things: 1. you can change which algorithm is used in git diff as multiple are supported https://luppeng.wordpress.com/2020/10/10/when-to-use-each-of... 2. Google has an edit graph implementation in Go in the cmp package https://github.com/google/go-cmp/blob/master/cmp/internal/di...
Comment linking /2020/10/10/when-to-use-each-of-the-git-diff-algorithms/
on “Visualizing Diffs: The Myers difference algorithm (2020)”Submitted When to Use Each of the Git Diff Algorithms as a story · 3 points
HN discussionSubmitted When to Use Each of the Git Diff Algorithms as a story · 3 points
HN discussion