LWN: Comments on "Searching code with Sourcegraph" https://lwn.net/Articles/828748/ This is a special feed containing comments posted to the individual LWN article titled "Searching code with Sourcegraph". en-us Fri, 12 Sep 2025 11:57:56 +0000 Fri, 12 Sep 2025 11:57:56 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Searching code with Sourcegraph https://lwn.net/Articles/829430/ https://lwn.net/Articles/829430/ hazmat <div class="FormattedComment"> This type of &quot;open source&quot; is a imo disturbingly common trend, elastic, timescaledb, etc. As an oss contributor it effectively taints contributors by even doing something as simple as looking at the log or a diff in a repo as commits are often co-mingled, it represents fairly community hostile behavior imo. Elastic for example has gotten in the habit of suing other developers building on the oss (search guard).<br> </div> Sun, 23 Aug 2020 11:40:07 +0000 Searching code with Sourcegraph https://lwn.net/Articles/829402/ https://lwn.net/Articles/829402/ jezuch <div class="FormattedComment"> Not sure if it qualifies as &quot;relatively recent&quot;, but the earliest tool for structural search (and refactoring) I&#x27;m aware of is James Gosling&#x27;s Jackpot circa 2000 (it now lives on as part of NetBeans IDE). Linux developers should also be familiar with Coccinelle, so-called &quot;semantic search&quot; tool used to find and fix bugs automatically, and also for widespread refactorings. There&#x27;s also my favourite feature of Intellij IDEA :) I&#x27;m kind of a connoisseur of static analysis and structural search/replace tools so it&#x27;s good to see another one out there!<br> </div> Sat, 22 Aug 2020 13:42:46 +0000 Zoekt & trigram background https://lwn.net/Articles/829048/ https://lwn.net/Articles/829048/ hanwen <div class="FormattedComment"> For those interested in trigram search, I did a talk on Zoekt that folks might find interesting. See here: <a href="https://www.youtube.com/watch?v=_-KTAvgJYdI">https://www.youtube.com/watch?v=_-KTAvgJYdI</a><br> </div> Wed, 19 Aug 2020 09:12:13 +0000 Searching code with Sourcegraph https://lwn.net/Articles/829045/ https://lwn.net/Articles/829045/ jkingweb <div class="FormattedComment"> Having the proprietary bits be visible is a nice feature. I suppose you could build your own and have some assurance that there&#x27;s no code you&#x27;re not aware of lurking in there?<br> </div> Wed, 19 Aug 2020 01:02:18 +0000 Searching code with Sourcegraph https://lwn.net/Articles/829044/ https://lwn.net/Articles/829044/ riking <div class="FormattedComment"> <a href="https://github.com/sourcegraph/sourcegraph/pull/11575">https://github.com/sourcegraph/sourcegraph/pull/11575</a> was inspired by this, by the way. Looks like it&#x27;s still in progress.<br> </div> Tue, 18 Aug 2020 23:31:38 +0000 Searching code with Sourcegraph https://lwn.net/Articles/829043/ https://lwn.net/Articles/829043/ riking <div class="FormattedComment"> We&#x27;re running a SourceGraph instance for our (public, open source) monorepo at <a href="https://cs.tvl.fyi">https://cs.tvl.fyi</a> and it works pretty well!<br> I&#x27;ve noticed that not having LSIF does hurt reference lookup for extremely common phrases and variable names. This is obviously a solvable problem, we just haven&#x27;t gotten it set up yet.<br> <p> We use a nginx hack to have everyone be logged in as &quot;Anonymous&quot; (<a href="https://cs.tvl.fyi/depot/-/blob/ops/nixos/www/cs.tvl.fyi.nix#L20">https://cs.tvl.fyi/depot/-/blob/ops/nixos/www/cs.tvl.fyi....</a>).<br> </div> Tue, 18 Aug 2020 23:29:10 +0000