0:00 / 0:00
#zig#git#content-addressedstorage
Writing Git from Scratch in Zig: Storing Objects
nubskr
3.5K subscribers • 6 videos on Hallway
- Recommended by 1 person: 1 in engineering communities.
Intermediate. Assumes working knowledge.
3.2K views2 months ago1 recommendation
Programming languagesSystems programmingZigData structuresGit and version control
nubskr builds a content-addressed object store in Zig, implementing repository initialization, hashing, and object verification.
Watch More Building From Scratch Videos youtube.com/playlist?list=PLW4HlYGac2eU I’m writing a Git like version control system completely from scratch in Zig, and I’m calling it Zit. In this video, we build the foundation of the repository: initializing the .zit directory and creating a content-addressed object store capable of hashing, storing, deduplicating, reading, and verifying data. We’ll cover how Zit represents objects, why their type is included in their identity, how BLAKE3 hashes become object addresses, why identical contents only need to be stored once, and how corrupted objects can be detected when they’re read back. Everything is implemented from scratch rather than wrapping or calling Git. Chapters: Building Zit from Scratch How Content-Addressed Storage Works Initializing the Repository Writing Objects Reading and Verifying Objects Deduplication and Testing #zig #systemsprogramming #gitWhy it's here
1 person recommends thisWhat people say. Recommended as an excellent walkthrough of building a Git-like version control system from scratch.