4 ms·
The same author also wrote the defacto standard regex library in Rust, and somewhat recently a new time and date library (jiff). The comparison between jiff, c
by VorpalWay 7mo ago
The same author also wrote the defacto standard regex library in Rust, and somewhat recently a new time and date library (jiff).
The comparison between jiff, chrono, time and hifitime is just as good of a read in my opinion: https://github.com/BurntSushi/jiff/blob/HEAD/COMPARE.md https://github.com/BurntSushi/jiff/blob/HEAD/COMPARE.md
(And they have also written interesting things on regex, non-regex string matching, etc.)
- 1-more 7mo agoHe also wrote the rust CSV parsing library and then the command line utility xsv that uses it. It's an incredible piece of software for breaking down massive CSV files where fields contain linebreaks and you thus cannot use sed to just get ranges of lines.
- bashkiddie 7mo ago> wrote the defacto standard regex library in Rust What is the motivation that Rust invented its own RegEx flavor instead of sticking to PCRE or even RE2?
- VorpalWay 7mo agoNot going with a dialect that supports back references ensures that you have can have linear complexity, which is important for some use cases. PCRE doesn't fot that. Not sure about RE2, I have never used that. Other than that it is standard regex syntax pretty much as far as I know? One library is pretty much like another. What differs is mostly availability of some less used extensions, and performance characteristics. If you accept untrusted regexes you want one with linear time complexity. On top of that the rust regex engine has really good performance when it comes to the constants too (not just the big O notation).