News for hackers. Stuff that matters.
Re:Static analysis at GitHub by ushakov on Wednesday March 30, 2022 @09:00PM (#30862687)
you should also highlight that your solution has a significant downside: you have to generate the definitions yourself in order for them to be displayed in source graph

this means you’d have to setup a CI/CD to rebuild index each time you make changes to the code + host it on your own

what’s great in GitHub’s approach is they take that obligation away from customers

Re:Static analysis at GitHub by TYMorningCoffee on Wednesday March 30, 2022 @09:53PM (#30863045)
I didn't have to do anything and sourcegraph indexed my project: https://sourcegraph.com/github.com/josephmate/OdinCodeBrowse...

Are you taking about a self hosted or private repo? In that case, I am not familiar.

Re:Static analysis at GitHub by ushakov on Thursday March 31, 2022 @06:13AM (#30865556)
yes, they used "search-based indexing" for your repository

i was talking about LSIF, which enables autocomplete, go to definitions, finding references but at expense of generating your own index

Re:Static analysis at GitHub by beliu on Wednesday March 30, 2022 @11:49PM (#30863644)
Actually that’s not quite right. We offer auto-indexing now for some languages with more on the way. If neither auto-indexing nor manual LSIF generation are an option, we fall back to our search-based code navigation, which, similar to GitHub’s implementation, trades off accuracy for zero configuration (GitHub’s approach is parser-based while we use a combo of parsing, search, and heuristics that eliminates the need for an index entirely in some cases). This is all documented here for those curious to learn more: https://docs.sourcegraph.com/code_intelligence.