frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ripgrep is faster than grep, ag, git grep, ucg, pt, sift (2016)

https://burntsushi.net/ripgrep/
64•jxmorris12•4h ago

Comments

pipe01•2h ago
(2016)
keybored•1h ago
> The binary name for `ripgrep` is `rg`.

I don’t understand when people typeset some name in verbatim, lowercase, but then have another name for the actual command. That’s confusing to me.

Programmers are too enarmored with lower-case names. Why not Ripgrep? Then I can surmise that there might not be some program ripgrep(1) (there might be a shorter version), since using capital letters is not traditional for CLI programs.

Look at Stacked Git:

https://stacked-git.github.io/

> Stacked Git, StGit for short, is an application for managing Git commits as a stack of patches.

> ... The `stg` command line tool ...

Now, I’ve been puzzled in the past when inputing `stgit` doesn’t work. But here they call it StGit for short and the actual command is typeset in verbatim (stg(1) would have also worked).

lpapez•1h ago
You can simply add a shell alias with whatever name you like and move on.
qsera•1h ago
True, but easier said than done, because one often need to work in more shells than their local machines..
pie_flavor•49m ago
This is a nonstandard tool. If you can't customize your machine, you already don't have it.
BiteCode_dev•32m ago
You can't in most corporate env machines.

You may be able to download ripgrep, and execute it (!), but god forbid you can create an alias in your shell in a persistant manner.

orf•1h ago
It’s only 2 characters - if you use it all the time it becomes muscle memory.
Macha•24m ago
How would you capitalise it? RipGrep? RIPGrep? You’d need to pick a side and lose the pun. (And of course grep itself would need to be GReP if we took it all the way)
qudat•4m ago
Because we are constantly writing variables that are lowercase. Coming up with a name that is both short but immediately understandable is what we live for. Variables are our shrine, we stare at them everyday and are used to their beauty and simplicity.
vortegne•3m ago
Don't get me started on `nvim` to run neovim...
dist-epoch•1h ago
(2024) gg: A fast, more lightweight ripgrep alternative for daily use cases

https://reddit.com/r/rust/comments/1fvzfnb/gg_a_fast_more_li...

keybored•1h ago
> > IMO, as long as the time differences remain small, I'm totally okay with ripgrep being slower by default on smaller corpora if it means being a lot faster by default on bigger corpora.

Also something-something about dependencies (a Rust staple): https://www.reddit.com/r/rust/comments/1fvzfnb/gg_a_fast_mor...

masklinn•27m ago
Note that this is the author of ripgrep replying to a third party commenter asking whether rg isn’t already lightweight, and comparing the two under various possible definitions of “lightweight”.
wewewedxfgdf•1h ago
I was using ripgrep once and it had a bug that led me downa terrifying rabbit hole - I can't recall what it was but it involved not being able to find text that absolutely should have been there.

Eventually I was considering rebuilding the machine completely but for some reason after a very long time digging deep into the rabbit hole I tried plain old grep and there was the data exactly where it should have been.

So it's such a vague story but it was a while back - I don't remember the specifics but I sure recall the panic.

QuantumNomad_•1h ago
Was it confirmed to be a bug?

Sometimes I forget that some of the config files I have for CI in a project are under a dot directory, and therefore ignored by rg by default, so I have to repeat the search giving the path to that config files subdirectory if I want to see the results that are under that one (or use some extra flags for rg to not ignore dot directories other than .git)

wewewedxfgdf•56m ago
Sorry I don't recall exactly but I don't think it was anything special like a hidden or binary file.

I still use it but Ive never trusted it fully since then I double check.

RichardLake•1h ago
Was the file in a .gitignore by any chance? I've got my home folder in git to keep track of dot/config files and that always catches me out. Really dislike it defaulting to that ignoring files that are ignored by git.
kelipso•50m ago
I had that happen too recently… Basically rg x would show nothing but grep -r x showed the lines for any x. Tried multiple times with different x, then I kept using grep -r at that time. After a few days, I started using rg again and it worked fine but now I tend to use grep -r occasionally too to make sure.
masklinn•33m ago
Next time that happens try looking at the paths, adding a pair of -u, or running with --debug: by default rg will ignore files which are hidden (dotfiles) or excluded by ignore files (.gitignore, .ignore, …).

