Live data from Hacker News

Sourcegraph Server 2.4: free, powerful search for private code

about.sourcegraph.com

61–70 of 89 posts

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

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

Do you have a non-docker installation? The equivalent of gitlab's omnibus would be awesome.

Particularly for things like postgres configuration etc.

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

#62
post #61
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.

Do you have a non-docker installation? The equivalent of gitlab's omnibus would be awesome. Particularly for things like postgres configuration etc.

We'll definitely consider it. What benefits would you get from having non-Docker? (Not saying there aren't any, just curious what your biggest needs are.)

Re: PostgreSQL configuration, is it that you want to be able to manage and back up the data yourself (not using the Docker container's internal PostgreSQL), or is it a tuning/performance concern, or something else?

BTW, someone else down-thread asked for this, too (https://news.ycombinator.com/item?id=16121182).

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

#63
post #46

Earlier quoted context omitted.

OS 10.13.3 (17D34a) and Docker 17.12.0-ce-mac46 (21698). I don't think it's you, Docker is just still a bit flaky there, which is why I'm asking. I'll try it with something smaller.

Docker for Mac has known issues with file system. You may want to try docker-sync for the volumes.

[deleted]

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

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

What benefits does it have over git grep, esp. if I'm using a monorepo? What new patterns/possibilities does it enable? Is it maybe speed somehow? (I assume it could then be more "live search/exploration"/rapid exploration than git grep - but OTOH wouldn't it require some slow reindexing after each change?)

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

#66
post #5
post #4

Earlier quoted context omitted.

Do you support mercurial? If not, is it planned?

Sourcegraph only supports Git natively, not Mercurial. You could use Sourcegraph with Git mirrors of your Mercurial repository, if that is appealing, and we'd definitely consider adding in some extra translation work so that the Mercurial metadata embedded in the Git mirror repository would be respected. Does your code host (or do you internally) already have a Git mirror of your repository?

I wonder if the work done for git-cinnabar, which maps a Mercurial repository to something git understands, could help at all here?

https://github.com/glandium/git-cinnabar

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

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

[deleted]

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

#69
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…

Awesome to hear that GitLab support is coming. Please let me know if we can he help.

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

#70
post #65
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.

What benefits does it have over git grep , esp. if I'm using a monorepo? What new patterns/possibilities does it enable? Is it maybe speed somehow? (I assume it could then be more "live search/exploration"/rapid exploration than git grep - but OTOH wouldn't it require some slow reindexing after each change?)

For code search on a monorepo, Sourcegraph is often faster in UX and execution time for a lot of tasks. It's easier/faster to filter the results than `git grep`, you can see more on your screen, it's easier to jump to the full file, it's easier to see blame info for particular lines, etc.

Sometimes while coding you just need to find where something is so you can edit it or jump to it. In that case, your editor's search or `git grep` is definitely better. But when you're looking for example code, reviewing/reading code, or debugging code, it's often better to do it in a UI that's more optimized for those tasks than `git grep` and your editor.

And then Sourcegraph also has code intelligence, code host browser extension integrations, saved queries, etc., beyond the basic code search.

Google has a massive monorepo, and they have a similarly advanced code search system that they describe publicly. It's very well loved and frequently used by their developers. If you know any ex-Googlers (or ex-Facebookers, who have a similar system), ask them, and check out https://static.googleusercontent.com/media/research.google.c... and https://docs.google.com/document/d/1LQxLk4E3lrb3fIsVKlANu_pU....

BTW, Sourcegraph doesn't use an index for search. We heavily optimized the performance of searching an arbitrary revision that has never been indexed. So no slow reindexing after each change.

Post reply on HN