3 ms·
PCRE2 is specified through its implementation, which has so many edge cases and special flags that most people can't reason about what kinds of problems it coul
by jdonaldson 2y ago
PCRE2 is specified through its implementation, which has so many edge cases and special flags that most people can't reason about what kinds of problems it could cause.
I really wish more people used PEG parsing. I wrote a library for it in Haxe that was surprisingly fast despite being interpreted : https://www.youtube.com/watch?v=CtNQvjyioGQ https://www.youtube.com/watch?v=CtNQvjyioGQ
- nextaccountic 2y agoAren't there reimplementations of pcre2? I think that ripgrep has a pcre2 flag or something
- burntsushi 2y agoripgrep uses the PCRE2 library directly. Otherwise ripgrep is "pure" Rust. (To the extent that is plausible at present. e.g., ripgrep relies on libc indirectly via Rust's standard library.)