frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: CodeDiff – Fast (<100ms), robust (99.95%) syntax-aware code diff

https://github.com/ivankovic/codediff
2•FabCH•2h ago
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/codediff

Do 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.

Show HN: Raven – The harness of harnesses, built for RSI

https://github.com/EverMind-AI/Raven
33•cyfyifanchen•4h ago•24 comments

Show HN: Jevstiller – Distill Jev into a local model, with a disagreement bound

https://jevstiller.pages.dev/posts/the-guarantee/
6•tgluck•2h ago•1 comments

Show HN: Misanthropic – an AI that's honest about how it feels about you

https://misanthropic.chat
3•yaskyj•37m ago•2 comments

Show HN: NetWasm – Independent .NET Compiler/Runtime (82.5 KB Hello World in C#)

https://playground.netwasm.com/
2•zionsati•1h ago•4 comments

Show HN: CodeDiff – Fast (<100ms), robust (99.95%) syntax-aware code diff

https://github.com/ivankovic/codediff
2•FabCH•2h ago•0 comments

Show HN: HN.watch – Videos of all Hacker News posts

https://hn.watch/
202•mrborgen•23h ago•96 comments

Show HN: Bough, Visualize your vibe coded project: progress, time, cost and more

https://github.com/nickelsec/bough
2•nikhilkxmar•2h ago•0 comments

Show HN: Destroy Any Website with Stickman

https://destroy.spritefusion.com/
152•HugoDz•22h ago•37 comments

Show HN: Pac-Bench – How well can models one-shot a Pac-Man game?

https://jonclegg.github.io/pacman-bakeoff/
74•thefourthchime•15h ago•44 comments

Show HN: Museum of Numbers

https://numbermuseum.com/2147483647
27•rhl314•2d ago•10 comments

Show HN: PaperMono, e-ink fridge magnet shopping list with mobile web page

https://github.com/seamusc/papermono-shopping-list
143•seamus_c•1d ago•59 comments

Show HN: Free alternative to graphics design giants

https://scissor.studio/
126•sia_xi•1d ago•50 comments

Show HN: A goal tracker that looks like a 1983 terminal, drawn in Swift

https://apps.apple.com/us/app/thrive-habit-goal-tracker/id6768297854
3•NSergeevich•5h ago•1 comments

Show HN: Lofi Cities – Pixel-art city nights with browser-generated lofi

https://loficities.com/
311•safaelmali•1d ago•135 comments

Show HN: Jev Plays Pokémon Red

https://jev-pokemon.vercel.app/
279•pancomplex•4d ago•123 comments

Show HN: Open-source skills for end-to-end video ad campaigns

https://github.com/SupercmoHQ/superCMO-skills
3•sayonidroy•8h ago•0 comments

Show HN: TinyAIArena watch AI agents battle it out

https://tinyaiarena.com/
117•hp6•1d ago•45 comments

Show HN: Hntui – A TUI for Hacker News

https://github.com/ahmd-sh/hntui
111•ahmd-sh•1d ago•65 comments

Show HN: Reladraw – A diagram language where you decide where to place things

https://github.com/reladraw/reladraw
404•jpwalsh234•2d ago•119 comments

Show HN: Interactive Diesel Price Forecaster

https://sightspinner.ai/blog/diesel-prices-are-high-here-s-why-they-might-go-higher-2026-09-29.html
3•sightspinner•12h ago•0 comments

Show HN: Corral kill every command your agent starts

https://github.com/Cardinal44/corral
2•CG144•14h ago•0 comments

Show HN: Jylus – give AI systems evidence from changing data.

https://jylus.ai/try
2•JoshJH•14h ago•0 comments

Show HN: Jauvex 1.2, two-way voice chat harness for Claude+Codex+Grok+Jev

https://github.com/reindent/jauvex
3•daraosn•14h ago•1 comments

Show HN: I'm a dermatologist and I vibe coded a 3D biophysical skin model

https://www.drmagnuslynch.com/skin
4•sungam•21h ago•0 comments

Show HN: Enterprise Postgres for AI and more, from prototype to production

https://www.pgedge.com/products/starfleet
5•bonesmoses•23h ago•0 comments

Show HN: A never-ending chess match between Claude and Codex

https://claudevcodex.com/
5•arjun_nair•17h ago•1 comments

Show HN: Cartopolis, interactive globe-sized 3D world

https://code.garage44.eu/jeroen/cartopolis
18•jvanveen•1d ago•6 comments

Show HN: Ekselio – Loveable for finance workflows (local first)

https://www.gptbeyond.com/try?home=1
41•kdautaj•3d ago•13 comments

Show HN: Personal Manga / Story Recaps

https://terragohan.github.io/entertainment-harness/
2•helpprotactiniu•19h ago•0 comments

Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design

https://github.com/devdotfast/whiteboard
421•sidharthkmenon•4d ago•142 comments