Live data from Hacker News

Sourcegraph is now open source

about.sourcegraph.com

41–50 of 95 posts

Re: Sourcegraph is now open source

#41
post #34
post #3

Sourcegraph CEO here. We're back to work on testing release candidates for Sourcegraph 2.12, coming out this week. I'm especially excited about a few big new features that fit really nicely into the code search and browsing workflows people use Sourcegraph for: - https://github.com/sourcegraph/about/blob/master/projects/ex... - https://github.com/sourcegraph/about/blob/master/projects/so... - https://about.sourcegrap…

Cool! Are you working on IDE plygins, e.g. for Atom?

Yes, we have basic editor/IDE plugins that let you (1) open up Sourcegraph to the current document's file/line and (2) search. Sourcegraph for Atom is in prelrease at https://github.com/sourcegraph/sourcegraph-atom. Other editors are at https://about.sourcegraph.com/docs/integrations/.

What features (other features, if any) are you specifically interested in? It would be awesome if you posted feature request issues on the open-source repos for sourcegraph/sourcegraph or for the editor plugins!

Re: Sourcegraph is now open source

#42

The kind of cross-reference SourceGraph provides is a must have for me after a few years of using a tool like it to understand big projects (I don't use SourceGraph, I use Grok/CodeSearch). Google open sourced a version of Grok some time ago ( https://kythe.io/ ). [1] A quick search also found this `OpenGrok` thing which I assume must be yet another generic indexer [2]. I wonder if there are other popular tools out t…

Some comparisons based on my reading so far:

Adding a language:

  Kythe: a language implementation provides some structured graph
  SourceGraph: a language implementation is an LSP server
Backend logic:

  Kythe: has common logic for querying for relationships
  SourceGraph: simply proxies LSP requests through to the appropriate language server.
Terminology:

  Kythe: An indexer is a language implementation
  SourceGraph: The index means something completely different, it's what keeps track of git repositories.
SourceGraph Architecture: https://github.com/sourcegraph/sourcegraph/blob/master/docs/...

Adding lang server to SourceGraph (probably somewhat stale) https://github.com/sourcegraph/sourcegraph/blob/master/xlang...

Re: Sourcegraph is now open source

#43

Was Fair Source a detour or a stepping stone?

Sourcegrapher here (speaking from my own viewpoint): Stepping stone.

A fully open-source codebase[1] with Apache license is simply a better match as we aim to have a completely open and transparent product and company, where even e.g. planning is done in the open[2].

[1] https://github.com/sourcegraph/sourcegraph [2] https://github.com/sourcegraph/about/blob/master/projects/ab...

Re: Sourcegraph is now open source

#44
post #3

Sourcegraph CEO here. We're back to work on testing release candidates for Sourcegraph 2.12, coming out this week. I'm especially excited about a few big new features that fit really nicely into the code search and browsing workflows people use Sourcegraph for: - https://github.com/sourcegraph/about/blob/master/projects/ex... - https://github.com/sourcegraph/about/blob/master/projects/so... - https://about.sourcegrap…

Hey, couple questions for you:

- We are a pretty small shop, only 3 developers, and looking at Sourcegraph for the first time. We have a full Kubernetes cluster for running some of our production applications and would be happy to run this there. The Sourcegraph site lists a Quickstart instructions and instructions for Data Center. I am unsure what exactly the difference between them is.

- The Docker image for sourcegraph/server (used in your Quickstart instructions) doesn't have a Dockerfile listed anywhere. Is that available somewhere?

- The Quickstart instructions also seem to instruct mounting the Docker socket into the container. I haven't seen anything that explains why that is required.

Basically wondering which version I should be looking to deploy for our small team.

Re: Sourcegraph is now open source

#45
post #7

Holy cow, does this mean I can use source graph as a single dev wanting the features, but not able to upload private source to a cloud service? Fwiw, I'd love to pay as a private user for this type of service. It's just that for many, we can't use a tool that leaks code. I look forward to that day, if it's not today :)

Yes! There is a `docker run` command that will spin up a Sourcegraph instance for you at https://about.sourcegraph.com/docs/ . The self-hosted Docker (or, for big clusters, Kubernetes) deployment method has been there for about 10 months now, and devs/companies really like it. Making it so easy to self-host Sourcegraph was a big win, and going open-source is another step in that direction. What is new is that you can…

Awesome!! So the Go code intelligence is now free for single devs who are self hosting?

Re: Sourcegraph is now open source

#46
So before anything else - congratulations and thank you for releasing something as open source, under a business-friendly licence. Regardless of the project itself, that should be commended.

However. I've never paid much attention before, so perhaps I'm missing something.. but this "just" seems to be the code intelligence you'd expect to find in a good IDE.

Is there more to it? Or is this the 'solution' for the lack of such code intel in the plethora of text editors people use these days?

Re: Sourcegraph is now open source

#47
post #3

Sourcegraph CEO here. We're back to work on testing release candidates for Sourcegraph 2.12, coming out this week. I'm especially excited about a few big new features that fit really nicely into the code search and browsing workflows people use Sourcegraph for: - https://github.com/sourcegraph/about/blob/master/projects/ex... - https://github.com/sourcegraph/about/blob/master/projects/so... - https://about.sourcegrap…

