Live data from Hacker News

Sourcegraph Server 2.4: free, powerful search for private code

about.sourcegraph.com

11–20 of 89 posts

Re: Sourcegraph Server 2.4: free, powerful search for private code

#11

Why should we use this instead of the github search (for our private repos) ?

I mean honestly if you are happy with github search you should stay where you are.

Personally, I find it to be absolutely horrendous. It’s so much faster to clone the repo and search it locally.

Re: Sourcegraph Server 2.4: free, powerful search for private code

#12

Very cool, will give it a try later for our gitlab repos. Is gitlab supported? Also, I cannot find the code for sourcegraph on github. It used to be available under a fair source license. Anyone have a link to the code?

Yes, Sourcegraph supports GitLab repositories! Check out https://about.sourcegraph.com/docs/server/config/repositorie... and the section right below for auth. You'll need to add and authenticate them one-by-one in the config. Soon we'll be add direct GitLab integration like we have for GitHub and GitHub Enterprise, which will sync all (or selected) repositories using the GitLab API.

The source code is not public for this version. I think that source-available but non-open-source licenses are an idea ahead of their time when applied to user-facing software like Sourcegraph. I hope that changes, and we'd love to make Sourcegraph source-available again, but it actually introduced (rather than eliminated) questions in the process of companies adopting Sourcegraph. I'll probably blog about this soon because it's something I care about a lot.

Re: Sourcegraph Server 2.4: free, powerful search for private code

#13
post #3

Sourcegraph CEO here. Thanks for this post. We packed a lot of stuff into 2.4: faster, more powerful code search, Google Alerts-style search monitoring, diff searches, and more. It’s now free on a single server for any number of users and repositories. Happy to answer questions here.

> Google Alerts-style search monitoring

I expected email notifications but all I managed to do was to add the saved queries on the home page. Am I missing something?

Re: Sourcegraph Server 2.4: free, powerful search for private code

#14

Why should we use this instead of the github search (for our private repos) ?

Our users prefer Sourcegraph over GitHub for code search for multiple reasons:

- Regular expression searches

- Exact searches (no ignoring punctuation, for example)

- Searches on any commit or branch, not just recently indexed master

- Diff searches (see https://about.sourcegraph.com/blog/introducing-sourcegraph-s...)

- Overall faster, more powerful searches and filtering capabilities

- Code intelligence (go-to-definition, find-references, hovers, etc.)

Not everyone needs these things. But users who do need them say that they save a lot of time and make them more productive.

At Google, for example, they have a similarly advanced internal code search system that developers love (see https://static.googleusercontent.com/media/research.google.c... and https://docs.google.com/document/d/1LQxLk4E3lrb3fIsVKlANu_pU... for research/numbers).

If your needs are met by GitHub's search, then I would still suggest using the Sourcegraph Chrome extension (also available for Firefox), which adds code intelligence to code you view on GitHub: https://chrome.google.com/webstore/detail/sourcegraph-for-gi....

Re: Sourcegraph Server 2.4: free, powerful search for private code

#15
post #13
post #3

Sourcegraph CEO here. Thanks for this post. We packed a lot of stuff into 2.4: faster, more powerful code search, Google Alerts-style search monitoring, diff searches, and more. It’s now free on a single server for any number of users and repositories. Happy to answer questions here.

> Google Alerts-style search monitoring I expected email notifications but all I managed to do was to add the saved queries on the home page. Am I missing something?

Email and other kinds of notifications for saved queries are coming in the next release in early Feb. Email me (sqs@sourcegraph.com) if you'd like to preview them sooner. I agree they are crucial for this feature to feel truly complete and awesome.

The homepage does show a nice sparkline and results summary, though. Easy to see at a glance if new secret keys, deps, etc., are added to your repositories if you set up the queries.

Re: Sourcegraph Server 2.4: free, powerful search for private code

#16
post #12

Very cool, will give it a try later for our gitlab repos. Is gitlab supported? Also, I cannot find the code for sourcegraph on github. It used to be available under a fair source license. Anyone have a link to the code?

Yes, Sourcegraph supports GitLab repositories! Check out https://about.sourcegraph.com/docs/server/config/repositorie... and the section right below for auth. You'll need to add and authenticate them one-by-one in the config. Soon we'll be add direct GitLab integration like we have for GitHub and GitHub Enterprise, which will sync all (or selected) repositories using the GitLab API. The source code is not public for…

> I'll probably blog about this soon because it's something I care about a lot.

Yes, please! I have seen your videos and read a lot about your thoughts on this subject.

Another question, if you don't mind: does sourcegraph have a forum or irc/slack? A quick search for sourcegraph+slack ends up finding many hits.. for your name, lol.

Re: Sourcegraph Server 2.4: free, powerful search for private code

#17
post #12

Earlier quoted context omitted.

Yes, Sourcegraph supports GitLab repositories! Check out https://about.sourcegraph.com/docs/server/config/repositorie... and the section right below for auth. You'll need to add and authenticate them one-by-one in the config. Soon we'll be add direct GitLab integration like we have for GitHub and GitHub Enterprise, which will sync all (or selected) repositories using the GitLab API. The source code is not public for…

> I'll probably blog about this soon because it's something I care about a lot. Yes, please! I have seen your videos and read a lot about your thoughts on this subject. Another question, if you don't mind: does sourcegraph have a forum or irc/slack? A quick search for sourcegraph+slack ends up finding many hits.. for your name, lol.

Cool! We don't have a public Slack/IRC yet, but it seems like something we might do in the future. In the meantime, we're all pretty responsive on Twitter and on email.

And yeah, my last name being Slack does create some confusing moments sometimes. :)

Re: Sourcegraph Server 2.4: free, powerful search for private code

#19
post #14

Why should we use this instead of the github search (for our private repos) ?

Our users prefer Sourcegraph over GitHub for code search for multiple reasons: - Regular expression searches - Exact searches (no ignoring punctuation, for example) - Searches on any commit or branch, not just recently indexed master - Diff searches (see https://about.sourcegraph.com/blog/introducing-sourcegraph-s... ) - Overall faster, more powerful searches and filtering capabilities - Code intelligence (go-to-defi…

Is code intelligence a paid upgrade for all languages?

Re: Sourcegraph Server 2.4: free, powerful search for private code

#20
post #14

Earlier quoted context omitted.

Our users prefer Sourcegraph over GitHub for code search for multiple reasons: - Regular expression searches - Exact searches (no ignoring punctuation, for example) - Searches on any commit or branch, not just recently indexed master - Diff searches (see https://about.sourcegraph.com/blog/introducing-sourcegraph-s... ) - Overall faster, more powerful searches and filtering capabilities - Code intelligence (go-to-defi…

Is code intelligence a paid upgrade for all languages?

Yes, code intelligence (go-to-definition, find references, hovers, etc.) on Sourcegraph Server is a paid upgrade for all languages.

But you can try/use it for free on open-source projects using our Chrome extension (to get it on code you view on GitHub) at https://chrome.google.com/webstore/detail/sourcegraph-for-gi... or on our public site directly at https://sourcegraph.com/github.com/gorilla/websocket/-/blob/... (for example).

Post reply on HN