See https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#a... for the details.

nikbackm•44m ago
Maybe related to text encodings?

I think riggrep will not search UTF-16 files by default. I had some such issue once at least.

postalcoder•4m ago
idk if this was your issue but I’m posting this because it’s not obvious:

  rg      : Standard search
  rg -u   : Includes .gitignored files
  rg -uu  : Includes .gitignored + hidden files
  rg -uuu : Includes .gitignored + hidden + binary files
boyter•1h ago
Such a good read. I actually went back though it the other day to steal the searching for the least common byte idea out to speed up my search tool https://github.com/boyter/cs which when coupled with the simd upper lower search technique from fzf cut the wall clock runtime by a third.

There was this post from cursor https://cursor.com/blog/fast-regex-search today about building an index for agents due to them hitting a limit on ripgrep, but I’m not sure what codebase they are hitting that warrants it. Especially since they would have to be at 100-200 GB to be getting to 15s of runtime. Unless it’s all matches that is.

ianberdin•1h ago
It’s a pure delight to read this docs / pitch.
unxmaal•1h ago
I just got ripgrep ported to IRIX over the weekend.

It’s fast even on a 300mhz Octane.

bartread•30m ago
Is IRIX experiencing a hobbyist revival or something? This is the second IRIX reference I’ve seen on here in the past two days, and there was a submission a day or two ago (c.f. a Voodoo video card?) as well. I haven’t personally encountered IRIX in the wild since a company I worked at in 2003. I suppose SGI has always had a cool factor but it’s unusual seeing it come up in a cluster of mentions like this.
unxmaal•12m ago
It ebbs and flows.

SGUG tried hard to port newer packages for IRIX for several years but hit a wall with ABI mismatches leading to GOT corruption. This prevented a lot of larger packages from working or even building.

I picked up the effort again after wondering if LLMs would help. I ran into the ABI problems pretty quickly. This time though, I had Claude use Ghidra to RE the IRIX runtime linker daemon, which gave the LLM enough to understand that the memory structures I’d been using in LLVM were all wrong. See https://github.com/unxmaal/mogrix/blob/main/rules/methods/ir... .

After cracking that mystery I was able to quickly get “impossible” packages building, like WebKit, QT5, and even small bits of Go and Rust.

I’m optimistic that we’ll see more useful applications built for this cool old OS.

speed_spread•4m ago
Ooh that's super interesting. I assume you shared the recipe with the irix community? I remember keeping Netscape up to date on my Indy was already a struggle in 2002.
chriswep•1h ago
It seems to me that `rg` is the number one most important part that enables LLMs to be smart agents in a codebase. Who would have thought that a code search tool would enable AGI?
brtkwr•52m ago
Hasn’t someone rewritten ripgrep in rust by now? C’mon it’s 2026. Oh wait it was written in Rust (back in 2016).
masklinn•21m ago
The fun part is it is pretty easy to “rewrite” ripgrep in rust, because burntsushi wrote it as a ton of crates which you can reuse. So you can reuse this to build your own with blackjack and hookers.
qudat•6m ago
Waiting for the zig port
vortegne•5m ago
https://github.com/alexpasmantier/grip-grab

Someone kinda did

Microsoft's "Fix" for Windows 11: Flowers After the Beating

https://www.sambent.com/microsofts-plan-to-fix-windows-11-is-gaslighting/
156•h0ek•1h ago•110 comments

Opera: Rewind The Web to 1996 (Opera at 30)

https://www.web-rewind.com
63•thushanfernando•3h ago•35 comments

Box of Secrets: Discreetly modding an apartment intercom to work with Apple Home

https://www.jackhogan.me/blog/box-of-secrets/
160•jackhogan11•22h ago•49 comments

Log File Viewer for the Terminal

https://lnav.org/
164•wiradikusuma•5h ago•20 comments

Ripgrep is faster than grep, ag, git grep, ucg, pt, sift (2016)

https://burntsushi.net/ripgrep/
65•jxmorris12•4h ago•32 comments