Hey, couple questions for you: - We are a pretty small shop, only 3 developers, and looking at Sourcegraph for the first time. We have a full Kubernetes cluster for running some of our production applications and would be happy to run this there. The Sourcegraph site lists a Quickstart instructions and instructions for Data Center. I am unsure what exactly the difference between them is. - The Docker image for source…

You should definitely use our Quickstart instructions :) You can deploy it to your existing Kubernetes cluster (or any other Docker environment).

- The Quickstart instructions[1] describe how to set up a single-machine single-container Sourcegraph instance, which is recommended for small teams. Our Data Center[2] offering is for large teams and runs Sourcegraph across multiple machines in multiple containers for high availability, scalability, etc.

- The Docker Hub image sourcegraph/server is the official, free Sourcegraph build is called Sourcegraph Core and it includes various paid enterprise features built in so that upgrading to Sourcegraph Enterprise is easy (you only need to supply a license key, rather than migrating to a new Docker image). So, the exact recipe for building it is not open-source. However, we use the same exact Dockerfile in Sourcegraph OSS[4] which you can take a look at.

- Each language server providing code intelligence will run as separate Docker container. By mounting the Docker socket into the container, Sourcegraph can automatically start/stop/manage these containers for you. However, this is not required, and in the case of Kubernetes deployment we do not recommend it, please see the "Manual Installation" section of our Code Intelligence docs[5] for more information.

[1] https://about.sourcegraph.com/docs

[2] https://github.com/sourcegraph/deploy-sourcegraph

[3] https://about.sourcegraph.com/pricing/

[4] https://github.com/sourcegraph/sourcegraph/blob/master/cmd/s...

[5] https://about.sourcegraph.com/docs/code-intelligence/install

Re: Sourcegraph is now open source

#48

So before anything else - congratulations and thank you for releasing something as open source, under a business-friendly licence. Regardless of the project itself, that should be commended. However. I've never paid much attention before, so perhaps I'm missing something.. but this "just" seems to be the code intelligence you'd expect to find in a good IDE. Is there more to it? Or is this the 'solution' for the lack…

Sourcegrapher here -- two main things:

1. Sourcegraph offers the code intelligence your used to in your editor, but instead of being in your editor it is when you are browsing code on your code host (i.e. on GitHub, BitBucket, etc.) Even when reviewing pull requests / diffs!

2. Sourcegraph provides fast, advanced code search across multiple repositories -- akin to what Google and Facebook offer their devs internally. Regular expression support, extremely up-to-date results, etc. You can read more about this here: https://about.sourcegraph.com/docs/search

Re: Sourcegraph is now open source

#49
This is amazing for secure code reviews. I have already spun up and instance and am demoing it for my team.

Is it possible to get Jira integration?

Can you test bitbucket.org connection with credentials some place I am not seeing? I can't tell what is causing it to fail.

Is there a way to add markers in the code and then a queue to clear it? I.E I mark hotspots in the code and want a developer to review them or edit them.

I think a current pain point would be no flat file upload. I understand you only need the .git directory and this was designed with a developer in mind. A lot of times when doing a secure code review we don't get credentials, we just get a current clone of the code. I just tried to do it using the instructions and had some trouble ended up just cloning it on the host machine. I usually get a zip/tar of the code.

Another feature that would be awesome is export a search to a CSV file. I could script together something for Jira integration with that pretty quickly. Something to get the line affected #, branch and filepath.

The subscription to searches was a brilliant idea. I wish I thought of it.

SSO already integrated? Nice man!

I'd make the discussions default too, I discovered that after playing with it for a bit. It's an awesome feature.

I look forward to seeing more of it.

Re: Sourcegraph is now open source

#50
post #49

This is amazing for secure code reviews. I have already spun up and instance and am demoing it for my team. Is it possible to get Jira integration? Can you test bitbucket.org connection with credentials some place I am not seeing? I can't tell what is causing it to fail. Is there a way to add markers in the code and then a queue to clear it? I.E I mark hotspots in the code and want a developer to review them or edit…

Heya, I'm the Sourcegrapher working on the discussions feature[1]. It's great to hear your are enjoying it. We're looking for users to help drive the direction of the feature as it matures and really influence what we work on next with it, so if you're up for it I'd really love to get your feedback on it (as much as you'd be willing to provide). :)

Jira integration -> We're working on it! Mind commenting on https://github.com/sourcegraph/sourcegraph/issues/141 ?

Markers in the code -> If you could archive or dismiss the inline discussion threads (so that they no longer show up in the inline view) would that work well?

Flat file upload -> Could you file a feature request for this at https://github.com/sourcegraph/sourcegraph/issues/new/choose with some more details on how e.g. you would wish to give Sourcegraph access to the code?

Exporting search to CSV -> It might be pretty easy to write something like this with our `src` CLI tool: https://github.com/sourcegraph/src-cli You can get JSON output via e.g. `src search -json 'repogroup:sample error'`

Hope to hear more from you! :)

[1] https://about.sourcegraph.com/blog/discuss-code-and-docs-in-...

Post reply on HN