Show HN

Fmgrep

by @pepeiborra

Fmgrep – indexed grep over a persistent FM index fmgrep is a (Claude-powered) open source reimplementation of a FAANG code search engine I was involved in a few years back. It's aimed at very large (e.g. AOSP) source trees. Back then we wanted to get our hands on the Github search engine (https://github.com/danlark1/sparse_ngrams) but it was not available, so we went a different way. 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.

Discover more builders

Builderlust is an endless, joyful scroll of real projects people are shipping right now. Get the app to keep finding your next spark of inspiration.

📱 Coming soon to iOS & AndroidOpen in the app