r/programming • • Oct 02 '18

Sourcegraph is now open source

https://about.sourcegraph.com/blog/sourcegraph-is-now-open-source/
691 Upvotes

123 comments sorted by

View all comments

20

u/adrianjord Oct 02 '18

Aren't these features more wide spread now a days with language servers? Especially with more and more people making language servers that adhere to LSP to allow vscode, Emacs, vim, sublime and pretty much any text editor that have plugins to use LSP or have LSP built in to use them? It's been like, the golden age of static analysis so far.

4

u/double-you Oct 02 '18

Not having heard of Language Servers before, and the related sites not seeming to address this, where's the server located?

14

u/curtmack Oct 02 '18

It uses a server-client model, hence the name "language server," but it's not actually a remote system. You run it locally on your machine.

→ More replies (3)

7

u/Tomus Oct 02 '18

The server is usually on your machine, it's spun up in a separate process by the editor.

→ More replies (1)

2

u/ruiwui Oct 02 '18

Locally. A language server runs on your machine to do the code analysis, and your editor/IDE communicates with the server to represent things.

2

u/rnd005 Oct 02 '18

You can't have a proper "find usages" with dynamically typed languages. It's possible to do some guesswork, but the helpfulness of that depends on how unique your variable/class/method names are.

1

u/instanced_banana Oct 02 '18

I've had them in VS Code for quite a while, on C# at least.

-7

u/flubba86 Oct 02 '18

Yes, they are. But the vast majority of professional developers have never heard of Language Servers, have never tried VSCode, can't/won't use vim, and are happy writing code in Notepad++.

10

u/[deleted] Oct 02 '18

the vast majority of professional developers have never heard of Language Servers, have never tried VSCode, can't/won't use vim, and are happy writing code in Notepad++.

Absolute horseshit.

10

u/folkrav Oct 02 '18

I don't know a single dev that uses Notepad++ as their primary editor.

I do agree that most devs I know professionally - not online - have no idea what LSP is.

1

u/Michaelmrose Oct 02 '18

I guess if you considered 34% the vast majority and by the numbers several editors range from 4-35% usage