📰 Story

simon_willison · May 4, 2026 · news

← Live feed 📰 Daily recap 🗓️ Weekly recap 🔔 RSS

TRE Python binding — ReDoS robustness demo

Research: TRE Python binding — ReDoS robustness demo If it's good enough for antirez to add to Redis I figured Ville Laurikari's TRE regular expression engine was worth exploring in a little more detail. I had Claude Code build an experimental Python binding (it used ctypes ) and try some malicious regular expression attacks against the library. TRE handles those much better than Python's standard library implementation, thanks mainly to the lack of support for backtracking. Tags: security , python , regular-expressions , c , ctypes

Read the original at simonwillison.net →Open in live feed

Related stories 4 items