| ▲ | drob518 11 hours ago | |||||||
I’ve read this multiple times over the years and this post is still the most interesting and informative piece describing the problem of making a fast grep-like tool. I love that it doesn’t just describe how ripgrep works but also how all the other tools work and then compares the various techniques. It’s simultaneously a tutorial and an expert deep dive. Just a beautiful piece of writing. In a perfect world, all code would be similarly documented. | ||||||||
| ▲ | VorpalWay 7 hours ago | parent [-] | |||||||
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 (And they have also written interesting things on regex, non-regex string matching, etc.) | ||||||||
| ||||||||