Nicheloom visits: 58,257 all-time · 7,637 in the last 7 days

The opportunity tracker for new startups.

Today: 1,008 launches · Niche of the day: specialized calculation tools · See what launched today →

CodeDiff

Fast (<100ms), robust (99.95%) syntax-aware code diff

Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.

Want to reach these readers? Sponsor an issue.

Hi folks!Because of AI, there is more code to review. I don't know about you, but I get annoyed when the default git diff doesn't match something "obvious". I built CodeDiff to help.It's a syntax-aware, careful implementation in Rust of all current research in code diffing. It parses 24 languages with TreeSitter and falls back to a modified Myers line diffing algorithm for any file it cannot parse. I wouldn't necessarily call it a novel algorithm, but it isn't a re-implementation of existing tools either.I tested it on the last 50 commits of all 7400-or-so repositories that are in the Gentoo package list. CodeDiff can diff 99.95% of those file pairs in 120s and 6GB of RAM on a rusty 11 year old Intel E3-1275 v5. The median speed is 7ms and 93% of files are diffed in under 100ms.I also did a bit of hand solving and have a test dataset of 1400 hand solved diffs. CodeDiff is perfect on 70% and near-perfect on 90% of them. But accuracy is actually a complex thing to measure, because if you are only after the AST diff, then it is perfect 89% of the time. Deciding what to paint however is not an objective thing so if you do try it out, check out the render options (press M) and make it fit your style.If you just want to see how it looks like: https://ivankovic.github.io/codediff/showcase/?case=python-r...If you want to install it: https://github.com/ivankovic/codediffDo feel free to file issues. It's v0.1.1 at the moment, but I have been using it for months as my git difftool and I plan to keep that stable. Using it as a library directly from Rust however, might change until v1.0. The final goal for v1.0 is p99 < 400ms and 99% perfect diff, including multi-file diff support in 30 languages.Credit where credit is due: There is a bunch of people researching diffs in the past 20 or so years. Without those papers, CodeDiff would be a lot harder to build. Especially without APTED and Myers algorithms.License: AGPL3.0, I kind of like copy-left. If your company prevents use of AGPL software tell them to throw a few bucks my way for my token usage and we can talk.AI disclosure: I use AI assisted coding. Claude and Mistral were used, heavily.

HN · launched Sep 29, 2026 · 7 upvotes (top 56%) · 0 views

Niche: code and binary analysis tools · 118 launches, 4 in the last 7 days ▼ -56% · Explore this niche →

Category and tags

  • Horizontal
  • Dev tools
  • Developer
  • Not AI
  • Hobby / open-source project

Visit website ↗ Source listing ↗

Could you build this?

No It is a high-performance, syntax-aware structural code differ written in Rust implementing cutting-edge tree-differing academic research across 24 languages under 100ms.

What it would actually take: A production implementation requires Rust, tree-sitter AST parsers for dozens of language grammars, and complex tree-diffing algorithms (such as GumTree or Chawathe's algorithm) heavily optimized for sub-100ms execution. The hard part is building resilient AST-matching heuristics that handle syntax errors, large diffs, and ambiguous token moves without quadratic memory or time explosion. Compiler engineering and advanced algorithmic research expertise are necessary.

Discussion

No comments on this launch.

Competitors

Other products that read as similar to this one : 622 launches clear the similarity bar, closest 8 shown.

Attention rank: #344 of 623 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).

Launched 335 days after the earliest competitor.

The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.