• @gandalf_der_12te@discuss.tchncs.de
    link
    fedilink
    65
    edit-2
    5 days ago

    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.

    • piefood
      link
      fedilink
      English
      145 days 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.

    • Ziglin (it/they)
      link
      fedilink
      English
      105 days 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.

  • 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

            • @abcd@feddit.org
              link
              fedilink
              English
              65 days ago

              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.

              • Smee
                link
                fedilink
                35 days 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!

            • Midnight Wolf
              link
              fedilink
              English
              5
              edit-2
              5 days ago

              MS: you mean we can fire 95% of the windows devs, and nerds on the internet will just do the work for us?

              MS: we love Linux now!

              E: stonks 📈

      • Ziglin (it/they)
        link
        fedilink
        English
        65 days ago

        It also came with tar preinstalled in cmd for a while before supporting it in their GUI.

  • @gerryflap@feddit.nl
    link
    fedilink
    135 days ago

    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

    • Flax
      link
      fedilink
      English
      125 days ago

      I think it’s a pun. What in tarnation