News for hackers. Stuff that matters.
Re:I've Acquired a New Superpower by a1o on Friday January 10, 2025 @10:46AM (#42656623)
A new way of doing git diff, leave both versions of the code side by side and cross your eyes.
Re:I've Acquired a New Superpower by bicx on Friday January 10, 2025 @11:15AM (#42656942)
New business idea: git diff, but it uses Mechanical Turk to hire an army of cross-eyed diff spotters.
Re:I've Acquired a New Superpower by waffletower on Friday January 10, 2025 @12:04PM (#42657476)
There is a wonderful stable diffusion prompt here.
Re:I've Acquired a New Superpower by justahuman74 on Friday January 10, 2025 @11:04AM (#42656831)
I sure didn't expect there to be a plausibly work-related angle when I came to this thread
Re:I've Acquired a New Superpower by satvikpendem on Friday January 10, 2025 @11:20AM (#42656999)
Somewhat related, but I've been using the Semantic Diff extension in VSCode, works better than standard git diff.
Re:I've Acquired a New Superpower by delichon on Friday January 10, 2025 @12:04PM (#42657479)
You could theoretically use this technique to see semantic differences between sentences by displaying their two dimensional vector embeddings side by side.
Re:I've Acquired a New Superpower by louiechristie on Friday January 10, 2025 @10:59AM (#42656780)
My thoughts exactly. Could be done with a git diff in a VR headset
Re:I've Acquired a New Superpower by xattt on Friday January 10, 2025 @12:41PM (#42657850)
If you’re already spending the computing effort to create the VR image…

/s

Re:I've Acquired a New Superpower by tom_ on Friday January 10, 2025 @08:10PM (#42662342)
It sounds like you mock, but: you can do this, or near enough, and you can do it already, and it works really well!

0. Pick suitable tool. Firefox works. Notepad++ works. GIMP works. Emacs, not so much, but if you use Emacs, you know that you can fix this

1. Load file A into a tab

2. Load file B into a tab

3. Close all other tabs

4. Hold down the tab switch shortcut key and note the result

For images this is actually pretty decent and I've used it a lot. Good for figuring out what the differences actually are when your image-based tests fail, and similarly after making a speculative change. Let your eyes do the difference operation for you. That's what they're there for.

For text: you'd be better served by some other kind of tool. But, using the above principle, it does work!

(I've previously read a blog post, link to which I of course now can't find, about how old-style Photoshop undo was designed with this sort of thing in mind. Instead of working through the operation queue like normal people, it simply switched repeatedly between previous state and current state - the idea being that you'd make a change that you weren't certain of, then press the key repeatedly to see before and after. No need to think. Thinking isn't appropriate here anyway. Just let your eyes look at what they're seeing.)