TRE Python binding — ReDoS robustness demo
Summary
A minimal Python ctypes binding to the TRE regex library demonstrates robust performance against ReDoS attacks, processing evil patterns on 10M-character inputs much faster than Python's re module.
View Cached Full Text
Cached at: 05/08/26, 06:43 AM
Similar Articles
New things for regular expressions in PostgreSQL (pg_tre and pg_re2)
The article explores new PostgreSQL extensions pg_tre and pg_re2 for enhanced regular expression indexing, demonstrating significant performance improvements over traditional methods like pg_trgm in tests on a large database.
DOOM running on a regex engine
A developer demonstrates running the game DOOM using a regex engine as a computational substrate, performing millions of substitutions per frame.
@dakshgup: introducing t-rex with t-rex enabled, greptile doesn't just review your PR, it runs your branch in a sandbox to find bu…
Greptile launches T-Rex, a feature that runs your branch in a sandbox to find bugs by mocking API calls, clicking around the UI, and running unit tests, catching ~20% more bugs than base Greptile.
TREX: An AI code reviewer that runs your code
Greptile introduces TREX, an AI code reviewer that executes code and detects runtime bugs, going beyond static analysis by spinning up parallel agents to investigate issues and generate artifacts like screenshots.
@charliermarsh: On this 126 byte snippet: - ty 0.0.65 stack-overflows - mypy 2.3.0 segfaults - Pyright 1.1.411 times out - Pyrefly 1.1.…
A 126-byte snippet causes multiple Python type checkers (ty, mypy, Pyright, Pyrefly, Pycroscope) to crash, hang, or panic, highlighting interesting edge cases in these tools.