ARTFEED — Contemporary Art Intelligence

Simon Willison Builds TRE Python Binding for ReDoS Robustness

other · 2026-05-04

Simon Willison, inspired by antirez's addition of TRE to Redis, created an experimental Python binding for Ville Laurikari's TRE regular expression engine using ctypes via Claude Code. The binding demonstrates superior resistance to ReDoS (Regular Expression Denial of Service) attacks compared to Python's standard library, primarily due to TRE's lack of backtracking support. Willison posted about the project on 4th May 2026, offering a $10/month sponsorship for a curated monthly email digest on LLM developments.

Key facts

  • Simon Willison built an experimental Python binding for TRE regex engine
  • The binding uses ctypes and was developed with Claude Code
  • TRE handles malicious regex attacks better than Python's standard library
  • TRE's lack of backtracking support is key to its robustness
  • antirez previously added TRE to Redis
  • TRE was created by Ville Laurikari
  • Willison posted on 4th May 2026
  • Sponsorship at $10/month provides a curated email digest on LLM developments

Entities

Artists

  • Simon Willison
  • Ville Laurikari
  • antirez

Sources