5 ms·
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
by dkastner 10y 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.
- chrismorgan 10y agoTrying 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.)
- eridius 10y agoThere does not appear to be a crate called "rg". Are you perhasp referring to https://crates.io/crates/ripgrep https://crates.io/crates/ripgrep?
- GolDDranks 10y agoHe definitely is, it's just that "rg" is the binary that compiling ripgrep produces.
- chrismorgan 10y agoWhoops, yep. `cargo install ripgrep`.
- bluejekyll 10y agoYou 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.
- maccard 10y agoWhat's difficult about it? Just use chocolatey.
- burntsushi 10y agoYou can also get a Windows binary that I think should Just Work :-) https://github.com/BurntSushi/ripgrep/releases https://github.com/BurntSushi/ripgrep/releases
- chrismorgan 10y agoHooray for standalone programs!