News for hackers. Stuff that matters.
Re:Heline – Code search for modern developer by terafo on Sunday February 20, 2022 @02:48AM (#30404011)
Size of index is pretty low, to be honest. First thing I tried was 0x5F3759DF, and it found nothing. It deletes non-quoted symbols such as + from queries and pretty much ignores parentheses. I tried few more queries and came out disappointed, I don't think it is acceptable as code search at all, especially as a modern one.
Re:Heline – Code search for modern developer by ahmadrosid on Sunday February 20, 2022 @04:10AM (#30404354)
Hello @terafo! Thank you for checking out this project. At the moment, the index is still very small at around 100 repositories. I will add more repositories to the index and improve the search query.

Besides creating this project, I'm looking for a job that involves full text search, if anyone has an opening please let me know.

Thank you.

Re:Heline – Code search for modern developer by sqs on Sunday February 20, 2022 @06:52PM (#30410424)
Sourcegraph CEO here. This is an awesome thing you built. We’re hiring people to help us bring code search to every dev. Check out https://about.sourcegraph.com/jobs/ and email me ([email protected]) if you want any pointers.
Re:Heline – Code search for modern developer by postpawl on Sunday February 20, 2022 @03:31AM (#30404200)
I tried “npm ci” and only got 5 results. Github returns 8 million.
Re:Heline – Code search for modern developer by mg on Sunday February 20, 2022 @01:35AM (#30403715)
Searching for exact code matches is super useful while coding. Good to see another tool for this.

So far, the only tool I know that offers it is grep.app.

It seems the grep.app index is bigger at the moment? For example:

https://grep.app/search?q=boolean%20isCyclic%28

https://heline.dev/search?q=boolean%20isCyclic%28

Re:Heline – Code search for modern developer by dotancohen on Sunday February 20, 2022 @02:44AM (#30403993)
Github also has a code-search feature. It's returning two orders of magnitude more results for "boolean isCyclic" than is grep.app:

https://github.com/search?q=%22boolean+isCyclic%28%22+size%3...

Re:Heline – Code search for modern developer by sqs on Sunday February 20, 2022 @03:08AM (#30404121)
Sourcegraph (disclaimer: where I work) code search returns ~2700 results (more than the other 2 linked) and properly matches the "(" (which GitHub's current code search incorrectly ignores).

https://sourcegraph.com/search?q=context:global+boolean+isCy...

(Still, awesome to see more code search tools get built! Most devs aren't using code search and have no idea why it's awesome, so anything that changes that is a huge help.)

Re:Heline – Code search for modern developer by ramoz on Sunday February 20, 2022 @12:29PM (#30407354)
Wow, the Sourcegraph search is returning results I couldn’t find yesterday on GitHub. Bookmarked.
Re:Heline – Code search for modern developer by dotancohen on Sunday February 20, 2022 @03:16AM (#30404156)
Terrific, thank you!
Re:Heline – Code search for modern developer by petepete on Sunday February 20, 2022 @04:31AM (#30404441)
There's also cs.github.com which is fantastic and in beta at the moment.
Re:Heline – Code search for modern developer by wodenokoto on Sunday February 20, 2022 @03:19AM (#30404167)
Doesn't it ignore special characters like : , . ( ) etc.?

I remember struggling to find function definitions because `f(` would be treated like `f`

I've also not found a way to filter out tests. I know tests are also code, but most of the time I am not interested in them.

Re:Heline – Code search for modern developer by dotancohen on Sunday February 20, 2022 @05:46AM (#30404773)
You've got to put the search string in quotes.
Re:Heline – Code search for modern developer by ahmadrosid on Sunday February 20, 2022 @04:17AM (#30404371)
I was inspired by grep.app in making this project.
Re:Heline – Code search for modern developer by ppetty on Sunday February 20, 2022 @03:47PM (#30409126)
This would benefit from setting expectations. Maybe show the number of reps indexed below the search form, and a description. Or something that calls this a beta or work in progress.
Re:Heline – Code search for modern developer by mikeon on Sunday February 20, 2022 @09:43AM (#30406069)
OP, Could you describe how it works internally?
Re:Heline – Code search for modern developer by TruthWillHurt on Sunday February 20, 2022 @03:45AM (#30404249)
other than bigger index, I'd recommend a wait time when user is typing.