3 ms·
The title of this post is currently "Brave Browser unable to block certain ads due to Rust language limitations", which is ludicrous editorialization. Rust does
by kibwen 7mo ago
The title of this post is currently "Brave Browser unable to block certain ads due to Rust language limitations", which is ludicrous editorialization. Rust doesn't have regex in the language. Rust doesn't even have regex in the stdlib. The most popular crate for regex is https://crates.io/crates/regex https://crates.io/crates/regex , which is an engine whose design deliberately puts a reasonable upper bound on worst-case time complexity by deliberately excluding certain features (originally based on the design discussed in https://swtch.com/~rsc/regexp/regexp1.html https://swtch.com/~rsc/regexp/regexp1.html ). Guess what, if you want lookaround, there are regex engines in other crates that offer that: https://crates.io/crates/fancy-regex https://crates.io/crates/fancy-regex