Live data from Hacker News

Sourcegraph Server 2.4: free, powerful search for private code

about.sourcegraph.com

81–89 of 89 posts

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

#81
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 wasn't able to get the netrc file working, my password does contain spaces which seems to be an issue for netrc parsers.

In fact looks like I'm not able to get netrc or SSH keys working.

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

#82
post #79
post #77

For people interested in searching code using an open source solution, you might be interested in Zoekt too, github.com/google/zoekt. There is a demo site where you can search 30G of source code (including the Linux kernel, Android and Chrome) supporting regular expressions, and file name search: https://cs.bazel.build/?q=%20 For example, https://cs.bazel.build/search?q=+r%3Atorvalds+craz%5Byi%5D&n... looks for craz[…

Zoekt looks very interesting. We'll consider adding it to GitLab in https://gitlab.com/gitlab-org/gitlab-ce/issues/41925 and https://gitlab.com/gitlab-org/gitlab-ce/issues/41450 Please comment in those issues if you have thoughts about if we can use it. BTW I know you're in Munich now but I wanted to say hi from your hometown Utrecht.

Thanks for commenting in https://gitlab.com/gitlab-org/gitlab-ce/issues/41450#note_54...

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

#83
post #57

Earlier quoted context omitted.

I don't really get the pricing on code intelligence. So if I have 50 users and want Javascript, Python, and PHP, that's $750/month, even if 25 users only ever use Python?

If you want 3 or more languages, then contact us (at https://about.sourcegraph.com/pricing ) and we can give you a package discount. Overall, if pricing is a concern, I'd love to learn more. I'll email you.

I think it really boils down to a perception issue. I think more people would be happy paying a flat fee for a language package then deal with the angst of "wasted" money paying for languages that some users don't leverage. The package as it currently stands would "work" if I could assign languages to users and have that reflect back up to pricing, but that's cumbersome to manage from a customer perspective and sounds pretty painful to implement from the provider perspective.

It may be useful to consider a baseline two-language deal, as Javascript + one server side language covers a huge amount of use cases.

That said, you cover 2 out of 3 of the following scenarios pretty well with the existing model, I just happen to fall into the third, which is probably the smallest sector for you guys anyway:

1 - Small startups, probably standardized on one or two languages, 8-10 people 2 - Larger orgs (200+) where the cost is negligible compared to revenue. 3 - Medium-sized, microservice/squad based orgs, with heterogenous language support but focused within teams.

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

#84
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.

Just tried this out on some of our code bases. It appears to fail to generate snippets/highlights for all files that contain non-Unicode text, e.g. "Müller" in ISO-8859-1. Known issue? Many queries times out for me although I'm running it on a pretty beefy AWS c5 instance with SSDs. Queries such as "type:diff" doesn't seem to work at all on my code bases. It also does not appear to cache any data from previous runs o…

Sorry to hear that it didn't work out of the box for your repositories. I've filed the non-Unicode text issue here: https://github.com/sourcegraph/issues/issues/32

We're actively working on improving the performance of diff search, but I would expect other types of queries to complete quickly. Would you mind sharing more about the size / characteristics of your repositories? Feel free to email me at beyang@sourcegraph.com if a private channel is better.

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

#85
post #74
post #73

How does this differ from OpenGrok https://oracle.github.io/opengrok/ ?

Opengrok supports C/C++.

Code search on Sourcegraph Server is actually language agnostic.

Here's an example of a C++ search query: https://sourcegraph.com/search?q=repo:google/leveldb+FilterB...

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

#87
post #74

Earlier quoted context omitted.

Opengrok supports C/C++.

Code search on Sourcegraph Server is actually language agnostic. Here's an example of a C++ search query: https://sourcegraph.com/search?q=repo:google/leveldb+FilterB...

Opengrok implements hyperlinking for C/C++ code which is the primary productivity multiplier since it allows you to easily jump around callgraphs. That functionality is sorely missing here (unless i am missing this feature somehow).

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

#88
post #84

Earlier quoted context omitted.

Just tried this out on some of our code bases. It appears to fail to generate snippets/highlights for all files that contain non-Unicode text, e.g. "Müller" in ISO-8859-1. Known issue? Many queries times out for me although I'm running it on a pretty beefy AWS c5 instance with SSDs. Queries such as "type:diff" doesn't seem to work at all on my code bases. It also does not appear to cache any data from previous runs o…

Sorry to hear that it didn't work out of the box for your repositories. I've filed the non-Unicode text issue here: https://github.com/sourcegraph/issues/issues/32 We're actively working on improving the performance of diff search, but I would expect other types of queries to complete quickly. Would you mind sharing more about the size / characteristics of your repositories? Feel free to email me at beyang@sourcegrap…

Thanks, I'll keep an eye on this.

Three examples: 300MB size, 600 branches, 25k commits. 250MB, 250 branches, 15k commits. 80MB, 100 branches, 4k commits. Textwise it is a mix of Golang, JS and Python. Most of the repo size comes from binary resources (images etc).

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

#89
post #73

How does this differ from OpenGrok https://oracle.github.io/opengrok/ ?

Wow, that's a pretty awful UI. The default search form screams "advanced search" from the late 90ies. The compare example looks pretty dated too. I think Kibana and Sourcegraph are on the right track with a single input field that accepts field:value type searches. They're great once you've learned them.
Post reply on HN