Building Sourcegraph - A large-scale code search engine in Go (2014)
text.sourcegraph.com
text.sourcegraph.com
To try out Sourcegraph, sign up at https://sourcegraph.com and it'll take you on the tour.
Also, I'll shamelessly plug our Chrome extension, which "Sourcegraphifies" GitHub (adding jump-to-def and cross-references): https://chrome.google.com/webstore/detail/sourcegraph-for-gi.... It's the #1 Chrome extension for GitHub.
Finally, check out https://sourcegraph.com/beta to get early access to some new languages and super neat features we're adding soon.
Thank you.
But I do not want to invest myself in your ecosystem just to see it die eventually. I want to pay you because I do not want the service to die. Do you plan to serve ads in the free tier ? Why not have the pricing more dynamic ?
I am not sure as to which approach is better for the average user, but I do think that if you are using a language currently supported you should give it a try and compare to one of the afore mentioned solutions.
Definitely going to be following the blog. Thanks for sharing!
apt-get install docker protobuf-compiler
mkdir foo
cd foo
export GOPATH=`pwd`
export PATH=${PATH}:`pwd`/bin
mkdir bin
mkdir -p src/sourcegraph.com/sourcegraph
cd src/sourcegraph.com/sourcegraph
git clone https://sourcegraph.com/sourcegraph.com/sourcegraph/sourcegraph sourcegraph
cd sourcegraph.com/sourcegraph/sourcegraph
make
make serve-dev
good luck.It doesn't actually run for me, just crashes, but you'll get kind of... most of the way there with that.
(oh, you probably dont need protobuf unless you run `make generate`)
Try out jumping to definition and seeing hovers at https://sourcegraph.com/github.com/gorilla/mux/-/blob/mux.go.... This helps you understand code that you're browsing.
Check out global usage examples and refs of any function, such as those at https://sourcegraph.com/github.com/golang/go/-/info/GoPackag.... You can get to this page by right-clicking on tokens in the code view above. This helps you quickly figure out how to use a piece of code and see best practices.
Finally, the code search is also semantic and is ranked by popularity. Try it out at https://sourcegraph.com/search?q=new+http+request.
Code analysis and search at this scale is tough, but we're going to do it right, because it'll help developers learn more quickly, write better code, and reuse more existing stuff. (We're not totally there yet, but if you want to help by adding language support or joining our team, email me at sqs@sourcegraph.com.)
James from Sourcegraph here. Right now we don't offer a self-hosted solution and won't have one for the foreseeable future. Please email me your contact details so I can let you know when we do though.
james@sourcegraph.com
Thanks, James
Right now I am coding in Obj-C, Elixir, Ruby, and doing web development in React. That is my day to day so this seems quite limited.