Live data from Hacker News

Artisanal handcrafted Git repositories

drew.silcock.dev

21–30 of 74 posts

Re: Artisanal handcrafted Git repositories

#21
post #17

I thought this was going to be a sardonic article about doing programming without LLMs.

I'm starting to see this kind of wording as a unique selling point, that some software (or article, visual art, etc.) is handcrafted and artisanal, as opposed to AI-generated. "Every word was written by me, a human being!" At this point in the emerging technology I can usually tell the difference intuitively, but it's possible that one day it will be indistinguishable - and the quality of "handmade" will be simply a matter of branding for niche enthusiasts, like vinyl records.

Re: Artisanal handcrafted Git repositories

#22

Neat to see this done by hand! It helps demystify the magic behind git commands. If you like this, I also recommend "Write Yourself a Git", where you build a minimal git implementation using python: https://wyag.thb.lt/

How cool, thank you

Re: Artisanal handcrafted Git repositories

#24
post #16
post #2

To the site author: I'm on a MBP M1 Mac and honestly I can't really read the text. Far too small, and increasing the zoom just makes the text large but the margins less wide. Firefox reader mode also renders really badly. Please, consider making the layout better for us old coders whose eyes are going, or for hi res displays

FYI: the pinch-to-zoom gesture from mobile browsers (from before websites were mobile-responsive) has also long been implemented for all modern desktop browsers. It's viewport zoom, which is far better than the font-scaling zoom you get by pressing Cmd-+, and makes this site easily readable. (The much-less-well-known mobile double-tap-on-text gesture [it zooms-to-fit whatever element you tapped on to the width of the…

Double tap on text highlights it for me. Is that an Iphone/android thing or what?

Re: Artisanal handcrafted Git repositories

#25

Something that I really like in Git is how its data structures are easy to understand and how transparent it is. It's possible to write your own "Git" compatible with existing Git directories only by reading how it works under the hood

I agree, but only in theory. Projects like gitoxide have been in development for years now.

Not sure what gitoxide is, but libgit already exists, and it seems to be an independent implementation - https://github.com/libgit2/libgit2

I think Github and most big Git hosts use it

Re: Artisanal handcrafted Git repositories

#26
post #16

Earlier quoted context omitted.

FYI: the pinch-to-zoom gesture from mobile browsers (from before websites were mobile-responsive) has also long been implemented for all modern desktop browsers. It's viewport zoom, which is far better than the font-scaling zoom you get by pressing Cmd-+, and makes this site easily readable. (The much-less-well-known mobile double-tap-on-text gesture [it zooms-to-fit whatever element you tapped on to the width of the…

Double tap on text highlights it for me. Is that an Iphone/android thing or what?

As I said, it's a two finger double-tap.

But also, under further investigation — and unlike with pinch-to-zoom — desktop support for the two-finger double-tap gesture seems to be specific to macOS. (Which is weird, because Chrome has support for arbitrary multitouch gesture processing to enable the JS multitouch API. So you'd think Chrome's support for "the multitouch gestures the OS expects" would be built on top of that generic multitouch recognizer [and therefore working everywhere that recognizer works], instead of expecting the OS to pre-recognize specific gestures and translate them to specific OS input events.)

Re: Artisanal handcrafted Git repositories

#27

Earlier quoted context omitted.

I agree, but only in theory. Projects like gitoxide have been in development for years now.

I wrote a nearly complete implementation of git file format parsers in Common Lisp over like a month of evenings and weekends. I’m sure there are hard parts between where I am and a full git implementation but you can get quite a bit of utility out of a relatively small amount of effort.

Yeah, I wrote mine in Haskell. It's a good exercise for understanding how Git works

Re: Artisanal handcrafted Git repositories

#28
Okay, there's something I have been thinking about recently. Is it possible to somehow make Git use the Content Defined Chunking algorithm from rsync? Maybe somehow using clean/smudge? If not git, then maybe Mercurial, Fossil or any other DVCS?

This would help with large binary assets without having to deal with the mess that is LFS, as long as the assets were uncompressed.

Re: Artisanal handcrafted Git repositories

#29

Neat to see this done by hand! It helps demystify the magic behind git commands. If you like this, I also recommend "Write Yourself a Git", where you build a minimal git implementation using python: https://wyag.thb.lt/

A similar project is CodeCrafters' Build Your Own Git: https://app.codecrafters.io/courses/git/overview

Re: Artisanal handcrafted Git repositories

#30
post #26

Earlier quoted context omitted.

Double tap on text highlights it for me. Is that an Iphone/android thing or what?

As I said, it's a two finger double-tap. But also, under further investigation — and unlike with pinch-to-zoom — desktop support for the two-finger double-tap gesture seems to be specific to macOS. (Which is weird, because Chrome has support for arbitrary multitouch gesture processing to enable the JS multitouch API. So you'd think Chrome's support for "the multitouch gestures the OS expects" would be built on top of…

I was trying on my phone, but my laptop seems to interpret it as a right click. Which, frankly, makes sense.
Post reply on HN