all 33 comments

sorted by: hot top controversial new old
[–] 65 points 2 years ago* (4 children)

zip is better than tar.gz for some applications though.

notably, individual files can be read from a zip archive without unpacking the whole archive, different than tar.gz files.

tar.gz files are only better if you pack and unpack the whole archive at once, but even then, they don't have much advantage. the major advantage is that you can pipe the output of tar creation over the network to another computer who decompresses the tar immediately, thus transferring a folder. zip has index at beginning/start, so it requires seek when writing or skip when reading, so it can't be streamed.

  • source
  • hideshow 4 child comments
  • [–] 15 points 2 years ago

    One thing that I find useful is that you can do --filesync with an existing zip, which means it only updates the files if the date/size don't match. This saves a bunch of time on large archives that don't need to be created from scratch every time.

  • source
  • parent
  • [–] 10 points 2 years ago

    But afaik with many files in an archive a tar.gz manages higher compression ratios since each file isn't compressed individually. It probably isn't relevant unless archiving a large amount of data though.

    Does .zip have other advantages though? I don't often need just one file from an archive anyway.

  • source
  • parent
  • honestly most of the time if I'm sending an archive, my main goal is to bundle the files, not ideal compression. zip is the most compatible format

  • source
  • [–] 42 points 2 years ago (13 children)
  • [–] 37 points 2 years ago (10 children)

    Oddly, Windows can natively handle .tar.gz now. Found that out the other day.

  • source
  • parent
  • hideshow 10 child comments
  • [–] 14 points 2 years ago (7 children)

    Probably part of that Windows Subsystem for Linux

  • source
  • parent
  • hideshow 7 child comments
  • [–] 28 points 2 years ago (5 children)

    At what point is windows just gonna become Linux with a proprietary frontend.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 14 points 2 years ago (4 children)

    That idea has been thrown around A LOT.

    I don't think it'll ever happen tbh

  • source
  • parent
  • hideshow 4 child comments
  • [–] 6 points 2 years ago (1 child)

    That’s definitely not going to happen. One of the few things Windows is doing right is backwards compatibility. Have 30 year old exe? It usually just runs fine. In my experience a lot of business logic relies on this compatibility. It would be stupid from a business standpoint to break this compatibility. It would upset a lot of paying customers.

    But wait a second. I’m speaking about Microsoft. All we wanted was a Windows 7 with a modernized GUI. And we got Windows 10 with Cortana, multiple Control panels, redundant settings that contradicted each other. We got Windows 11 with ads everywhere, Copilot, enforced MS accounts and so on.

    It would perfectly make sense to switch to Linux. They could fire a lot of devs. I’m sure they would save a lot of money for a couple of seconds.

    Obviously they don’t give a shit about customers, so this sounds like a normal thing Microsoft could do for short term gains.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 2 years ago

    All we wanted was a Windows 7 with a modernized GUI.

    What? No, keep it the same but keep on supplying security patches. The whole "modernized GUI" was what gave us the wonderful new GUI of Windows 8!

  • source
  • parent
  • Just as long as it isn't a .rar.

  • source
  • [–] 15 points 2 years ago (1 child)

    Mm zips :3

    I've had quite a few, cause a lot of mods for games come in zip files x3

  • source
  • hideshow 1 child comment
  • [–] 14 points 2 years ago (1 child)

    Not sure what the issue with zip files is? They're supported on basically every device and afaik are not a proprietary format or anything. Seems better to me than rar or 7z. Tar.gz is also fine, but * don't really see why one would care

  • source
  • hideshow 1 child comment
  • [–] 10 points 2 years ago (2 children)

    Bc Linux is a .tar nation?

  • source
  • hideshow 2 child comments
  • [–] 9 points 2 years ago (2 children)

    What am I missing? What's wrong with zip? Should tar.gz be used instead?

    Anti Commercial-AI license

  • source
  • hideshow 2 child comments
  • [–] 5 points 2 years ago

    Considering even Windows can open it without any third-party program, I would say it's quite useful.

  • source
  • [–] 1 point 2 years ago

    A zip file? Thanks, that will fit in the trash bin quite nicely.

  • source