{"by":"pepeiborra","descendants":0,"id":50644731,"kids":[50679971,50669714],"score":4,"text":"fmgrep is a (Claude-powered) open source reimplementation of a FAANG code search engine I was involved in a few years back. It&#x27;s aimed at very large (e.g. AOSP) source trees.<p>Back then we wanted to get our hands on the Github search engine (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;danlark1&#x2F;sparse_ngrams\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;danlark1&#x2F;sparse_ngrams</a>) but it was not available, so we went a different way.<p>Instead of n-grams,`fmgrep` builds an FM index of the tree with O(pattern) `count` and O(occurrences) `locate`, which is quite cool and leads to blazing fast performance as seen in the benchmarks.","time":1795626749,"title":"Show HN: Fmgrep – indexed grep over a persistent FM index","type":"story","url":"https://github.com/pepeiborra/fmgrep"}