Urgent.News

What's breaking now, across thousands of outlets.

Tech

Show HN: OmniDiff – Opensource, super fast, content aware Git difftool, in Rust

I have been researching what the ultimate diff tool would look like, based on actual diffs in open source repositories. OmniDiff can diff: code (25 languages), config, images, PDFs, archives, cursors, fonts... It's fast. It can diff C++ files of tens of thousands of lines in under 100ms, on a 2023 ThinkPad T14s. It's open source. AGPLv3. It's based on real diffs. I looked at the 7400 repositories…

OmniDiff is an open-source Git difftool that aims to be the ultimate diff tool based on real-world examples from open source repositories. This tool is capable of diffing a wide range of content types, including code in 25 programming languages, configuration files, images, PDF documents, archives, cursors, and fonts.

OmniDiff stands out for its impressive speed and efficiency. For instance, it can handle C++ files with tens of thousands of lines in under 100 milliseconds, even on a 2023 ThinkPad T14s laptop. The tool is entirely open source and released under the AGPLv3 license, ensuring that the source code is freely available and can be modified and distributed by anyone.

The development of OmniDiff was heavily influenced by the analysis of 7,400 repositories listed in Gentoo packages. A subset of 2,000 diffs was sampled and manually solved by the developer to gain a comprehensive understanding of the requirements for such a tool. This extensive research and practical testing have resulted in a robust and reliable CI pipeline, which is a testament to the high quality of the codebase.

Although OmniDiff is currently in version 0.3.0, the developer has been using it as their primary Git difftool for several months, and it has proven to be a valuable tool in their workflow. The tool is still under development, and the developer welcomes any feedback or suggestions to further improve its functionality and performance.

For those interested in trying out OmniDiff or providing feedback, the project's source code and comments can be found at https://news.ycombinator.com/item?id=50325253.

Written by urgent.news from Hacker News Best's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at github.com →

More in Tech

Building a Work-Hours Calculator? Time Arithmetic Is the Trap

If you have ever built a timesheet tool, a shift planner, or a payroll helper, you know the feature looks trivial until you write the first test.

  • Store times as minutes since midnight to avoid floating-point rounding errors
  • Perform calculations using integers, subtracting breaks before rounding, only round at end
  • Use modular arithmetic for overnight shifts, wrap time difference around 24-hour day

Antigravity and Codex security: stopping secret leaks with hooks and sandboxes

Originally published at ReclaimLLM . How Google Antigravity and OpenAI Codex agents read, print, and send secrets; what hooks and sandboxes cover; and where vendor docs leave failure modes undocumented. Antigravity and Codex security: stopping secret leaks with hooks and sandboxes Executive summary Side-by-side of Antigravity and Codex…

  • Antigravity and Codex provide hooks for denying tool calls.
  • Sandboxes and approval boundaries restrict shell command capabilities.
  • Combine pre-tool hooks, network limits, and session capture for secret protection.

More from Sunday 1 November →