frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

My new Git utility `what-changed-twice` needs a new name

https://blog.plover.com/2025/09/21/#what-changed-twice
33•jamesbowman•4h ago

Comments

chris_wot•1h ago
You know, I find myself partially agreeing that a number of utilities for git could be done quite nicely in perl.
eru•1h ago
Git's repository includes quite a bit of Perl, but they want to get rid of it.
codewritero•1h ago
Jujutsu has a command which is helpful for this sort of workflow called absorb which pushes all changes from the current commit into the most recent commit which modified that file. (Each file may be merged into a different commit).
metadat•1h ago
Yes, totally useful compared to default git base commands.

And also - melding the "changed twice" (or thrice...) mutations into a single commit is a brilliant isolation of a subtle common pattern.

MontagFTB•1h ago
I am familiar with an algorithm that stably brings a disjoint selection of items together around a specified point. Sounds similar to this case, where the disjoint selection are changes that happened to a given file.

The name of the algorithm is “gather”, by Sean Parent and Marshall Clow.

JKCalhoun•53m ago
"muster" comes to mind and is different than "gather".
eru•1h ago
> There's bonus information too. If a commit is not mentioned in the report, then it only changed files that didn't change in any other commit. That means that in a rebase, I can move that commit literally anywhere else in the sequence without creating a conflict. Only the commits in the report can cause conflicts if they are reordered.

This is only true in the textual level.

Semantically, re-shuffling commits like this can still cause conflicts. Ie it can break your tests. Not at the end, but for the intermediate commits.

_dark_matter_•34m ago
This is why I no longer do atomic commits. I've just never had it be a benefit to walk through and guarantee that each commits tests and builds successfully. I so rarely back out changes that when I do, I test then that everything is working (and let's be honest, I back out usually at the PR level, not the commit).
mjd•5m ago
I agree. I decided years ago that that was a lot of work for little or no benefit.

It's enough for the tests to pass at each merge point.

nicr_22•31m ago
FlipFlopStop?

FFS for short, which has suitably disgruntled other exclamatory meanings.

allseeingimei•25m ago
git-delta -n <times>

i.e. git-delta -n 2 = 'what changed twice'

or if its just what changed twice in every case then just 'git-delta-delta'

Be Careful with Go Struct Embedding

https://mattjhall.co.uk/posts/be-careful-with-go-struct-embedding.html
60•mattjhall•2h ago•32 comments

Sj.h: A tiny little JSON parsing library in ~150 lines of C99

https://github.com/rxi/sj.h
309•simonpure•9h ago•161 comments

Lightweight, highly accurate line and paragraph detection

https://arxiv.org/abs/2203.09638
57•colonCapitalDee•4h ago•6 comments

Show HN: I wrote an OS in 1000 lines of Zig

https://github.com/botirk38/OS-1000-lines-zig
105•botirk•3d ago•13 comments

40k-Year-Old Symbols in Caves Worldwide May Be the Earliest Written Language

https://www.openculture.com/2025/09/40000-year-old-symbols-found-in-caves-worldwide-may-be-the-ea...
101•mdp2021•3d ago•59 comments

My new Git utility `what-changed-twice` needs a new name

https://blog.plover.com/2025/09/21/#what-changed-twice
33•jamesbowman•4h ago•11 comments

Calculator Forensics (2002)

https://www.rskey.org/~mwsebastian/miscprj/results.htm
63•ColinWright•3d ago•25 comments

DXGI debugging: Microsoft put me on a list

https://slugcat.systems/post/25-09-21-dxgi-debugging-microsoft-put-me-on-a-list/
212•todsacerdoti•11h ago•69 comments

Procedural Island Generation (VI)

https://brashandplucky.com/2025/09/28/procedural-island-generation-vi.html
28•ibobev•5h ago•3 comments

First Ultrasonic Chef's Knife Vibrates 40,000X/Second for Easy Cutting

https://www.cnet.com/home/kitchen-and-household/worlds-first-ultrasonic-chefs-knife-vibrates-4000...
29•randfish•3d ago•14 comments

Why your outdoorsy friend suddenly has a gummy bear power bank

https://www.theverge.com/tech/781387/backpacking-ultralight-haribo-power-bank
166•arnon•13h ago•199 comments

I forced myself to spend a week in Instagram instead of Xcode

https://www.pixelpusher.club/p/i-forced-myself-to-spend-a-week-in
193•wallflower•12h ago•72 comments

Timesketch: Collaborative forensic timeline analysis

https://github.com/google/timesketch
101•apachepig•9h ago•10 comments

Model Flop Utilization Beyond 6ND

https://jott.live/markdown/mfu
7•brrrrrm•3d ago•0 comments

INapGPU: Text-mode graphics card, using only TTL gates

https://github.com/Leoneq/iNapGPU
37•userbinator•3d ago•4 comments

Show HN: Tips to stay safe from NPM supply chain attacks

https://github.com/bodadotsh/npm-security-best-practices
16•bodash•4h ago•5 comments

Node 20 will be deprecated on GitHub Actions runners

https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
74•redbell•1d ago•24 comments

Unified Line and Paragraph Detection by Graph Convolutional Networks (2022)

https://arxiv.org/abs/2503.05136
85•Qision•11h ago•11 comments

Zig got a new ELF linker and it's fast

https://github.com/ziglang/zig/pull/25299
66•Retro_Dev•3h ago•15 comments

How can I influence others without manipulating them?

https://andiroberts.com/leadership-questions/how-to-influence-others-without-manipulating
30•kiyanwang•3h ago•16 comments

How Isaac Newton discovered the binomial power series (2022)

https://www.quantamagazine.org/how-isaac-newton-discovered-the-binomial-power-series-20220831/
51•FromTheArchives•3d ago•8 comments

Apple Silicon GPU Support in Mojo

https://forum.modular.com/t/apple-silicon-gpu-support-in-mojo/2295
100•mpweiher•5h ago•37 comments

LaLiga's Anti-Piracy Crackdown Triggers Widespread Internet Disruptions in Spain

https://reclaimthenet.org/laligas-anti-piracy-crackdown-triggers-widespread-internet-disruptions
317•akyuu•10h ago•137 comments

Discovering new solutions to century-old problems in fluid dynamics

https://deepmind.google/discover/blog/discovering-new-solutions-to-century-old-problems-in-fluid-...
31•roboboffin•3d ago•2 comments

Oxford loses top 3 university ranking in the UK

https://hotminute.co.uk/2025/09/19/oxford-loses-top-3-university-ranking-for-the-first-time/
237•ilamont•10h ago•342 comments

A coin flip by any other name (2023)

https://cgad.ski/blog/a-coin-flip-by-any-other-name.html
46•lawrenceyan•3d ago•5 comments

EU to block Big Tech from new financial data sharing system

https://www.ft.com/content/6596876f-c831-482c-878c-78c1499ef543
32•1vuio0pswjnm7•3h ago•17 comments

Bringing Observability to Claude Code: OpenTelemetry in Action

https://signoz.io/blog/claude-code-monitoring-with-opentelemetry/
23•pranay01•7h ago•10 comments

The Counterclockwise Experiment

https://domofutu.substack.com/p/the-counterclockwise-experiment
41•domofutu•1d ago•13 comments

Show HN: Freeing GPUs stuck by runaway jobs

https://github.com/kagehq/gpu-kill
28•lexokoh•10h ago•0 comments