Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. In an $80 motel room, a discovery to shed light on the origins of life (nytimes.com)
    34comments
  2. Writing Efficient C++ Code (asawicki.info)
    33comments
  3. Replacing the old battery on rechargeable bike lights (jvns.ca)
    38comments
  4. The Normalization of Inexplicable Failures (ihatethefuture.com)
    43comments
  5. Show HN: TinyAIArena watch AI agents battle it out (tinyaiarena.com)
    23comments
  6. Calling the AI bluff: Adding "Do not guess" cut made-up fields from 71% to 20% (earnanhonestdollar.com)
    —discuss
  7. There are no "rogue" AI agents (eoinhiggins.substack.com)
    75comments
  8. SNL Weekend Update: Anthropic CEO Dario Amodei on A.I.'S Threat to Humanity [video] (youtube.com)
    4comments
  9. Walgit: A Git server that is one binary in front of an object store (github.com/rgodha24)
    4comments
  10. Flip Fluid on Flip Dots (mitxela.com)
    19comments
  11. Fakecloud: Local AWS cloud emulator for integration tests (fakecloud.dev)
    37comments
  12. Ten lines of code that changed my world (pixelambacht.nl)
    20comments
  13. Fragment of oldest known peace treaty found in Turkey (livescience.com)
    —discuss
  14. PostmarketOS is rebranding as Nura (nura.eco)
    11comments
  15. 42x faster prompt lookup drafting in llama.cpp (jadidbourbaki.github.io)
    2comments
  16. The Cartesian Hand: In-Hand Manipulation with All-Linear Fingers (generalroboticslab.com)
    2comments
  17. Show HN: Building a Markdown editor for Mac, iOS and web (markdown.beauty)
    8comments
  18. Show HN: A CC0 museum of retro 3D tricks you can paste into a page (3d-retro.com)
    10comments
  19. Go Concurrency Distilled (antonz.org)
    140comments
  20. Video CDs Break Windows Explorer (clydesnotes.blogspot.com)
    3comments
  21. Finally, A True Blue Rose Exists (sciencenews.org)
    30comments
  22. Show HN: Trail – new kind of logic game (franzai.com)
    1comments
  23. The Greatest Pun in JavaScript (shukla.io)
    —discuss
  24. PipePipe: NewPipe hard fork implementing SponsorBlock (github.com/infinityloop1308)
    260comments
  25. C's Flexible Integer Sizes Were Not a Design Mistake (pikuma.com)
    62comments
  26. Reading’s Bayeux Tapestry (diamondgeezer.blogspot.com)
    6comments
  27. Installing NeoVim caused original Vim undo files to be deleted (aresluna.org)
    237comments
  28. Rusty thoughts on "Parse, don't validate" (thegreenplace.net)
    19comments
  29. Unsealed Briefs in Authors’ Case v. Microsoft/OpenAI (authorsguild.org)
    529comments
  30. Show HN: Reladraw – A diagram language where you decide where to place things (github.com/reladraw)
    103comments

You can run Git on object storage if you re-make packfiles

146 pointsby 11d agotigrisdata.com
34 comments
8d agoHN ↗

Nice. I saw some git-on-durable-objects projects but I'd so much prefer a straight object storage option.

8d agoHN ↗

Sweet. It’s kinda wild to me that this hasn’t been done. Would be so much nicer if gitlab/forgejo/gitea/… supported object storage for everything. Currently you always still need a filesystem for git repos.

8d agoHN ↗

It has been done. It is no longer done because it is not efficient.

Yes, it was not "object storage", but Git can be served from a dumb http server as static files. Now someone figured out that object storage can also serve static files via http. Wow!

8d agoHN ↗

Doesn’t Git store data in sparse files? My impression is that git’s on-disk layout is exactly the kind of thing you’d avoid on object storage. Interactions involve a ton of small reads, resulting in poor performance and enormous bills.

It only really makes sense to tarball repos into cold storage on S3 or Glacier, but short of GitLab cloud I suspect there aren’t enough repos cold enough to be worth the dev costs.

S3 that doesn’t have wild costs for git objects sounds like it’s just NFS

7d agoHN ↗

Git does not use sparse files no, however in packs objects are delta-ified: any object can be either literal or a combination of literal segments and range copies from a base object, and that base object can be the same, recursively. So to resolve any object you need to jump around a fair bit in the pack file. The normal GC creates delta chain of length 10, aggressive defaults to 50, the maximum is 4095.

