Hacker GitHub

← All repos

google/redgrep

View on GitHub ↗ ★ 165 C++ archived

♥ Janusz Brzozowski

12 mentions on Hacker News by 7 people: 1 story, 11 comments · first 2015-10-21 · latest 2026-03-24

Mentions per year 12 mentions · busiest year 2021 (5)
20082026
  1. …I recall correctly, it doesn't handle some obstruse regexes the way conventional tools do however. https://github.com/google/redgrep
    comment by davidgrenier · 2026-03-24 · in Finding all regex matches has always been O(n²)
  2. …via Brzozowski derivatives. See https://en.wikipedia.org/wiki/Brzozowski_derivative See also https://github.com/google/redgrep Regular languages have a bunch of closure properties. In practice, intersection and complement are really…
  3. …a lazy DFA, because full DFAs are too expensive to build in the "general purpose" context.) [1]: https://github.com/google/redgrep
  4. …NFA/DFA and lazy DFA. Though there is an implementation that relies only on Brzozowski derivatives: https://github.com/google/redgrep
  5. ▲ 2
    Redgrep – grep based on regex derivatives, matches in linear time
    story by pabs3 · 2021-04-27 · 0 comments
  6. …might work. Nothing about Viterbi is fast, in my experience implementing it in the past. :-) > https://github.com/google/redgrep/blob/main/parser.yy mentions something about capture, but not sure if that has anything to do with capture…
    comment by burntsushi · 2021-03-14 · in Speed of Rust vs. C
  7. …an inkling that something inspired by https://en.wikipedia.org/wiki/Viterbi_algorithm might work. https://github.com/google/redgrep/blob/main/parser.yy mentions something about capture, but not sure if that has anything to do with capture…
    comment by eru · 2021-03-14 · in Speed of Rust vs. C
  8. …through ripgrep's website: does ripgrep support intersection and complement of expressions? Like eg https://github.com/google/redgrep does. Regular languages are closed under those operations after all.
    comment by eru · 2021-03-14 · in Speed of Rust vs. C
  9. …[2] - https://github.com/google/re2/issues/156#issuecomment-354068... [3] - https://github.com/google/redgrep
    comment by burntsushi · 2021-01-01 · in State machines are wonderful tools
  10. …There a bunch of non-production implementations floating around like https://github.com/google/redgrep https://github.com/MichaelPaddon/epsilon (This technique was revived by the 2009 paper cited) ----- Regarding the blog post,
  11. There's also redgrep ( https://github.com/google/redgrep ) that supports intersection and complements of regular expressions. I am toying the idea of writing a little game where player A thinks of a regular expression, and player B tries…
    comment by eru · 2017-07-06 · in Regex Puzzle
  12. …Redgrep is a cool project by Paul Wankadia that uses LLVM to JIT regexp automata into machine code. https://github.com/google/redgrep . The two things that are tough about JITting for very large automata, though, are breaking the code up…