Live data from Hacker News

Moving from GitHub to Codeberg, for lazy people

unterwaditzer.net

381–385 of 385 posts

Re: Moving from GitHub to Codeberg, for lazy people

#381

Earlier quoted context omitted.

https://blog.cloudflare.com/ai-labyrinth/ A bit like this? ( iocaine is newer)

If I think about it, I find it awful. The fact that we need to put junk in our own stuff just for crawlers does not sit well with me.

Yup, it's a clown world.

Any functioning society would deal with the offenders directly and had this stopped before it became an issue for most sites.

Re: Moving from GitHub to Codeberg, for lazy people

#382

Earlier quoted context omitted.

This is one reason why most crawlers ignore robots.txt now. The other reason is that bandwidth/bots are cheap enough now that they don't need web admins to help them optimize their crawlers

> This is one reason why most crawlers ignore robots.txt now. I don't buy that for a second. Those not obeying robots.txt were doing so either because they were malicious (they wanted everything and wouldn't be told “please don't plough through these bits”) or stupid (not knowing any better) or both. Anyone who was obeying robots.txt isn't going to start ignoring it because we've put honeypots there. Why would they t…

> Web admins are not trying to optimize their crawlers, they are trying to stop their crawlers breaking sites.

Actually they often do and that's one of the original purposed of robots.txt - to get search engines to stop wasting time on indexing worthless crap like endless dynamically generated pages. It's only relatively recently that most crawlers had a hostile relationship with website operators.

Re: Moving from GitHub to Codeberg, for lazy people

#383
post #20

Earlier quoted context omitted.

My own git server has been hit severely by scrapers. They're scraping everything . Commits, comparisons between commits, api calls for files, everything. And pretty much all of them, ByteDance, OpenAI, AWS, Claude, various I couldn't recognize. I basically just had to block all of them to get reasonable performance for a server running on a mini-pc. I was going to move to codeberg at some point, but they had downtime…

Anyone actually scraping git repos would probably just do a 'git clone'. Crawling git hosts is extremely expensive, as git servers have always been inadvertent crawler traps. They generate a URL for every version of every file on every commit and every branch and tag, and if that wasn't enough, n(n+1)/2 git diffs for every file on every commit it has exited on. Even a relatively small git repo with a few hundred file…

If you are hosting your own git repost you don't really need to provide diffs between any arbitrary revision - just pregenerate diffs between each commit and its parent(s) and tell people to clone the repo if they want anything more fancy. Maybe add a few more cases like diffs between releases if you are feeling nice.

And you also don't need to host a version of each file for each commit - those should just be HTTP redirects to a unique URL for that version of the file, e.g. to the commit that last changed it - or just don't provide it at all since most people are only going to be interested in branches anyway and others can clone the repo.

The same goes for many other expensive operations that other websites (including blogs and forums) do that cause the website to go down when a bad crawler finds it. It's almost all self-inflicted pain that doesn't even provide meaningful features to real users compared to a better designed website with a finite number of pages that you can even host statically if you want.

Re: Moving from GitHub to Codeberg, for lazy people

#385
post #348
post #281

Earlier quoted context omitted.

I find CI very valuable even on my solo projects. > what is CI (in practice today, not in theory)? It's just a set of commands that run on a remote machine and then the output of those commands is displayed in the browser and it also influences what other commands may or may not run. What exactly is the big deal here? The key is hermetically/reproducibly - you don't want to run commands on some random machine, you wa…

These days the reproducibility part is trivial with a Docker container, as much as it's a mess of a technology.

Docker containers are great until you need to upgrade something. Then what do you do, rebuild the container and hope that none of the things that change break anything in a surprising way?
Post reply on HN