by Kaliboy · 6mo ago · 0 comments
During my CS years I remember being fascinated by NFA's, as opposed to boring single universe DFA's.
For some reason I internalized that I would never see something like an NFA implemented beyond text books.
Then came Carlini.
And we always changed the regex NFA to an equivalent DFA and that was the implementation.
So somehow I managed to internalize the idea that an NFA is purely theoretical and can't be built.
im practice is a good idea to build a DFA from your regex, up front (re2) or lazily (ripgrep)