Show HN: ProofShot – Give AI coding agents eyes to verify the UI they build

https://proofshot.argil.io/
54•jberthom•3h ago•37 comments

No-build, no-NPM, SSR-first JavaScript framework if you hate React, love HTML

https://qitejs.qount25.dev
32•usrbinenv•4d ago•17 comments

BIO – The Bao I/O Co-Processor

https://www.crowdsupply.com/baochip/dabao/updates/bio-the-bao-i-o-co-processor
48•hasheddan•2d ago•13 comments

iPhone 17 Pro Demonstrated Running a 400B LLM

https://twitter.com/anemll/status/2035901335984611412
631•anemll•20h ago•281 comments

Autoresearch on an old research idea

https://ykumar.me/blog/eclip-autoresearch/
375•ykumards•16h ago•83 comments

MSA: Memory Sparse Attention

https://github.com/EverMind-AI/MSA
13•chaosprint•2d ago•1 comments

FCC updates covered list to include foreign-made consumer routers

https://www.fcc.gov/document/fcc-updates-covered-list-include-foreign-made-consumer-routers
334•moonka•13h ago•223 comments

Show HN: Cq – Stack Overflow for AI coding agents

https://blog.mozilla.ai/cq-stack-overflow-for-agents/
155•peteski22•19h ago•61 comments

A 6502 disassembler with a TUI: A modern take on Regenerator

https://github.com/ricardoquesada/regenerator2000
44•wslh•3d ago•4 comments

Gerd Faltings, who proved the Mordell conjecture, wins the Abel Prize

https://www.scientificamerican.com/article/gerd-faltings-mathematician-who-proved-the-mordell-con...
43•digital55•4d ago•6 comments

Claude Code Cheat Sheet

https://cc.storyfox.cz
438•phasE89•13h ago•127 comments

Dune3d: A parametric 3D CAD application

https://github.com/dune3d/dune3d
172•luu•2d ago•60 comments

Abusing Customizable Selects

https://css-tricks.com/abusing-customizable-selects/
125•speckx•5d ago•5 comments

The Resolv hack: How one compromised key printed $23M

https://www.chainalysis.com/blog/lessons-from-the-resolv-hack/
95•timbowhite•13h ago•131 comments

Microservices and the First Law of Distributed Objects (2014)

https://martinfowler.com/articles/distributed-objects-microservices.html
23•pjmlp•3d ago•16 comments

Finding all regex matches has always been O(n²)

https://iev.ee/blog/the-quadratic-problem-nobody-fixed/
218•lalitmaganti•4d ago•59 comments

Pompeii's battle scars linked to an ancient 'machine gun'

https://phys.org/news/2026-03-pompeii-scars-linked-ancient-machine.html
79•pseudolus•3d ago•21 comments

IRIX 3dfx Voodoo driver and glide2x IRIX port

https://sdz-mods.com/index.php/2026/03/23/irix-3dfx-voodoo-driver-glide2x-irix-port/
75•zdw•12h ago•9 comments

An incoherent Rust

https://www.boxyuwu.blog/posts/an-incoherent-rust/
202•emschwartz•20h ago•107 comments

Trivy under attack again: Widespread GitHub Actions tag compromise secrets

https://socket.dev/blog/trivy-under-attack-again-github-actions-compromise
213•jicea•2d ago•73 comments

A retro terminal music player inspired by Winamp

https://github.com/bjarneo/cliamp
105•mkagenius•14h ago•29 comments

I built an AI receptionist for a mechanic shop

https://www.itsthatlady.dev/blog/building-an-ai-receptionist-for-my-brother/
289•mooreds•1d ago•292 comments

Sunsetting the Techempower Framework Benchmarks

https://github.com/TechEmpower/FrameworkBenchmarks/issues/10932
48•nbrady•9h ago•11 comments

How I'm Productive with Claude Code

https://neilkakkar.com/productive-with-claude-code.html
210•neilkakkar•14h ago•127 comments

Ju Ci: The Art of Repairing Porcelain

https://thesublimeblog.org/2025/03/13/ju-ci-the-ancient-art-of-repairing-porcelain/
96•lawrenceyan•2d ago•10 comments