News for hackers. Stuff that matters.
Re:How I got involved in the Rust community by burntsushi on Saturday December 10, 2022 @04:31PM (#33937028)
What? Can you say more? In many cases, ripgrep's speed is due in part to integrations with the default regex engine that don't happen with PCRE2.
Re:How I got involved in the Rust community by majkinetor on Sunday December 11, 2022 @01:20PM (#33945784)
Why would you compare C#/pwsh PCRE with somethign that is not PCRE and hence has different features. Compare with rg that has --pcre option set if you want to get real comparison.
Re:How I got involved in the Rust community by burntsushi on Sunday December 11, 2022 @02:37PM (#33946667)
Why wouldn't you? The other poster hasn't even said which regex engine or which tool they're measuring.

PCRE is absolutely a competitor to Rust's regex crate and it makes sense to compare them.

If all you're doing is measuring the time it takes to find `foo` or `\w+_foo`, then the specific regex engine being used is just an implementation detail.

I'm not saying that using --pcre2 is wrong. It is certainly a useful comparison. But using the default regex engine when the task is "measure a grep" is certainly not wrong either.