frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Sem – Semantic version control. Entity-level diffs on top of Git

https://github.com/ataraxy-labs/sem
83•pabs3•21h ago

Comments

perching_aix•17h ago
Anyone here using semantic diffing tools in their daily work? How good are they?

I use some for e.g. YAML [0] and JSON [1], and they're nice [2], but these are comparatively simple languages.

I'm particularly curious because just plain diffing ASTs is more on the "syntax-aware diffing" side rather than the "semantic diffing" side, yet most semantic tooling descriptions stop at saying they use ASTs.

ASTs are not necessarily in a minimal / optimized form by construction I believe, so I'm pretty sure you'll have situations where a "semantic" differ will report a difference, whereas a compiler would still compile the given translation unit to the same machine bytecode after all the optimization passes during later levels. Not even necessarily for target platform dependent reasons.

But maybe this doesn't matter much or would be more confusing than helpful?

[0] dyff: https://github.com/homeport/dyff

[1] jd: https://github.com/josephburnett/jd

[2] they allow me to ignore ordering differences within arrays (arrays are ordered in YAML and JSON as per the standard), which I found to be a surprisingly rare and useful capability; the programs that consume the YAMLs and JSONs I use these on are not sensitive to these ordering differences

henrebotha•13h ago
I guess I don't understand the difference between semantic and syntax-aware, but I've been trying out difftastic which is a bit of an odd beast but does a great job at narrowing down diffs to the actual meaningful parts.
gritzko•16h ago
Was "sem" named "graft" last week and "got" a week before that? Everyone is vibing so hard it is difficult to keep track of things. Also, idea theft gets to entirely new levels. Bot swarms promote 100% vibed stolen projects... what a moment in time we all enjoy.

Still, my two cents: Beagle the AST-level version control system, experimental

https://github.com/gritzko/librdx/tree/master/be#readme

It genuinely stores AST trees in (virtually any) key-value database (RocksDB at the moment). In fact, it is a versioned database for the code with very open format and complete freedom to build on top of it.

be is in fact, more of a format/protocol, like in the good old days (HTTP, SMTP, XML, JSON - remember those?)

7777777phil•16h ago
cool! Line-level diffs only made sense when humans wrote every line. When AI agents are committing hundreds of changes a session, you need to know which functions changed, not which lines..
irishcoffee•14h ago
Yeah, as long as the function gets called, it’ll work!

_sad panda face_

throwaway27448•14h ago
Line-level diffs didn't even make sense when humans wrote every line. It's just combining two different things—text-based files and formal languages—in ways that were never going to make sense. We've all wasted days of our lives fixing crappy diffs because nobody bothered to develop something that made sense for the files we were tracking outside of "everything is text who cares text is magic"

Still, some languages/heuristics handle this better than others.

alansaber•13h ago
Cool, knowledge graph matching on top of commits
adhamsalama•12h ago
I was just building a POC of something like this a couple of weeks ago. I'm glad someone else already implemented it with support for more languages.
mellosouls•11h ago
I like this but would think "Semantic" is pushing it a bit as it relies on function names and changes therein having a direct mapping to meaning with standard text processing.

In fact, I fully expected a use of LLM to derive those meaningful descriptions before I checked the repo.

Anyway I definitely see this as a useful thing to try out as a potential addition to the armoury, but as we go further along the route to AI-coding I expect the diffs to be abstracted even further (derived using AI), for use by both agentic and human contributors.

RaftPeople•10h ago
> I like this but would think "Semantic" is pushing it a bit

It would be nice to get to the feature level, meaning across files/classes/functions etc.

esafak•9h ago
Please could you add cargo binstall support?

Agent Safehouse – macOS-native sandboxing for local agents

https://agent-safehouse.dev/
393•atombender•7h ago•90 comments

Microscopes can see video on a laserdisc

https://www.youtube.com/watch?v=qZuR-772cks
293•zdw•1d ago•24 comments

PCB devboard the size of a USB-C plug

