Live data from Hacker News

I made my own Git

tonystr.net

71–80 of 184 posts

Re: I made my own Git

#71
post #57

Earlier quoted context omitted.

i run a cgit server on an r720 in my apartment with my code on it and that puppy screams whenever sam wants his code blocking openai ips did wonders for the ambient noise levels in my apartment. they're not the only ones obviously, but they're they only ones i had to block to stay sane

Have you considered putting it behind Anubis or an equivalent?

Yes, but I haven't and would prefer not to

Re: I made my own Git

#72
post #27

Earlier quoted context omitted.

Interestingly, I looked at github insights and found that this repo had 49 clones, and 28 unique cloners, before I published this article. I definitely did not clone it 49 times, and certainly not with 28 unique users. It's unlikely that the handful of friends who follow me on github all cloned the repo. So I can only speculate that there are bots scraping new public github repos and training on everything. Maybe tha…

Time to start including deliberate bugs. The correct version is in a private repository.

while I think this is a fun idea -- we are in such a dystopian timeline that I fear you will end up being prosecuted under a digital equivalent of various laws like "why did you attack the intruder instead of fleeing" or "you can't simply remove a squatter because its your house, therefore you get an assault charge."

A kind of "they found this code, therefore you have a duty not to poison their model as they take it." Meanwhile if I scrape a website and discover data I'm not supposed to see (e.g. bank details being publicly visible) then I will go to jail for pointing it out. :(

Re: I made my own Git

#73

If you ever wonder how coding agents know how to plan things etc, this is the kind of article they get this training from. Ends up being circular if the author used LLM help for this writeup though there are no obvious signs of that.

Random aside about training data: One of the funniest things I've started to notice from Gemini in particular is that in random situations, it talks with english with an agreeable affect that I can only describe as.. Indian? I've never noticed such a thing leak through before. There must be a ton of people in India who are generating new datasets for training.

There was a really great article or blog post published in the last few months about the author's very personal experience whose gist was "People complain that I sound/write like an LLM, but it's actually the inverse because I grew up in X where people are taught formal English to sound educated/western, and those areas are now heavily used for LLM training."

I wish I could find it again, if someone else knows the link please post it!

Re: I made my own Git

#74
post #28

Nice post :). It made me think of ugit: DIY Git in Python [1] which is still by far my favorite of this kind of posts. It really goes deep into Git internals while managing to stay easy to follow along the way. [1] https://www.leshenko.net/p/ugit/

in a similar vein; Write yourself a Git was fun to follow https://wyag.thb.lt/

Re: I made my own Git

#75

Nice work! On a complete tangent, Git is the only SCM known to me that supports recursive merge strategy [1] (instead of the regular 3-way merge), which essentially always remembers resolved conflicts without you needing to do anything. This is a very underrated feature of Git and somehow people still manage to choose rebase over it. If you ever get to implementing merges, please make sure you have a mechanism for re…

That's something new to me (using git for 10 years, always rebased)

Re: I made my own Git

#77
post #27

Earlier quoted context omitted.

Interestingly, I looked at github insights and found that this repo had 49 clones, and 28 unique cloners, before I published this article. I definitely did not clone it 49 times, and certainly not with 28 unique users. It's unlikely that the handful of friends who follow me on github all cloned the repo. So I can only speculate that there are bots scraping new public github repos and training on everything. Maybe tha…

I don't really get why they need to clone in order to scrape ...? > It feels weird to think that LLMs are being trained on my code, especially when I'm painfully aware of every corner I'm cutting. That's very much expected. That's why the quality of LLM coding agents is like it is. (No offense.) The "asking LLMs for advice" part is where the circular aspect starts to come into the picture. Not worse than looking at S…

The quality of LLM coding agents is pretty good now.

Re: I made my own Git

#79

Earlier quoted context omitted.

I mean, git is just as "local-first" (a git repo is just a directory after all), and the standard git-toolchain includes a server, so... But yeah, fossil is interesting, and it's a crying shame its not more well known, for the exact reasons you point out.

> I mean, git is just as "local-first" (a git repo is just a directory after all), and the standard git-toolchain includes a server, so... It isn't though, Fossil integrates all the data around the code too in the "repository", so issues, wiki, documentation, notes and so on are all together, not like in git where most commonly you have those things on another platform, or you use something like `git notes` which has…

Those things exist for git too, e.g. git-bug. But the first-class to do it in git is email.

Re: I made my own Git

#80
post #28

Nice post :). It made me think of ugit: DIY Git in Python [1] which is still by far my favorite of this kind of posts. It really goes deep into Git internals while managing to stay easy to follow along the way. [1] https://www.leshenko.net/p/ugit/

I mapped git operations to Neo4j and it really helped me understand how it works.
Post reply on HN