News for hackers. Stuff that matters.
Re:Don’t underestimate grep-based code scanning by Joeboy on Wednesday August 07, 2019 @11:50AM (#20635816)
Is there a reason to use ag rather than rg? afair the latter was a lot faster when I tried it (on ubuntu / intel).
Re:Don’t underestimate grep-based code scanning by dkarl on Wednesday August 07, 2019 @01:22PM (#20636812)
Same experience here, started with ack and switched to ag and then to rg for speed. I've found them roughly equivalent in functionality, but for those who need specific features here's a link to a feature comparison table:

https://beyondgrep.com/feature-comparison/

Re:Don’t underestimate grep-based code scanning by burntsushi on Wednesday August 07, 2019 @01:54PM (#20637107)
That table is quite out of date for ripgrep, which has added a number of features. See: https://github.com/beyondgrep/website/issues/97
Re:Don’t underestimate grep-based code scanning by dmix on Wednesday August 07, 2019 @03:59PM (#20638287)
Thanks for ripgrep, I use it daily and was recently going through the source code to learn how to build production quality Rust apps! (https://github.com/BurntSushi/ripgrep)
Re:Don’t underestimate grep-based code scanning by wyldfire on Wednesday August 07, 2019 @01:53PM (#20637093)
Pretty sure that rg is a successor to ag, so most people who use `ag` are just ones who haven't heard of `rg` yet.

Well, there's no true hierarchy/succession order but rg was written after ag was.

Re:Don’t underestimate grep-based code scanning by burntsushi on Wednesday August 07, 2019 @02:01PM (#20637188)
Yes, this is true, although ripgrep is more of a hybrid than ag is. ag has numerous problems with being treated as a normal `grep` tool, where as ripgrep does not. (Although, to be clear, ripgrep is not POSIX compatible.)