logoalt Hacker News

The future of code search is not regex – 100x faster than ripgrep

49 pointsby neogoosetoday at 3:45 AM27 commentsview on HN

Comments

CodesInChaostoday at 8:53 AM

Where can I find the benchmark for the "20-50 times faster than ripgrep" claim from the documentation, or the "100x faster" claim from the HN submission title?

Ripgrep already has optimizations for regex which don't contain any patterns (or even just regex which contain such substrings). So "not regex" shouldn't be what makes the difference.

kristopoloustoday at 5:04 AM

I ran across this fascinating tool a few days ago researching embedding models on hugging face.

Advertised as "ColGREP Semantic code search for your terminal and your coding agents",

I haven't put it in any harness yet but I probably should.

https://github.com/lightonai/next-plaid/tree/main/colgrep

I've also tried astgrep (also known as sg) but llms really mess up on them. I think you'd need to fine tune.

If anyone has cracked that case I'd love to hear about it

wiseowisetoday at 7:25 AM

The future is lack of scrolling on mobile, and scanning getting stuck, apparently.

show 1 reply
genewitchtoday at 6:14 AM

considering that ripgrep has marginal overhead over just reading the files to /dev/null, how exactly does this achieve 100x speedup?

I have a lot of use for something that can search ~1GB of text "instantly", but so far nothing beats rg/ag after the data has been moved into RAM.

show 2 replies
neogoosetoday at 3:45 AM

I have open sourced the fastest code search implementation. Comprehensive SDK for both file finder and grep file search that is over 100x faster than ripgrep

show 3 replies
self_awarenesstoday at 8:35 AM

I've entered "bazel" and got `shellPrefix.ts` which doesn't relate to bazel in any way.

If that's the future then I'll stay in the past with ripgrep.

show 1 reply
pjmlptoday at 6:58 AM

It has never been ripgrep for decades for those of us on IDEs.

show 3 replies
swiftcodertoday at 6:40 AM

Is there a write up of the underlying approach? The summary on the repo mentioned SIMD, but not a whole lot else.

asdfadsfaftoday at 6:33 AM

I don't get it how can I search anything but the file name?

dig1today at 6:37 AM

ctags, GNU Global and even "ugrep -Q" would like to have a few words with you ;)

globular-toasttoday at 6:05 AM

Why is it "for neovim"? Surely such a thing would be useful in many applications?

show 1 reply
schrodingertoday at 5:24 AM

How's it work? Embed tokens and use euclidean distance or something?

forrestthewoodstoday at 7:05 AM

Websites that don’t tell me what they’re doing are infuriating. I’m on mobile. This landing page experience is awful.

show 1 reply
hyperlambdatoday at 8:46 AM

[dead]

hugodantoday at 7:31 AM

Why do all vibecoded sites look the same? Same black on neon vibes and button styles