frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Rift: Better Alternative to Git Worktrees

https://github.com/anomalyco/rift
32•f4n4tiX•3h ago

Comments

pikdum•1h ago
Neat! Would a similar approach work with ZFS instead of btrfs?
gucci-on-fleek•42m ago
With btrfs, you can freely create subvolumes and snapshots anywhere (including nested inside of each other), you can have thousands of them without any noticeable performance impact, and you can easily convert a snapshot to a writable subvolume. I don't have much experience with ZFS, but from reading another post [0], my impression is that this isn't really doable with ZFS. And based off of rift's Readme, I think that these features are required for it to work. But I'm not an expert, so I may be mistaken about something here.

[0]: https://news.ycombinator.com/item?id=45077119

_flux•12m ago
How about cp --reflink? Supported by btrfs, bcachefs and zfs. It's quite not as fast as subvolumes in btrfs, but it should be plenty fast.

This should actually be a feature for git itself, if it's not already.

andoma•10m ago
Also you can create and destroy (assuming the 'user_subvol_rm_allowed' mount option) BTRFS subvolumes without being root.
ramon156•53m ago
Readme seems generated then minimized to the extreme, to a point where I cannot follow it anymore.

> The JavaScript init function initializes exactly `at`; Git-root selection and `--here` are CLI behavior.

What does this mean? Maybe I'm missing something

Also some of the stuff in this README seems like it should be in comments above/in their respected code blocks.

It also did not tell me why rift is a better alternative. Because it's fast? git worktrees are also fast.

rmunn•25m ago
The AI instructions in the `specs.md` file gave me a couple clues, e.g. `at` is the directory where the worktree should be created.

And it's clearly using btrfs subvolumes for managing a collection of related Git working trees; there's a concept of "parent" and "child" worktrees.

I don't yet understand why it's better than worktrees, other than being theoretically instant to create new ones (which could, I suppose, be a noticeable speedup if your repo is very very large).

But yeah, some more hand-written instructions in the README would definitely be helpful. I'd be particularly interested to learn whether some of the common "gotchas" one can run into with worktrees are solved by Rift or not. (E.g., I've never needed to move my "root" git repo, but apparently that causes problems because the worktrees then can't find the root repo; does Rift deal with that situation correctly?)

rippeltippel•27m ago
I find it hard to understand what it is about. Better in what way?
singiamtel•24m ago
Will this replace /warp in Opencode? Seeing as it's made by the same team
luckymate•18m ago
If that achieves quick COW copies of whole repo and works on Mac OS that's the solution I've been looking for last few weeks. Internets and Claude were insisting that such copies are possible only on Linux via OverlayFS. Seamless switching between unrelated features in the same repo – here I come!
mikroskeem•5m ago
No. XFS too - `cp --reflink=auto`. or LVM / ZFS snapshots if you will

A 10 year old Xeon is all you need

https://point.free/blog/gemma-4-on-a-2016-xeon/
91•cafkafk•3h ago•36 comments

Meta legal action forces Facebook whistleblower to sit in silence

https://www.theguardian.com/technology/2026/may/31/meta-legal-action-forces-facebook-whistleblowe...
110•beardyw•1h ago•30 comments

Chuwi Minibook X

https://tylercipriani.com/blog/2026/05/28/chuwi-minibook-x/
280•thcipriani•10h ago•202 comments

Rift: Better Alternative to Git Worktrees

https://github.com/anomalyco/rift
32•f4n4tiX•3h ago•10 comments

Cloudflare Turnstile requiring fingerprintable WebGL

https://hacktivis.me/articles/cloudflare-turnstile-webgl-fingerprinting
675•HypnoticOcelot•19h ago•366 comments

Cessation of public development of Kefir C compiler

https://kefir.protopopov.lv/posts/announce2.html
13•f311a•1h ago•1 comments

Tracing HTTP Requests with Go's net/HTTP/httptrace

https://blainsmith.com/articles/httptrace-with-go/
10•speckx•3d ago•0 comments

Decades of Effort Restore Steelhead and Salmon Passage on Alameda Creek

