Live data from Hacker News

Sourcegraph is now open source

about.sourcegraph.com

51–60 of 95 posts

Re: Sourcegraph is now open source

#51
I remember Sourcegraph as being a sort of sidecar to your text editor.

Based on your caret position, it would automatically show you crawled examples of how other people use the functions/classes you are dealing with.

Has that been de-emphasised or gone away?

Re: Sourcegraph is now open source

#53

Hard pass. I dont want an "intelligent" search I just want a search. Will be sticking with Agent Ransack.

To be clear, this isn't "intelligent" search. There is no magic here. It's just fast, advanced code search across multiple repositories (like what Google and Facebook offer their devs internally). This means support for regular expressions, always getting extremely up-to-date results, etc. You can read more about it here: https://about.sourcegraph.com/docs/search

There is "code intelligence", which is a phrase we use to describe IDE-like features such as jump-to-definition, find-references, etc.

Re: Sourcegraph is now open source

#54
post #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 inde…

We (I work at Sourcegraph) actually started off with a similar model to kythe: https://srclib.org/ This project existed before kythe was published, but was based on the ideas talked about pre-dating kythe. If I remember correctly Steve Yegge had some blogpost about solving the MxN problem, which turned into him doing grok at Google.

We ended up switching away from that model for a few reasons:

- At the time it was very costly to essentially index the whole OSS world, when most commit indexes would never be read.

- It was slow to index a codebase for a commit, and most of the work was wasted since a developer would often only look at a handful of files.

- Getting incremental indexing working usually required pretty deep integration into the build tool, so was a lot of work per language which didn't scale.

- A lot of tools using an "indexed" model end up only indexing the master/trunk branch, and you don't get your code intelligence features for PRs/etc.

At some point LSP came onto the scene. We were early adopters making a bet that this would take off. It has, and the list of community created LSP servers is large: https://langserver.org/ It also allowed us to switch from an upfront indexing model, to a model which just encodes user intent. So the underlying LSP server can be as lazy as it wants to be with respect to how it responds to the user == increased perf and reduced resources.

Things like cross-repo references doesn't come with LSP. Many LSP servers assume the user sets the build up correctly. There are also quite a few more assumptions LSP authors make which don't easily translate into an automated server environment. So we have done quite a bit of work to smooth that over / contributed some LSP servers for popular languages.

Seems like you are digging in so you might have more questions. I'll try keep track of this thread, but also feel free to email me keegan at sourcegraph.com or file issues/questions on our repo.

Re: Sourcegraph is now open source

#55
post #47

Earlier quoted context omitted.

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…

That last link is exactly what I needed! Thank you very much for all the information and help. :)

Re: Sourcegraph is now open source

#56
post #51

I remember Sourcegraph as being a sort of sidecar to your text editor. Based on your caret position, it would automatically show you crawled examples of how other people use the functions/classes you are dealing with. Has that been de-emphasised or gone away?

I think you might be confusing Sourcegraph with Kite[1] (zero relation with Sourcegraph). Kite tries to do something like what you are describing.

With Sourcegraph, we have editor plugins for various editors[2] but they only perform "Open current file on Sourcegraph" and "Search selection on Sourcegraph" actions, nothing like what you are describing yet.

[1] https://kite.com/

[2] https://about.sourcegraph.com/docs/integrations/editor-plugi...

Re: Sourcegraph is now open source

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

Just wanted to say thanks for making code intelligence part of the core product, Sourcegraph has been wonderful!

Re: Sourcegraph is now open source

#58
post #36

Earlier quoted context omitted.

I tend to agree, although I probably wouldn't state it in exactly the way you have. Open core's main goal is to sell proprietary software using the open source version as a loss leader. Having said that, I think there are some companies/individuals who truly believe that open core is a good way of funding free software development. I have even heard Bruce Parens claim that dual licensing is practically the only reaso…

Sourcegraph CEO here. I share your interest in open-source business models, going back quite a while. My public middle school back in 1999 had a mock investment club, and students voted on which stocks to invest in. (It's funny looking back on this.) I campaigned for RedHat and VA Linux, and we ended up "buying" those (and some JDS Uniphase, naturally). I plan to write more about this, but here's the summary of why w…

Thank you very much for these great answers! It's really helped me understand some more issues that I didn't understand before. I really appreciate the amount of time you took to think through that and write a reply.

As a complete aside, I actually had inside knowledge of the JDS - Uniphase merger (a friend of mine who worked there inadvertently allowed me to see something that made it was clear that it was happening a day or so before). It took all my self control not to buy up a lot of JDS stock. I always wonder if I would have gotten in trouble (or gotten my friend in trouble)...

Re: Sourcegraph is now open source

#59
post #41
post #34

Earlier quoted context omitted.

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…

No vim/nvim or emacs editor plugins?

The two most popular editors used by programmers...

Sigh

Re: Sourcegraph is now open source

#60
Know those cool features in your editor that allow you to hover over source and get more detail on what you are looking at? Also, know that feature in an editor that lets you go to definition? Imagine this and not within your editor but rather your browser, whatever host you choose, such as GitHub or GitLab. Sourcegraph enables this feature with browser extensions.
Post reply on HN