Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
RE2
RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.
It seems a little weird to me that they start out targeting JS, though. Look at one of the sample generated files -- it has a little comment at the top that has the tiny regex it was generated from. I'd be shocked if that's actually faster -- that's a lot for v8 to parse and optimize, and you're hoping it'll parse/optimize it into better code than it would parsing/optimizing a tiny regex?
CTRE is great for C++
At a personal level, I took on this challenge at some point, with the take of compiling RE2 to JavaScript, it's on the list of side-projects that require more time/love.
Related posts
- Constexpr Advent of Code
- Melody 0.19.0 | A language that compiles to regular expressions and aims to be more readable and maintainable
- Melody 0.19.0 – A language that compiles to regular expressions
- Yeah, we all know what you're good for...
- Regex is comically slow. High performance alternatives? (Pattern matching for validation)