Live data from Hacker News

Artisanal handcrafted Git repositories

drew.silcock.dev

61–70 of 74 posts

Re: Artisanal handcrafted Git repositories

#61
post #39

Earlier quoted context omitted.

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

On my iPad in Safari and Pixel Android phone in Firefox, one-finger double tap on text does the fit to viewport. On my Ubuntu laptop in Chrome, I couldn’t find a way to make it work - even tapping the touchscreen didn’t work. But I’m not using the stock Ubuntu GUI, so it could be that (LXqt+XMonad).

>Pixel Android phone in Firefox, one-finger double tap on text does the fit to viewport.

I'm very confused, can you clarify what makes this different from the gesture that highlights text?

Edit: it appears that "request desktop site" makes it fit the viewport, whereas using the mobile view it's I guess already fitting the viewport so it highlights the text. The strange thing is in the desktop view, if I pinch zoom after fitting the viewport and do it again, it zooms out, whereas the mobile view still highlights the text. Which kinda makes sense, since mobile view it's fairly likely that you zoomed in to highlight the text more accurately, though it's weird that it's so inconsistent.

Re: Artisanal handcrafted Git repositories

#62

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.

If I'm not mistaken, gitoxide is attempting to not only be feature complete, but also the fastest. Both of which reduce development velocity

Re: Artisanal handcrafted Git repositories

#63
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…

I honestly tend to think that products with "handmade" quality actually have worse quality. I'll usually chose software which is industrially produced and vetted versus some guy's weekend project.

Re: Artisanal handcrafted Git repositories

#64
post #53

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.

IIRC it already uses content defined chunking for finding object deltas.

Not really, which is why bup had to implement their own CDC instead of using Git's storage directly.

Re: Artisanal handcrafted Git repositories

#66
post #25

Earlier quoted context omitted.

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

libgit2 has a ton of compatibility issues, especially around authentication, that make it only useful in some circumstances. (gitoxide is a similar project but in Rust, it's not ready for the big time either, though it keeps on getting better!)

If it's about auth, then I'd say that's more about the "edges" / porcelain than the core. The claim about git is that you can re-implement the core data structures pretty easily, and they are stable

While new functionality can be implemented on top of this stable base. It doesn't surprise me that it's hard to re-implement all of git, including the network protocols, but that's a different thing than the core

This thread has some good info about the core, including the tree encoding issue brought up by bradfitz, but it still seems to be approximately true ... e.g. perhaps compared to hg

I also remember that JGit is a very complete re-implementation of git, done by a git core dev, and used in Android infrastructure, etc. This was well over 10 years ago at this point, maybe 15

https://github.com/eclipse-jgit/jgit

Re: Artisanal handcrafted Git repositories

#67
post #39

Earlier quoted context omitted.

On my iPad in Safari and Pixel Android phone in Firefox, one-finger double tap on text does the fit to viewport. On my Ubuntu laptop in Chrome, I couldn’t find a way to make it work - even tapping the touchscreen didn’t work. But I’m not using the stock Ubuntu GUI, so it could be that (LXqt+XMonad).

>Pixel Android phone in Firefox, one-finger double tap on text does the fit to viewport. I'm very confused, can you clarify what makes this different from the gesture that highlights text? Edit: it appears that "request desktop site" makes it fit the viewport, whereas using the mobile view it's I guess already fitting the viewport so it highlights the text. The strange thing is in the desktop view, if I pinch zoom af…

On both my iPad and Android, to highlight text I press and hold. I can't find a way to make double-tap do that.

Re: Artisanal handcrafted Git repositories

#68
post #66

Earlier quoted context omitted.

libgit2 has a ton of compatibility issues, especially around authentication, that make it only useful in some circumstances. (gitoxide is a similar project but in Rust, it's not ready for the big time either, though it keeps on getting better!)

If it's about auth, then I'd say that's more about the "edges" / porcelain than the core. The claim about git is that you can re-implement the core data structures pretty easily, and they are stable While new functionality can be implemented on top of this stable base. It doesn't surprise me that it's hard to re-implement all of git, including the network protocols, but that's a different thing than the core This thr…

Yes, I think that the core is much better, all I mean to say is that 100% compat is difficult.

Re: Artisanal handcrafted Git repositories

#69
post #67

Earlier quoted context omitted.

>Pixel Android phone in Firefox, one-finger double tap on text does the fit to viewport. I'm very confused, can you clarify what makes this different from the gesture that highlights text? Edit: it appears that "request desktop site" makes it fit the viewport, whereas using the mobile view it's I guess already fitting the viewport so it highlights the text. The strange thing is in the desktop view, if I pinch zoom af…

On both my iPad and Android, to highlight text I press and hold. I can't find a way to make double-tap do that.

Are you using Chrome or Firefox, on Android?

Re: Artisanal handcrafted Git repositories

#70
post #42

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/

There is also James Coglan's "Building git" book that I just went through and can vouch for its quality.

Seconded, it was one of the most enjoyable tech books I've read in recent years.
Post reply on HN