5 ms·
New GitHub full text search [1] is amazing. It is so good that for me it often replaces StackOverflow - I just use it to see how some API function is being used
by jerjerjer 2y ago
New GitHub full text search [1] is amazing. It is so good that for me it often replaces StackOverflow - I just use it to see how some API function is being used. Especially useful if you're searching for an example with a specific argument value.
[1] https://cs.github.com/ https://cs.github.com/
- jiveturkey 2y agohave you used google's internal code search though? the link you posted is amazing in its performance, for sure. but once you are in some repo and doing what most of us call "code search", github drops off in utility vs google's internal tooling pretty quickly. i'm only remarking on this because of the context in the parent you are replying to, whom i agree with. local tooling is better than what github provides. as a standalone comment i would simply upvote you.
- rty32 2y agoChances are that a random stranger on the Internet has not used Google's internal code search. Even if that person has, it would be useful to provide the context for others to understand.
- dmoy 2y agoThey're talking about Kythe https://en.m.wikipedia.org/wiki/Google_Kythe https://en.m.wikipedia.org/wiki/Google_Kythe https://youtu.be/VYI3ji8aSM0?si=D3Z3FIsB8wa7MTE6 https://youtu.be/VYI3ji8aSM0?si=D3Z3FIsB8wa7MTE6 Think jump-to-def and listing cross references working with c++ aliases, across generated code boundaries, etc.
- jiveturkey 2y ago> The entirety of the Google team working on Kythe was laid off in April 2024, as part of a company push to move certain roles overseas. ouch just OUCH
- dmoy 2y agoYea :(
- saagarjha 2y agoI've used both. Google's code search is usually better if you know what you're looking for. It's less so if you need to do something that involves cross-language references (e.g. code file that references a translation string).
- jerjerjer 2y agoLocal code search is great in JetBrains products. I use PyCharm and even on large codebases the search is almost instantaneous and there are enough filters and options to nail down what you need. While JetBrains often drops the ball on the responsiveness of their products, the search remains fast as far (and as recent) as I remember.
- upcoming-sesame 2y agoWhy is this not the default?
- NoahKAndrews 2y agoI believe it is nowadays. For a while it was in beta.