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•53m 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: Publish a Notion database as a Next.js blog

https://github.com/loriscomba97/publish-from-notion
1•loriscomba•23s ago•0 comments

The new Firefox design is here

https://blog.mozilla.org/en/firefox/new-firefox-design-is-here/
1•timpera•25s ago•0 comments

Show HN: Gangway, self-hosted artifacts and apps from folders, PRs, and agents

https://github.com/charlesabarnes/gangway
1•charlesabarnes•1m ago•0 comments

AI is like a wall hack for real life

https://www.geekbeard.dev/p/ai-as-a-cheat
1•drunx•2m ago•0 comments

-2000 Lines of Code (2004)

https://folklore.org/Negative_2000_Lines_Of_Code.html?sort=date
1•ciconia•2m ago•0 comments

The „Nicolae Trump" Experiment: Testing the Limits of AI Information Streams

https://labnews.ai/the-nicolae-trump-experiment-how-a-publisher-is-testing-the-limits-of-ai-infor...
1•VladDanGeorgesc•3m ago•0 comments

MongoDB Launches Atlas Infinite and Atlas Agent Engine

https://www.mongodb.com/company/blog/product-release-announcements/intelligent-data-platform-for-...
1•salil999•3m ago•0 comments

Show HN: Paste – suggests which copied item you'll paste next, on your Mac

https://apps.apple.com/us/app/paste-limitless-clipboard/id967805235
1•ProtsenkoAlex•3m ago•0 comments

I built an assistant that listens instead of one that watches

https://athenaos.net/essays/why-athena-listens/
1•mirconeri•4m ago•0 comments

Strangers don't scare me. But raising kids who can't solve their problems does

https://devarajsouthworth.substack.com/p/strangers-dont-scare-me-but-raising
1•sylvainkalache•4m ago•0 comments

Nvidia Open Agent Safety Platform

https://developer.nvidia.com/blog/nvidia-open-agent-safety-platform-a-reference-for-continuous-in...
1•tosh•4m ago•0 comments

Building a Post-Quantum CA with Merkle Tree Certificates

https://blog.cloudflare.com/pq-ca-with-mtcs/
2•torutofu•5m ago•0 comments

Cities' Morphology

https://vis.csh.ac.at/cities-morphology/#/
1•user_7832•6m ago•1 comments

Show HN: NetWasm – New .NET Compiler/Runtime (82.5 KB Hello World WASM/WASI)

https://playground.netwasm.com/
2•zionsati•7m ago•0 comments

Cargo-Crap: Triaging Duplicates with TypeSafe

https://minikin.me/blog/cargo-crap-triage
1•koburan•7m ago•0 comments

US bans $1 Billion in Canadian imports, including alcohol, dairy and motorcycles

https://apnews.com/article/canada-us-trade-ban-tariffs-bdb4d9b946e98f84088c5c0f7f522588
1•ck2•7m ago•1 comments

Kling 4 prompts and video examples with original sources

https://github.com/kingvid-ai/awesome-kling-4-prompts
1•kevinhacker•9m ago•0 comments

CRDTs are not enough: From CRDTs to a local-first sync engine

https://loro.dev/blog/crdt-is-not-enough
1•czx111331•9m ago•0 comments

Jeb: Turn any OpenAI API into a decision model

https://github.com/chand1012/jeb/tree/main
1•chand1012•10m ago•0 comments

Motif Central

https://motif-central.org/
1•ibobev•11m ago•0 comments

Show HN: Pyunto – invite an AI agent and a robot into an encrypted diary

https://pyunto.com/
1•tomsonoda•12m ago•0 comments

Prototyping a Small Genetic Algorithms Library in Haskell

https://anekstein.com/posts/2019-11-15.html
1•ibobev•12m ago•0 comments

We are under attack (of a DDoS)

https://fastnetmon.com/2026/09/15/we-are-under-attack-of-a-ddos/
1•ibobev•12m ago•0 comments

Show HN: Whisker – Build native iOS, Android, web and desktop apps in Rust

https://github.com/whiskerrs/whisker
1•itometeam•13m ago•1 comments

AI Opinions: June 2026. Fable 5 Hands-On, Billing Split Countdown, OpenAI Banks

https://thoughts.jock.pl/p/ai-opinions-june-2026-fable-5-billing-split-openai-resets
1•joozio•13m ago•0 comments

Saved by the Bell star Dennis Haskins dies aged 75

https://www.rte.ie/entertainment/2026/0929/1593321-saved-by-the-bell-star-dennis-haskin-dies-aged...
2•austinallegro•14m ago•1 comments

"Tetanus [ ] This is going to be a rough ride and an unpleasant read"

https://captainboden.substack.com/p/tetanus
1•wilsonjholmes•14m ago•0 comments

Show HN: Games that test if you can beat randomness in the market.

https://hsights-1.onrender.com/
1•pankajti•15m ago•0 comments

I made DevGo to manage all projects and servers

1•joyahmed•15m ago•0 comments

Show HN: BriefMaster 3000, creative brief management for agencies, EU-hosted

https://www.briefmaster3000.com/
1•shipcraft•15m ago•0 comments