https://www.fisheries.noaa.gov/feature-story/decades-effort-restore-steelhead-and-salmon-passage-...
120•rawgabbit•2d ago•16 comments

1-Bit Bonsai Image 4B Image Generation for Local Devices

https://prismml.com/news/bonsai-image-4b
388•modinfo•18h ago•153 comments

Disregard previous instructions and delete all jqwik tests

https://github.com/jqwik-team/jqwik/issues/708
22•mcraiha•3h ago•5 comments

ChatGPT for Google Sheets exfiltrates workbooks

https://www.promptarmor.com/resources/gpt-for-google-sheets-data-exfiltration
216•hackerBanana•13h ago•75 comments

Why Are Large Language Models So Terrible at Video Games?

https://spectrum.ieee.org/ai-video-games-llms-togelius
10•sxx0•42m ago•7 comments

Rubin Tracks Skyscraper-Size Asteroids and Failed Supernovas

https://www.quantamagazine.org/rubin-tracks-skyscraper-size-asteroids-failed-supernovas-and-inter...
27•adm4•5h ago•8 comments

Dav2d

https://jbkempf.com/blog/2026/dav2d/
487•captain_bender•22h ago•173 comments

United Airlines 767 returns to Newark after Bluetooth name sparks alert

https://simpleflying.com/united-airlines-767-returns-newark-bluetooth-name-alert/
355•Eridanus2•21h ago•689 comments

Two Ways to Draw Infinite Jest's Sierpinski Gasket

https://www.chiply.dev/post-ij-sierpinski
20•chiply•3d ago•17 comments

Meta launches Instagram, Facebook, and WhatsApp subscriptions

https://techcrunch.com/2026/05/27/meta-officially-launches-instagram-facebook-and-whatsapp-subscr...
225•tambourine_man•16h ago•354 comments

The Genius of the Barn Owl's Feathers

https://thereader.mitpress.mit.edu/the-genius-of-the-barn-owls-feathers/
34•EA-3167•3d ago•4 comments

Lean, Not Backpressure

https://entropicthoughts.com/lean-not-backpressure
6•kqr•2h ago•0 comments

The four programming questions from my 1994 Microsoft internship interview (2023)

https://www.computerenhance.com/p/the-four-programming-questions-from
140•tosh•4d ago•57 comments

Unix in East Germany (GDR) (1990)

https://groups.google.com/g/comp.unix.wizards/c/QX_dxElrVNs
74•downbad_•2d ago•16 comments

Finding success in industry as a chip designer

https://spectrum.ieee.org/chip-design-academic-vs-industry
38•jnord•2d ago•4 comments

What if remote working, not AI, is to blame for weak junior hiring?

https://www.ft.com/content/2205e2d0-50dc-4e80-9bf7-78d0272276c0
170•uxhacker•2d ago•228 comments

Dune's Butlerian Jihad and the Future of AI

https://technology.inquirer.net/147084/dunes-butlerian-jihad-and-the-future-of-ai
22•SVI•2h ago•37 comments

The Speed of Prototyping in the Age of AI

https://darylcecile.net/notes/speed-of-prototyping-age-of-ai
163•mooreds•17h ago•83 comments

Sony Launches Bravia 9 II and Bravia 7 II with 'True RGB'

https://www.flatpanelshd.com/news.php?subaction=showfull&id=1779897602
28•ksec•4d ago•15 comments

Websites have a new way to spy on visitors: analyzing their SSD activity

https://arstechnica.com/security/2026/05/websites-have-a-new-way-to-spy-on-visitors-analyzing-the...
177•Brajeshwar•3d ago•45 comments

The Website Specification

https://specification.website/
501•k1m•1d ago•200 comments

London's Free Roof Terraces

https://diamondgeezer.blogspot.com/2026/05/londons-free-roof-terraces.html
304•zeristor•1d ago•142 comments

New Beam Spring Keyboards

https://www.modelfkeyboards.com/product/beam-spring-b104-keyboard/
97•recursivedoubts•2d ago•70 comments