TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: An experimental code search engine

88 pointsby sp1982over 6 years ago

19 comments

ackfooover 6 years ago
The thing about search is that it is only useful if it lets you find obscure results. Anyone can find common results; they clog every search engine and suffocate functionality.<p>For example, if I enter “UDP broadcast” into your search, I find all the usual java and cpp results that I can find anywhere. Ho hum. If I wanted those, I could go use Google or probably just trip over them in my living room.<p>But I want results in Swift because it is relatively new and obscure. There are only 4 Swift projects on Github that match the term “UDP broadcast” out of 319 total results. I have to do an advanced search on the native Github engine to find them.<p>I think you might want to start by making your search useful for finding the weird obscure things that people really have to hunt for. Then expand it to everything else while finding a way of not drowning the oddball stuff with the common clay (of the New West).<p>This is where Google, for example, has gone wrong lately. I almost can’t use it for anything meaningful because any meaningful search (example ‘MacOS gps”) brings back “5 Amazing GPS apps for Mac that you can’t live without!!” and many other links with no actual content.<p>If you want to make a useful search, you have to return the stuff that is hard to find instead of the easy and useless stuff.
评论 #18569668 未加载
评论 #18576261 未加载
评论 #18571011 未加载
nikaspranover 6 years ago
It would be great to have a few pre-selected example queries immediately clickable, to see some examples. That would help showcase why this is cool and what you can do with it. And maybe why it&#x27;s better than other search tools (i.e. built-in github one).
评论 #18567545 未加载
jimijazzover 6 years ago
This is fun. Why have you restricted the search to just Identifiers, Variables and Functions? Does this mean that text found in a comment block would not be a match?<p>I&#x27;m already devising how you could incorporate a bag of words algorithm plus an embedding to segment&#x2F;find similar items.
评论 #18580241 未加载
lgesslerover 6 years ago
If this looks cool you might also be into Google Code Search <a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;codesearch" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;codesearch</a>
gilleainover 6 years ago
Feature request&#x2F;idea: Would be nice to be able to &#x27;pipe&#x27; the results of one search into another.<p>Imagine a series of search boxes, with the results of the first fed into the second, and so on. Like:<p>&gt; codegrep --class &quot;Logger&quot; | codegrep --field &quot;error&quot;
aryamaanover 6 years ago
This looks good. I wanted to do something similar for Golang when I started learning it.<p>Like for a package say `sync` I want to see the most common methods first and their documentation.<p>I find the current godocs lacks in giving welcoming vibes and treat every aspect of a package equally where some method types are more important&#x2F;useful than others.
ssijakover 6 years ago
First search revealed some funny test code :) <a href="https:&#x2F;&#x2F;github.com&#x2F;ornicar&#x2F;lila&#x2F;blob&#x2F;master&#x2F;modules&#x2F;shutup&#x2F;src&#x2F;test&#x2F;AnalyserTest.scala" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ornicar&#x2F;lila&#x2F;blob&#x2F;master&#x2F;modules&#x2F;shutup&#x2F;s...</a>
评论 #18574676 未加载
评论 #18574012 未加载
boyterover 6 years ago
Very nice. I run searchcode.com which I have been neglecting recently. That said I do like to see other code search engines and play around with them. Seems you have disabled the default regex search offered by elastic? I didn’t look into the code much but a search of &#x2F;.*&#x2F; yielded no results?
评论 #18585588 未加载
pard68over 6 years ago
It would be useful if it grouped repositories or had a method of collapsing results. My search returned the same repo for each result. Not sure if it was a function of there only being one repository using my term (doubt it, I used &quot;GCD&quot;) or what.
oliverx0over 6 years ago
This has a lot of potential. I would love to be able to type quicksort and automatically see a good implementation of it. What is shown right now is not good enough, but the idea is there. Great job! I also tried ray tracing, and timsort, but got no results.
kureikainover 6 years ago
Amazing. Search is super fast.<p>How do you think about Elm? I want to do more work with it too, play with it on some toy projects and love it so far.
sqrt17over 6 years ago
It seems to highlight matches both within strings and as normal identifiers (e.g. to_csv finds matches within strings)
ddorian43over 6 years ago
What&#x27;s the backend like ?
评论 #18569219 未加载
edwinyzhover 6 years ago
Do you have a plan to add Pascal&#x2F;Delphi language support?
评论 #18567551 未加载
catchmeifyoucanover 6 years ago
What is experimental?
评论 #18566979 未加载
mandeepjover 6 years ago
How this is different than Github&#x27;s search?
评论 #18567639 未加载
whydoineedthisover 6 years ago
Sweet. Now I can find committed AWS super fast.
quickthrower2over 6 years ago
Useful. Please keep going!
评论 #18568127 未加载
piecuover 6 years ago
No C#, useless for me.
评论 #18567332 未加载