Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. I built non-autoregressive decision models with RL a year ago(convaiinnovations.com ↗)
    175comments
  2. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    560comments
  3. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    200comments
  4. Btrfs/ZFS/bcachefs under workloads classic benchmarks skip(bartosz.fenski.pl ↗)
    3comments
  5. A graphical desktop for the ZX Spectrum(github.com/mindbox77 ↗)
    85comments
  6. Tin: full-text search for Postgres(planetscale.com ↗)
    57comments
  7. “The Secret Life of Circuits” is here(coredump.cx ↗)
    59comments
  8. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    598comments
  9. Show HN: CUA-S1 – A System One Model for Computer Use(github.com/trycua ↗)
    discuss
  10. Supabase (YC S20) Is Hiring for OrioleDB(supabase.link ↗)
    discuss
  11. Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'(quantamagazine.org ↗)
    23comments
  12. New evidence for hidden chambers beyond Tutankhamun's tomb(nature.com ↗)
    13comments
  13. People who know the most often sound the least certain(vrash.substack.com ↗)
    9comments
  14. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    146comments
  15. San Francisco Onion Futures Company(onionfutures.com ↗)
    133comments
  16. Suzanne Ciani's Buchla Cookbook(echo.orpheusinstituut.be ↗)
    discuss
  17. Almost Never Use AI to Write Anything Substantive(erichgrunewald.substack.com ↗)
    40comments
  18. Cloudflare Quick Tunnels(cloudflare.com ↗)
    302comments
  19. How to Write with an LLM(sockpuppet.org ↗)
    365comments
  20. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    208comments
  21. What Zig felt like, coming from Rust(besok.github.io ↗)
    150comments
  22. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    29comments
  23. Saving another 100TB of RAM(cloudflare.com ↗)
    93comments
  24. Communication by means of modulated Johnson noise(pnas.org ↗)
    23comments
  25. Asking Authors About Their Own Papers(medium.com/tmlrorg ↗)
    51comments
  26. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    123comments
  27. SDCC – Small Device C Compiler(sourceforge.net ↗)
    26comments
  28. Adventures in Microcontroller Circuit Debugging(bigmessowires.com ↗)
    1comments
  29. Science Is Open Software(jepedersen.dk ↗)
    57comments
  30. Ray Ozzie and the Optimism of Being Early(reproof.app ↗)
    20comments

I taught a bucket to speak Git

90 pointsby 2mo agotigrisdata.com
17 comments
2mo agoHN ↗

Came here for a five-gallon bucket hooked to Dulwich (archiving rain?), Slightly disappointed :)

Go Git and Dulwich and friends are indeed fun tech.

2mo agoHN ↗

Most of the pain here is the typical set of issues people run into trying to make S3 a filesystem as-is, common with S3FS-family approaches.

ZeroFS (https://github.com/Barre/zerofs) is 9P/NFS/NBD over S3 on an LSM. Point stock go-git, or just /usr/bin/git, at a mount and skip the gymnastics. Rename is a metadata op in the keyspace, so you get it atomic on any S3, no Tigris-specific X-Tigris-Rename needed.

Different point on the spectrum, but less square-peg, also most probably much, much faster (it works great on linux-sized repos) :)

2mo agoHN ↗

Author of the article here. I'm aware of ZeroFS and other similar approaches (such as something internal at Tigris that will become public at a later date), this was more of an experiment to see how far you can get with stuff I already had "on the shelf". I am going to be improving this a fair bit; I just need to plan out what I'm gonna work on and figure out the best times to stream it, etc.

2mo agoHN ↗

I wouldn’t call it gymnastics. The surprising part of the article was that Git itself is an object store that happens to use a filesystem for persistence, but an S3 bucket might actually be more suitable than a .git directory on POSIX.

2mo agoHN ↗

It makes sense, similar to how blob storage is a natural fit for a nix cache, where you have a giant flat space of many hash-address immutable directories/archives.

I think most of the pain documented in the article is just that git-the-implementation contains a lot of assumptions about it being a (local) filesystem that it is operating on, hence stuff like calling stat a ton of times, or doing the rename trick to get atomic behavior from a not-normally-atomic operation (updating a file in place).

If it were possible to define a "backing storage" API layer within git, it might be possible to move all the filesystem/posix-centric stuff to the other side of it and leave behind an interface that maps quite nicely to blob storage.

2mo agoHN ↗

Would probably be great to have ZeroFS backed PVs for the K8s folks :)

2mo agoHN ↗

This was really thought provoking — it made me realize that Git just happens to use a filesystem for persistence, but doesn’t necessarily have to. A POSIX filesystem might not even be the best way to store a git repo. Makes me wonder: what else could speak Git + POSIX? Redis? Postgres? IPFS is a fun one — it’s already content addressed.

2mo agoHN ↗

IPFS would be much better for something like LFS support than git repos itself. Git repos are very mutable bits of state and IPFS is best for immutable state. I'm aware of mutable IPFS pointers, but I think the best bet currently is to use immutable things for immutable objects and mutable things for mutable objects.

2mo agoHN ↗

I did something similar, though a full reimplementation of a git and git-lfs library in Elixir. Still a work in progress though as the S3 backend isn't quite complete and there are performance problems doing some git things through S3.

https://anvil.fangorn.io/fangorn/ex_git_objectstore

The documentation isn't quite correct, but it's getting there

2mo agoHN ↗

Great work, though I wish some of this work could be upstreamed to Gitea instead?

2mo agoHN ↗

Author of the post here. I'll talk with someone I know at Gitea. I don't think this is viable to upstream into Gitea, but there's only one way to find out!

2mo agoHN ↗

I’m not sure I understand what pain point this solves. What’s the value of doing this? Is it at a certain scale?