• 1 Post
  • 4 Comments
Joined 2 years ago
cake
Cake day: December 31st, 2023

help-circle
  • “sorry to disappoint you, Timmy, but the tooth fairy only comes once she knows the parents are aware their child is about to get some money/a visit”

    I’m very surprised there are parents telling their kids about the tooth fairy that can’t recover the story when confronted by their kid with such evidence.



  • Jayjader@jlai.luto196@lemmy.blahaj.zonerule
    link
    fedilink
    English
    arrow-up
    5
    ·
    8 days ago

    Turns out we’re both off the mark: it’s catastrophic backtracking that is “dangerously” vulnerable to performance issues. Something as simple as (a+)+b is enough to trigger the “bad” behavior. I assume you can achieve it with back references and lookarounds as well.

    This video gives a good breakdown of what exactly is going on inside a compiled regex automata that encodes such a case: https://www.youtube.com/watch?v=gITmP0IWff0