Live data from Hacker News

Show HN: Search code in GitHub repos using regular expressions

grep.app

1–10 of 165 posts

Re: Show HN: Search code in GitHub repos using regular expressions

#2
Impressive! Really fast, full featured code search across a huge corpus.

1. How did you build the index? Did you use a GitHub dump of some sort? How often do you refresh it?

2. Is it Elasticsearch or similar or a completely custom engine?

3. What kind of RAM/CPU are you using to power it?

4. Any plans to open source the code or commercialize the technology?

I could absolutely imagine paying for a private code search engine like this to run against a large internal company codebase spread across many repositories.

Re: Show HN: Search code in GitHub repos using regular expressions

#3
I wonder how this compares to Debian Code Search (https://codesearch.debian.net/about) and Russ Cox’s code search tools (https://swtch.com/~rsc/regexp/regexp4.html).

Obviously the source material is different (Debian packages vs GitHub repos) and grep.app also uses re2, but that is all I can see from a look at the “about” blurb.

Re: Show HN: Search code in GitHub repos using regular expressions

#8
I would say this needs a list of indexed repos and mainly an explanation of how it exactly works to be usable (how's the index build and how often it's refreshed, what types of files are being indexed, etc.). Otherwise, there's no much value in searching in an unknown data, is it?

Anyway, to not only criticize, good job! It's definitely one of GitHub's missing features. And I can imagine it's not an easy job to build something like that. But as I wrote, it really has to be well explained to be actually usable.

Re: Show HN: Search code in GitHub repos using regular expressions

#10
post #5

Curious that I found many "secret forks" of my stuff, but none of my repos is directly indexed.

Can you elaborate how you found them?

I looked for strings that I am sure only appear in my code, and I found several copies of them, but not mine.
Post reply on HN