7d agoHN ↗

There's a bunch. I got pissed during one of the last GitHub outages and had an AI agent one shot a clone with PR, stacks, actions, and full compatibility with the git client running on Cloudflare workers and R2. Only limitations is it was https only because CF workers don't have tcp to implement and without an enterprise account.

Works great to this day. And I was far from the first.

8d agoHN ↗

Next: replace whole-file hashes with a Merkle Patricia tree hash and enable BitTorrent-like distribution protocols on top, not to mention the deduplication advantages!

8d agoHN ↗

replace whole-file hashes

BLAKE3 has a whole mechanism for this, and as an added bonus it'd be substantially faster.

8d agoHN ↗

"Finally delta objects should be stored as their own object in the packfile instead of slapped onto the end of the object it’s a delta of so that you don’t have to read the object and its deltas to read the object in the first place."

Author thinks that delta encoding is there for no reason. Good luck, kid.

8d agoHN ↗

4th submission in 3 days. Is this a marketing spam campaign?

8d agoHN ↗

it's a shit website with awful fonts, certainly

8d agoHN ↗

Which fonts are you seeing not looking good? It seems perfectly readable sans-serif and monospace wise, but could be system preferences on what fonts to use?

8d agoHN ↗

It seems like the kind of thing I would naturally post if I came across it, so a bunch of submissions over 3 days makes me think a bunch of people saw it and when they saw it said huh, I will submit to HN.

I think that makes more sense than some spam campaign for this.

8d agoHN ↗

I’m wondering how this is possible. Usually when you submit something that has been already posted recently, HN will upvote the existing post instead.

8d agoHN ↗

it depends on how much interest was shown, I've definitely posted things and then they get posted again less than 24 hours later and it is that second post that takes off.

7d agoHN ↗

I'm the author and content lead at Tigris. My policy for the team is "do not self post to hacker news".

8d agoHN ↗

`git update-server-info` is your friend; it generates the auxiliary files needed to allow clients to make range requests against packs.

For example: https://andrewaylett.github.io/rgitweb/ is a repository viewer that runs against a static git repo. It doesn't care what you're storing the pack in, just that the data is there to make the right range requests.

8d agoHN ↗

I recently found https://github.com/enroute-sh/enroute which also does git on object storage

I found the idea of a git-proxy interesting where you start with proxying an existing forge and then later adopt the object storage backend

7d agoHN ↗

yes! I tried to do exactly this here https://porcelain.sh/

never finished, because stopped having personal use case, but had exactly same idea(and a bit more features)

8d agoHN ↗

Oh this is exactly what I need, fantastic! Thanks for sharing.

8d agoHN ↗

This seems incredible and I love the idea. Anyone using this for large projects? Any clear downsides or tradeoffs?

8d agoHN ↗

Not that I know of as I don't have a way track this. I did test importing and mirroring everything for Ghostty and Meshtastic projects, found out that initial import and push steps may take a while.

Great to have issues, PRs, etc in git, but requires each participant to set up a fork to participate.

No CI though, but an extension to capture job logs is on the roadmap.

7d agoHN ↗

Radicule does something similar. Also git-bug.

7d agoHN ↗

Do you have any benchmark data you can share?

What you are saying sounds like an assertion that the problem described here[1] - by Vicent Marti - that packfiles aren't contiguous blocks of data and so every fetch fans out to more fetches from the client - is not actually a problem? Or is there an innovation in zerofs that somehow solves this for git? From what I can see it offers NFS and NBD interfaces and GitHub tried and rejected both of those very early on.

The problem he described seems consistent with known patterns from datalake storage architectures, its a big part of why columnar storage is the only game in town for most use cases.

This is why TFA has a lot of interest here - he has changed the storage layout of git packfiles to a columnar model to address this challenge.

[1] https://cursor.com/blog/git-at-any-scale#git-without-packfil...

7d agoHN ↗

I’m not saying the access pattern isn’t real. I’m saying it largely doesn’t matter in practice.

If Git repos were routinely terabytes in size, this would be a much harder problem. But the vast majority of repos are <1GB, and at that scale caching dominates. Even with imperfect locality, you can cache enough of the working set that those reads don’t turn into s3 round trips.

In a low-latency environment, I haven’t found filesystem round trips themselves to be an issue for Git workloads either.

7d agoHN ↗

(I’ll call this "dotgit" so I don’t have to write as many backticks)

And then "dotgit" was never seen again :)