Y
Hacker News
new
|
ask
|
show
|
jobs
by
nitely
83 days ago
FWIW, nim-regex does achieve linear time in the rebar test[0], even if the regex includes capture groups. It's NFA based.
[0]:
https://github.com/BurntSushi/rebar/pull/20#issuecomment-256...
1 comments
ieviev
83 days ago
Oh that is interesting! I haven't even looked Nim regex until now, is it similar to the approach in Go?
link
nitely
83 days ago
It's similar to RE2, but it lacks the on the fly DFA, ie: it's just the classic Thompson's NFA with some tweaks. It does not implement find all the same way, though.
link