News for hackers. Stuff that matters.
Re:The quadratic problem nobody fixed by adzm on Monday March 23, 2026 @04:00PM (#47494359)
Is there any reason that RE#'s two-pass approach couldn't be adopted by other regex engines?

Ah, there is a post with more detail about RE# and discussion here recently that I must have missed: https://news.ycombinator.com/item?id=47206647

Re:The quadratic problem nobody fixed by ieviev on Monday March 23, 2026 @04:38PM (#47494771)
The part that makes it difficult is that it doesn't return the same matches, it returns almost the same matches but not exactly.

But if PCRE semantics isn't set in stone then i hope leftmost longest could be the default some day. There's a lot of nice things you get for free with the two pass approach