Hacker News new | past | comments | ask | show | jobs | submit login

Hey, Ben! Yes, that is a neat source file that shows how Sourcegraph does really fast live code search. (Sourcegraph has hybrid search so you get fast search over any repository and any commit, without needing to wait for indexing. It'll hit an index on the default branch, but for any historical commit/branch that isn't indexed, it has a super-optimized live searcher. We sponsored some contributions to the Go stdlib to improve this, in fact.)

BTW, you can pull up that file quickly on Sourcegraph:

1. Search for repo:ph/sourcegraph textsearch.go — https://sourcegraph.com/search?q=repo%3Aph%2Fsourcegraph+tex...

2. Go to the first file — https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-...

3. Now click around! You get code intelligence: go-to-definition, find-references, hover tooltips, etc. It works on any open-source repository, and on your internal repositories if you spin up your own Sourcegraph instance.

As for licensing, we went with open-source using the Apache License because that's what makes it as easy as possible to get user #1 and user #20 inside of companies. See https://twitter.com/sqs/status/1046913901688807424 for a bit more info there.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: