this post was submitted on 08 Aug 2024
1502 points (99.1% liked)

Programming

17672 readers
57 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

Friend who is not a software person sent me this tweet, which amused me as it did them. They asked if "runk" was real, which I assume not.

But what are some good examples of real ones like this? xz became famous for the hack of course, so i then read a bit about how important this compression algorithm is/was.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] runeko@programming.dev 51 points 4 months ago (1 children)

Pretty much every basic terminal command for linux. Grep is the one that comes to mind.

[โ€“] riskable@programming.dev 25 points 4 months ago (3 children)

The modern man uses ripgrep ๐Ÿ‘

[โ€“] dgriffith@aussie.zone 23 points 4 months ago (3 children)

But it's three more letters. No deal.

[โ€“] sudo@programming.dev 28 points 4 months ago (1 children)

Its going installed binary is rg.

[โ€“] dgriffith@aussie.zone 3 points 4 months ago

I shall begrudgingly consider it then, with much begrudgement.

[โ€“] blindbunny@lemmy.ml 10 points 4 months ago

You joke but this is facts

[โ€“] ReversalHatchery@beehaw.org 5 points 4 months ago

Alias. To gr, even!

[โ€“] hddsx@lemmy.ca 12 points 4 months ago (2 children)

What does that offer offer grep/egrep

[โ€“] refalo@programming.dev 34 points 4 months ago* (last edited 4 months ago)
  • much faster

  • proper unicode (and other encodings) support

  • automatic recursion (no extra flags needed)

  • can search inside compressed files/archives like gz/xz/zip (also see ripgrep-all) for even more archive support)

  • honors .gitignore and ignores binary/hidden files

probably a lot more things too

[โ€“] riskable@programming.dev 22 points 4 months ago

Speed and memory efficiency, mostly. If you ever have to grep for something in a large number of files ripgrep will be done while regular grep will only be reaching the 25% mark.