Hacker News new | ask | show | jobs
by dkastner 3525 days ago
A huge payoff that Rust provides vs Ruby or JavaScript is when writing development tools. It saves so much time and trouble to install a binary than to try and get someone to download the right version of Ruby, gem install, etc. Rust, while having its tax, is really great about telling you why your code won't compile and keeping you from footgunning yourself.
1 comments

Trying to get ack or ag working properly on Windows is a bit of a pain. Now there’s an equivalent in Rust, rg, and I can get something that’s mostly superior to these others with `cargo install rg`. (OK, so I had to have installed Rust first. But I had done that.)
You can also get a Windows binary that I think should Just Work :-) https://github.com/BurntSushi/ripgrep/releases
Hooray for standalone programs!
You always have to install something or it must exist first. Node, FCC, clang, Ruby, Python... you just need to think of rustup as the the equivalent of getting you rust compiler environment setup.
There does not appear to be a crate called "rg". Are you perhasp referring to https://crates.io/crates/ripgrep?
He definitely is, it's just that "rg" is the binary that compiling ripgrep produces.
Whoops, yep. `cargo install ripgrep`.
What's difficult about it? Just use chocolatey.