Live data from Hacker News

Show HN: Search code in GitHub repos using regular expressions

grep.app

141–150 of 165 posts

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

#142
post #57

Earlier quoted context omitted.

Actually, It would more be like: "How I failed at 3 interviews, despite being directly contacted by execs."

New game show idea: CTOs from software companies interview at other software companies.

this would be awesome, i would watch this!

i bet they would all go back home and immediately fix their own hiring practices.

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

#143

This is awesome! @danfox, sent you an email though commenting here too. I'm the CTO @ GitHub. Would love to talk to you about this and other things we are building in this area at GitHub. Feel free to email direct to jason at github.com

I do enjoy moments like these on hacker news when someone presents a project for X and the CTO of X shows up and wants to talk. It shows how directly of an impact one can potentially have in this community. I hope this means we’re getting grep searches for github soon. Cheers.

If OP's goal was to get a job at Github, I'd say this was very well played.

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

#144
post #49

Earlier quoted context omitted.

For GitHub, I would have to imagine only being able to search public repos with regexp would be good enough. GitHub has many strategies, but the main one is, they want to maintain, if not, expand their open source mind share. The more reasons you give people to go to GitHub, the better off they will be in the future. So I do agree with you that as a commercial solution, this may not be viable, but for GitHub's public…

That might well be true but to scale this type of service to all public repos with decent latency and update ratio is a major technical challenge and likely very costly to maintain.

This is my personal observation, but GitHub appears to be a much more ambitious company, now that they are part of Microsoft. With a CEO that understands both the open source and the enterprise world and with Microsoft cash at hand, I don't think spending money to make search better would cause any concerns.

Doing technical things that GitLab, Bitbucket, etc. can't is quite valuable. It also helps with recruiting, since smart people want to work on difficult problems.

It may well be costly to maintain, but I think the operating cost would be well within the realm of an incumbent that wants to maintain and expand their reach. I've been studying the code hosting space for quite sometime and GitHub, from an outsiders perspective, appears to be much more focused and ambitious, which should cause serious concerns for GitLab.

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

#146
post #136

Earlier quoted context omitted.

Sourcegraph CEO here. You can definitely search all languages (and all files, and cross-repo, and all commits, etc.) with Sourcegraph.

Great! Do you have a live demo? like the one being Showed HN?

Here ya go: https://sourcegraph.com/search?q=open+repo:edwinyzh+lang:pas... (search) and https://sourcegraph.com/github.com/edwinyzh/EditBone@d9ec56a... (find references in Pascal)

Sourcegraph.com is universal code search and navigation across all public repositories. To use it on private code inside your company, run a self-hosted instance at https://docs.sourcegraph.com/#quickstart.

We've been so focused on internal code search for companies. See https://about.sourcegraph.com for some of the logos of well-known companies whose devs all use Sourcegraph. Because of that, our "public demo" site at Sourcegraph.com has a few limitations that we're working on lifting, such as only searching across a subset of popular repositories by default (unless you specify a specific subset with `repo:` in the query).

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

#147

Earlier quoted context omitted.

I do enjoy moments like these on hacker news when someone presents a project for X and the CTO of X shows up and wants to talk. It shows how directly of an impact one can potentially have in this community. I hope this means we’re getting grep searches for github soon. Cheers.

If OP's goal was to get a job at Github, I'd say this was very well played.

It would certainly be an expensive play. When he mentioned a 20 core system, I'm assuming it is some VM system, since I don't know of any 20 core CPUs. I'm guessing he is using DigitalOcean and he has two of them, so he is looking at $1000 a month in hosting cost.

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

#148

This is awesome! @danfox, sent you an email though commenting here too. I'm the CTO @ GitHub. Would love to talk to you about this and other things we are building in this area at GitHub. Feel free to email direct to jason at github.com

How about the ability to search code on forks? GitLab allows it. At least have feature parity? Thanks.

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

#149

Earlier quoted context omitted.

github's code search is notoriously bad, feels like a huge missed opportunity. Nice to see you guys reaching out to other people working in this area.

The fact that you can’t search for file names is the funniest part to me.

If you fork a repo, you can't search on the forked repo. Confirmed grep.app behaves the same way as github search.

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

#150
post #137

Earlier quoted context omitted.

github's code search is notoriously bad, feels like a huge missed opportunity. Nice to see you guys reaching out to other people working in this area.

Agree. You can’t even do a literal search with symbols. I think there were better solutions on the early 2000’s.

[deleted]
Post reply on HN