Live data from Hacker News

Sourcegraph is now open source

about.sourcegraph.com

1–10 of 95 posts

Re: Sourcegraph is now open source

#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.sourcegraph.com/blog/discuss-code-and-docs-in-...

along with a whole host of improvements to code search, code intelligence, self-hosted deployment on a single node and k8s, etc.

Happy to answer any questions folks have about our open sourcing. I summarized the business case at https://twitter.com/sqs/status/1046913901688807424. And we went with the Apache License (2.0) and an open core model because that's about as standard and as open as possible for this kind of thing.

Re: Sourcegraph is now open source

#4
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 :)

Re: Sourcegraph is now open source

#5
post #2

Very nice. Poking though the source now, cmdfrontend/graphqlbackend/textsearch.go is one of the more interesting files I have found so far. It's very neat to look under the hood.

Hey, Ben! Yes, that is a neat source file that shows how Sourcegraph does really fast live code search. (Sourcegraph has hybrid search so you get fast search over any repository and any commit, without needing to wait for indexing. It'll hit an index on the default branch, but for any historical commit/branch that isn't indexed, it has a super-optimized live searcher. We sponsored some contributions to the Go stdlib to improve this, in fact.)

BTW, you can pull up that file quickly on Sourcegraph:

1. Search for repo:ph/sourcegraph textsearch.go — https://sourcegraph.com/search?q=repo%3Aph%2Fsourcegraph+tex...

2. Go to the first file — https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-...

3. Now click around! You get code intelligence: go-to-definition, find-references, hover tooltips, etc. It works on any open-source repository, and on your internal repositories if you spin up your own Sourcegraph instance.

As for licensing, we went with open-source using the Apache License because that's what makes it as easy as possible to get user #1 and user #20 inside of companies. See https://twitter.com/sqs/status/1046913901688807424 for a bit more info there.

Re: Sourcegraph is now open source

#6

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 :)

[deleted]

Re: Sourcegraph is now open source

#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 now also build Sourcegraph from source and see/hack on/etc. our source code.

Re: Sourcegraph is now open source

#8
I was lucky to connect with Quinn and get the opportunity to volunteer as a guinea pig for open sourcing this code :).

Sourcegraph is an interesting product and company. I see the potential for it to have a bigger positive impact on developer productivity than even Jetbrains IntelliJ has, because the reach can go beyond any particular editor or frontend. It could be a ubiquitous solution to efficient code search and discovery.

Will definitely be watching how things unfold for Sourcegraph. If you haven't already read their Master Plan, it's a compelling vision.

https://about.sourcegraph.com/plan

Re: Sourcegraph is now open source

#9
I'm especially interested in open source/free software businesses and business models. Are you planning to do an open core kind of thing, or maintain full on open source while charging for hosting and/or other services? I realise that might be a difficult question to answer as you might want to keep your options open, so I'm not asking for a commitment :-) I'm just curious about your plans.

Also do you ever think you might add (for want of a better phrase) custom development services if you aren't already? For example, allowing people to pay a fee to get specific features added to Sourcegraph. What are the kinds of benefits and risks you might see from going in that kind of direction?

I've noticed that a lot of open core businesses tend to avoid offering customer development services -- and if they do it's often perceived as a cost centre rather than a profit centre. It's something that is provided out of necessity of having to provide custom solutions for a few big customers, but the services team often appears to be at odds with the core development team. As you have obviously gone through the thought process of how to make money when your software is out in the open, I wonder what kinds of thoughts you have on that topic.

It's really nice to see this kinds of stuff happening and I wish you the best luck possible in your endeavours!

Re: Sourcegraph is now open source

#10
Awesome! You guys did what I could not. Congratulations! So excited to see where this takes Sourcegraph, and the community around it.

In my experience, even just using Sourcegraph to browse source code in open source repos is way faster than the native git host browsing (BitBucket, GitHub, Gitlab, etc). We use it daily at my lab, especially as I help others learn the code base. Thanks for Sourcegraph.

Post reply on HN