https://github.com/Dieu-de-l-elec/AngstromIO-devboard
81•zachlatta•22h ago•17 comments

We should revisit literate programming in the agent era

https://silly.business/blog/we-should-revisit-literate-programming-in-the-agent-era/
165•horseradish•7h ago•90 comments

Ask HN: What Are You Working On? (March 2026)

72•david927•3h ago•201 comments

Every single board computer I tested in 2025

https://bret.dk/every-single-board-computer-i-tested-in-2025/
122•speckx•3d ago•32 comments

FrameBook

https://fb.edoo.gg
375•todsacerdoti•12h ago•65 comments

Linux Internals: How /proc/self/mem writes to unwritable memory (2021)

https://offlinemark.com/an-obscure-quirk-of-proc/
39•medbar•4h ago•8 comments

Blacksky AppView

https://github.com/blacksky-algorithms/atproto
111•Kye•6h ago•69 comments

Artificial-life: A simple (300 lines of code) reproduction of Computational Life

https://github.com/Rabrg/artificial-life
77•tosh•7h ago•9 comments

My Homelab Setup

https://bryananthonio.com/blog/my-homelab-setup/
165•photon_collider•11h ago•128 comments

I made a programming language with M&Ms

https://mufeedvh.com/posts/i-made-a-programming-language-with-mnms/
55•tosh•9h ago•20 comments

Why can't you tune your guitar? (2019)

https://www.ethanhein.com/wp/2019/why-cant-you-tune-your-guitar/
182•digitallogic•4d ago•132 comments

Pushing and Pulling: Three reactivity algorithms

https://jonathan-frere.com/posts/reactivity-algorithms/
72•frogulis•1d ago•15 comments

WSL Manager

https://github.com/bostrot/wsl2-distro-manager
78•gballan•9h ago•45 comments

Living human brain cells play DOOM on a CL1 [video]

https://www.youtube.com/watch?v=yRV8fSw6HaE
157•kevinak•12h ago•144 comments

Show HN: Skir – like Protocol Buffer but better

https://skir.build/
64•gepheum•10h ago•42 comments

Some Lotto Math

https://leancrew.com/all-this/2025/12/some-lotto-math/
3•surprisetalk•4d ago•0 comments

Claude helped select targets for Iran strikes, possibly including school

https://twitter.com/robertwrighter/status/2030482402628214841
24•delichon•1h ago•14 comments

Show HN: I built a real-time OSINT dashboard pulling 15 live global feeds

https://github.com/BigBodyCobain/Shadowbroker
187•vancecookcobxin•8h ago•84 comments

Log messages are mostly for the people operating your software

https://utcc.utoronto.ca/~cks/space/blog/programming/LogMessagesAreForOperation
115•todsacerdoti•5d ago•61 comments

The legendary Mojave Phone Booth is back (2013)

https://dailydot.com/mojave-phone-booth-back-number
13•1970-01-01•2d ago•3 comments

My “grand vision” for Rust

https://blog.yoshuawuyts.com/a-grand-vision-for-rust/
135•todsacerdoti•4d ago•114 comments

Z80 Sans – a disassembler in a font (2024)

https://github.com/nevesnunes/z80-sans
86•pabs3•4d ago•10 comments

Ask HN: How to be alone?

314•sillysaurusx•16h ago•235 comments

Notes on writing Rust-based Wasm

https://notes.brooklynzelenka.com/Blog/Notes-on-Writing-Wasm
211•vinhnx•18h ago•90 comments

Lil Finder Guy

https://basicappleguy.com/basicappleblog/lil-finder-guy
87•frizlab•7h ago•26 comments

Last Statements

https://walzr.com/last-statements
13•sethbannon•4h ago•7 comments

Case Study: lynnandtonic.com 2025 refresh

https://lynnandtonic.com/thoughts/entries/case-study-2025-refresh/
8•surprisetalk•3d ago•0 comments

What if the Apple ][ had run on Field-Sequential?

https://nicole.express/2026/the-apple-that-wasnt.html
83•zdw•12h ago•16 comments