this post was submitted on 01 Nov 2023
635 points (98.2% liked)

Technology

70162 readers
3149 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
 

Windows 11 adds native support for RAR, 7-Zip, Tar and other archive formats thanks to open-source library::undefined

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 75 points 2 years ago (4 children)

I wonder how long before I can send someone a .7z file without "hurr durr I can't open this".

Like, OpenDocument support exists in Office 2003 and I still encounter those who can't open a .odt file.

[–] [email protected] 15 points 2 years ago

#2040 take or leave it

[–] [email protected] 7 points 2 years ago

I just tell them to install 7zip. I'm not working around your inadequacy.

[–] [email protected] 2 points 2 years ago (7 children)

Serious question: why would one use .7z when .tar.gz and .tar.xz exist?

[–] [email protected] 22 points 2 years ago* (last edited 2 years ago) (1 children)

Why would you use any of them when zip exists?

For an average user they offer no advantage.

[–] [email protected] 1 points 2 years ago (1 children)

I know for a fact .tar.xz offers the best compression rate for my use case.

[–] [email protected] 8 points 2 years ago (1 children)

Then you aren't an average user.

[–] [email protected] 4 points 2 years ago

It also takes forever to pack.

I ran benchmarks for syslog compression/decompression, and ended up using plzip, which used lzma, just because it was the fastest decompression while still having only marginally worse ratio.

But it still takes forever to pack.

[–] [email protected] 16 points 2 years ago

Yeah definitely sounds just as simple /s

[–] [email protected] 6 points 2 years ago (2 children)

It's like when .zip was popular I guess?

Tar.gz is a two step thingy too (maybe under the hood 7z is too) so the extraction process always seems long?

[–] [email protected] 12 points 2 years ago (2 children)

Pro tip: Tar knows what to do if you try to untar a tar.gz file. It Just Works(tm).

[–] [email protected] 4 points 2 years ago (1 children)
[–] [email protected] 2 points 2 years ago (1 children)

Yes but can winzip do tape backups.

[–] [email protected] 3 points 2 years ago (1 children)

What do you use tape backups for?

[–] [email protected] 4 points 2 years ago

Nirvana bootlegs.

[–] [email protected] 1 points 2 years ago

Yeah I know, and it's only useful rarely as if you can extract directly to the target, you don't need to have an intermediate copy (or do intermediate copying). Really nitpicking ofc.

[–] [email protected] 2 points 2 years ago* (last edited 2 years ago)

Eh? 'tar xvf foo.tar.gz' is technically 2 steps I guess, but that's pretty well hidden from the user.

[–] [email protected] 5 points 2 years ago

7z files can be browsed without decompressing the contents, and tar.xyz archives preserve file system attributes like ownership. They have totally different use cases.

If I want to back up a directory on my drive, I would use tar.xz. But if I want to send some documents to other people, I would use 7z.

[–] [email protected] 5 points 2 years ago

.7z and .xz are (essentially) the same compression algorithm but it's applied either to the whole chunk of data, or to individual files. That has its pros and cons.

More practically though windows users don't know what the hell tarballs are, and I've even seen some bonkers handling like turning a tar.gz into a tar first that you then have to unpack.

[–] [email protected] 2 points 2 years ago

They're Windows users

[–] [email protected] -1 points 2 years ago (2 children)

Tared files are cancer and should never be used for any reason.

[–] [email protected] 4 points 2 years ago (1 children)

Clearly you've never used Linux

[–] [email protected] 3 points 2 years ago

Clearly you never needed that single file quickly from a 5gb and 12,000 files tgz archive.

[–] [email protected] 1 points 2 years ago (1 children)

Wtf are you on... It's literally just a way to turn a bunch of files into one. You can feed it into a makefile and make a single file installer like nothing. Apps are based on the concept. It's a key technology for all sorts of applications

It's so simple it works for anything, anywhere... It's like saying virtualization is cancer. It's often annoying when you have to interact with it directly, but everything we love is built on it

[–] [email protected] 1 points 2 years ago (1 children)

Tared compressed files are bad archives. You can't retrieve a single file without unpacking everything. You can't add new files or replace contents of existing files without unpacking and repacking everything. They are just very outdated and have poor design. There are no reasons to use them.

[–] [email protected] 1 points 2 years ago (1 children)

They're bad for storing files, but a great way to turn a folder into a file.

Installers don't need to be modified or used in part

[–] [email protected] 1 points 2 years ago (1 children)

Why do you continue talking about installers? That's not the reason people invented archives and compression.

[–] [email protected] 2 points 2 years ago (1 children)

Ok, you have this design, which every installer in the world uses. Some are more compressed, some are signed, some bootstrap a downloader - but at the end of the day, every downloadable installer uses the same basic concept. From Windows installers to dmg to flatpacks to app bundles - same basic idea.

A tarball is a bunch of files laid end to end, it's good for one thing and one thing only - treating a bunch of files as one. It's great at that... If you want to compress it, it's not context aware enough to let you decrepit them individually - they're encrypted as one file

It's a bad way to store compressed archived info, I'll grant you that, but it's a great way to share a program or library to reproduce a bunch of files that make no sense to handle individually.

For another example, what about the layers of a photo editing program? What about the individual tracks in a music editing program?

It's an incredibly useful pattern that is used in countless ways. It's simple, easy to implement, and used everywhere to great effect

[–] [email protected] 1 points 2 years ago (1 children)

Again, not the reason for archives.

[–] [email protected] 1 points 2 years ago (1 children)

... Do you think archives are just when you store old files on magnetic tape?

[–] [email protected] 1 points 2 years ago (1 children)

For fucks sake... That's what YOU think! And that's the problem! TAR is a shit archive format. Deal with it.

[–] [email protected] 1 points 2 years ago

LMAO that makes so much sense. No wonder you got all weird when I brought up installers. You're picturing a file in a folder that contains something you want

There's a lot of kinds of archives.

Tarballs don't suck, they're just not for you. You can go back to your blissful ignorance of how often you've used a tarball seamlessly without realizing it happened, because someone else understood the upside of the tech

[–] [email protected] -3 points 2 years ago* (last edited 2 years ago) (3 children)

Office support also exists for the majority of editors so why not just use what people are used to?

Why not just send a zip?

There's no advantage to the receiver for either of these.

[–] [email protected] 10 points 2 years ago

ODF works on everything. It's reliable and fully documented. The MS office implementation contradicts its own specification and breaks. A lot.

The PK-Zip file format was released in the year 1989. The compression is terrible by modern standards.

[–] [email protected] 4 points 2 years ago

Zip almost always results in larger archive files...