Skip to content

Latest commit

 

History

History
68 lines (60 loc) · 3.22 KB

history.md

File metadata and controls

68 lines (60 loc) · 3.22 KB

Regular expression engine history

Russ Cox

Ken Thompson

  • grep
    • fgrep (not by him) uses the Aho–Corasick string-matching algorithm
  • Ken Thompson wrote a regex engine which compiled (at runtime) regexes into data structures containing executable machine code, and invoked them (from C source) by jumping into the data i.e. treating its location as a function pointer. That's what's happening here except it's the start code inserted by the linker which is jumping into main. https://news.ycombinator.com/item?id=27506134

Others

Algorithms