Live data from Hacker News

“You meant to install ripgrep”

crates.io

111–120 of 165 posts

Re: “You meant to install ripgrep”

#113

Earlier quoted context omitted.

w00t! Thanks for the kind words. :-)

"gron | rg", because life is too short to learn jq. Amazing work on rg!

OMG, thank you. jq is great but its syntax is impossible to memorize. This is so much better.

Re: “You meant to install ripgrep”

#115

Earlier quoted context omitted.

"gron | rg", because life is too short to learn jq. Amazing work on rg!

OMG, thank you. jq is great but its syntax is impossible to memorize. This is so much better.

Any time! Yeah jq is great, but my usecase is covered better by these two together.

Truly the Unix philosophy at it's finest. It's the only way I search JSON these days! (or YAML with "yq | gron | rg" to get results, pop into (n)vim and to my thing :)

Re: “You meant to install ripgrep”

#116
post #110

Earlier quoted context omitted.

Right. So then you add burnsushi/ripgrep instead. See the problem? Namespaces are a solution or mitigation to some problem, but that problem is not malicious typo-squatting.

For malicious intents, yes. But, for legitimate reasons where you need to have an "rg" package with a completely different use case, owner namespaced packages might provide a uniform solution.

Again, I was only commenting on typo-squatting. Namespaces do absolutely nothing to mitigate the typo-squatting problem.

Re: “You meant to install ripgrep”

#117

Earlier quoted context omitted.

Yes. And the "random name" can be typo-squatted too. Compare burnsushi and burntsushi. I myself make that typo on occasion. :)

Popular crates could be "symlinked" into a global verified namespace, problem solved? I can't see any downsides other than some extra administration perhaps.

Yes, you buried all of the very difficult parts of your suggestion in "extra administration." Who decides what's popular? Who decides when it isn't popular any more? Who decides who gets which name in the global namespace?

I think I'm just going to refrain from talking about namespaces now. I tried to be super vague and just point out one thing that wasn't solved by namespaces (typo-squatting), but I've somehow gotten sucked into this discussion.

No more. I'm done. Sorry, it isn't directed at you. Just tired of the discussion around namespaces and the neglect to account for the "admin" parts of it.

Re: “You meant to install ripgrep”

#118
post #91

Hah! TIL. I had no idea someone did this. But it's smart. I should have thought of it! (I'm the author of ripgrep.)

Unrelated, but thank you for your work! You’ve saved me tens if not hundreds of hours with ripgrep, and I’ve become a huge evangelist of it at my workplace. When I’m helping someone understand how to debug customer issues, the first thing I tell them is to install ripgrep. Truly a fantastic piece of software.

Sorry, how does ripgrep save you tens of hours? I get that it is faster than regular grep, but that doesn't really answer the question; I don't find myself stalled waiting for grep. The only reasonable explanation would be something ripgrep does that grep actually doesn't. I could try to guess, but have no confidence I would guess right.

Re: “You meant to install ripgrep”

#119
post #44

Earlier quoted context omitted.

I use ripgrep on git bash for Windows, and my team members act like I’ve got searching superpowers. Searching on windows is such a pain and this makes it easy. Thanks so much for making this fantastic tool!

Hah, w00t. Have your teammates figured out that your superpowers are teachable? :-)

I’m working on it! Most Windows devs have this strange aversion to “old confusing command lines”.

Re: “You meant to install ripgrep”

#120
post #44

Earlier quoted context omitted.

I use ripgrep on git bash for Windows, and my team members act like I’ve got searching superpowers. Searching on windows is such a pain and this makes it easy. Thanks so much for making this fantastic tool!

doesn't vscode use ripgrep under the hood when you search your open files/repos?

Haha that’s cool, I do use vs code often but our myriad code bases sometimes I want to search EVERY repo we’ve got at once.
Post reply on HN