News for hackers. Stuff that matters.
Re:Firefox Moves to GitHub by qwertox on Tuesday May 13, 2025 @02:42AM (#43970150)
In Codeberg, how does one even search for files containing a given string? Probably the #1 thing I do on GitHub is searching for files in a project containing a given string.
Re:Firefox Moves to GitHub by sph on Tuesday May 13, 2025 @02:49AM (#43970190)
Given how terrible GitHub search in files is, what I usually do is clone the repo and run ripgrep.
Re:Firefox Moves to GitHub by nicce on Tuesday May 13, 2025 @03:18AM (#43970391)
If the repository is indexed, there isn’t really competitive search. You can find blog posts about it. They actually used ripgrep at some point. (not anymore I guess because too slow?).

Edit: ripgrep was just a test

More: https://github.blog/engineering/the-technology-behind-github...

Re:Firefox Moves to GitHub by mrweasel on Tuesday May 13, 2025 @03:42AM (#43970500)
But Github is actually pretty good at searching for something across all files in a repo.
Re:Firefox Moves to GitHub by IshKebab on Tuesday May 13, 2025 @06:05AM (#43971336)
Not remotely as good as grep.app.
Re:Firefox Moves to GitHub by qwertox on Tuesday May 13, 2025 @05:26PM (#43977904)
I was shocked at how fast I was able to find "Open an audio file and read as mono waveform, resampling as necessary" of whisperX in audio.py on grep.app.

It was instantaneous. But where do I go from there? I cannot navigate through the code. It shows me where I can find that string, but that's it. I also cannot look at blame to see when that line got edited.

Though thanks a lot for bringing this onto my radar.

Re:Firefox Moves to GitHub by eXpl0it3r on Tuesday May 13, 2025 @03:00AM (#43970268)
Not sure when you tried last, but it's gotten a lot better over the years. If you need something from the latest master, you'll be able to find it.
Re:Firefox Moves to GitHub by jimbob45 on Tuesday May 13, 2025 @02:50AM (#43970201)
That exact exercise filled a quarter of my workday today.
Re:Firefox Moves to GitHub by throwaway290 on Tuesday May 13, 2025 @05:29AM (#43971145)
I'm not being sarcastic but how do you do it on github?;) it basically never works

Not only results are incomplete but it seems once they went into training LLMs on all code they host they made sure no one else can do the same easily and so now everything is madly rate limited.

Every time I just clone and grep.