• insomniac_lemon@kbin.social
    link
    fedilink
    arrow-up
    54
    arrow-down
    2
    ·
    edit-2
    8 months ago

    KiB, MiB, GiB etc are more clear. It makes a big difference especially 1TB vs 1TiB.

    The American way would probably be still using the units you listed but still meaning 1024, just to be confusing.

    Either that or maybe something that uses physical measurement of a hard-drive (or CD?) using length. Like that new game is 24.0854 inches of data (maybe it could be 1.467 miles of CD?).

    • survivalmachine@beehaw.org
      link
      fedilink
      arrow-up
      43
      arrow-down
      6
      ·
      8 months ago

      The American way would probably be still using the units you listed but still meaning 1024, just to be confusing.

      American here. This is actually the proper way. KB is 1024 bytes. MB is 1024 KB. The terms were invented and used like that for decades.

      Moving to ‘proper metric’ where KB is 1000 bytes was a scam invented by storage manufacturers to pretend to have bigger hard drives.

      And then inventing the KiB prefixes was a soft-bellied capitulation by Europeans to those storage manufacturers.

      Real hackers still use Kilo/Mega/Giga/Tera prefixes while still thinking in powers of 2. If we accept XiB, we admit that the scummy storage vendors have won.

      Note: I’ll also accept that I’m an idiot American and therefore my opinion is stupid and invalid, but I stand by it.

      • Papamousse@beehaw.org
        link
        fedilink
        arrow-up
        18
        arrow-down
        2
        ·
        8 months ago

        Absolutely, I started computers in 1981, for me 1K is 1024 bytes and will always be. 1000 bytes is a scam

      • kbal@fedia.io
        link
        fedilink
        arrow-up
        12
        ·
        edit-2
        8 months ago

        Calling 1048576 bytes an “American megabyte” might be technically wrong, but it’s still slightly less goofy-looking than the more conventional “MiB” notation. I wish you good luck in making it the new standard.

      • WalrusDragonOnABike [they/them]@reddthat.com
        link
        fedilink
        arrow-up
        12
        arrow-down
        4
        ·
        edit-2
        8 months ago

        Kilo comes from greek and has meant 1000 for 1000’s of years. If you want 2^10 to be represented using greek prefixes, it better involve “deca” and “di”. Kilo (and di) would be usable for roughly 1.071508607186267 x 10^301 byte. KB was wrong when it was invented, but they were only wrong for decades at least.

        • survivalmachine@beehaw.org
          link
          fedilink
          arrow-up
          7
          arrow-down
          3
          ·
          8 months ago

          Computers have ruled the planet for longer than the Greeks ever did. The history lesson is appreciated, but we’re living in the future, now, and the future is digital.

      • Kairos@lemmy.today
        link
        fedilink
        arrow-up
        11
        arrow-down
        6
        ·
        8 months ago

        No the correct way is to use the proper fucking metric standard. Use Mi or Gi if you need it. We have computers that can divide large numbers now. We don’t need bit shifting.

        • nybble41@programming.dev
          link
          fedilink
          arrow-up
          4
          arrow-down
          1
          ·
          8 months ago

          The metric standard is to measure information in bits.

          Bytes are a non-metric unit. Not a power-of-ten multiple of the metric base unit for information, the bit.

          If you’re writing “1 million bytes” and not “8 million bits” then you’re not using metric.

          If you aren’t using metric then the metric prefix definitions don’t apply.

          There is plenty of precedent for the prefixes used in metric to refer to something other than an exact power of 1000 when not combined with a metric base unit. A microcomputer is not one one-thousandth of a computer. One thousand microscopes do not add up to one scope. Megastructures are not exactly one million times the size of ordinary structures. Etc.

          Finally: This isn’t primarily about bit shifting, it’s about computers being based on binary representation and the fact that memory addresses are stored and communicated using whole numbers of bits, which naturally leads to memory sizes (for entire memory devices or smaller structures) which are powers of two. Though the fact that no one is going to do something as idiotic as introducing an expensive and completely unnecessary division by a power of ten for every memory access just so you can have 1000-byte MMU pages rather than 4096 also plays a part.

        • PowerCrazy@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 months ago

          Hey how is “bit shifting” different then division? (The answer may surprise you).

            • PowerCrazy@lemmy.ml
              link
              fedilink
              English
              arrow-up
              2
              ·
              8 months ago

              interesting, so does the computer have a special “base 10” ALU that somehow implements division without bit shifting?

              • nybble41@programming.dev
                link
                fedilink
                arrow-up
                4
                ·
                8 months ago

                In general integer division is implemented using a form of long division, in binary. There is no base-10 arithmetic involved. It’s a relatively expensive operation which usually requires multiple clock cycles to complete, whereas dividing by a power of two (“bit shifting”) is trivial and can be done in hardware simply by routing the signals appropriately, without any logic gates.

                • PowerCrazy@lemmy.ml
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  arrow-down
                  1
                  ·
                  8 months ago

                  In general integer division is implemented using a form of long division, in binary.

                  The point of my comment is that division in binary IS bitshifting. There is no other way to do it if you want the real answer. You can estimate, you can round, but the computational method of division is done via bitshifting of binarary expansions of numbers in an ALU.

        • ursakhiin@beehaw.org
          link
          fedilink
          arrow-up
          1
          ·
          8 months ago

          This is such a weird take to me. We don’t even colloquially discuss computer storage in terms of 1000.

          The Greek terms were used from the beginning of computing and the new terms of kibi and mebi (etc.) were only added in 1998 when Members it the IEC got upset. But despite that, most personal computers still report in the binary way. The decimal is only used on boxes for marketing terms.

    • Kairos@lemmy.today
      link
      fedilink
      arrow-up
      18
      arrow-down
      1
      ·
      8 months ago

      The difference really needs to be enforced.

      My ram is in GiB but advertised in GB ???

      • xionzui@sh.itjust.works
        link
        fedilink
        arrow-up
        7
        arrow-down
        4
        ·
        8 months ago

        Your RAM is in GiB and GB. You can measure it either way you prefer. If you prefer big numbers, you can say you have 137,438,953,472 bits of RAM

        • Consti@lemmy.world
          link
          fedilink
          arrow-up
          6
          ·
          8 months ago

          Pretty sure the commenter above meant that the their RAM was advertised as X GiB but they only got X GB, substitute X with 4/8/16/your amount

          • xionzui@sh.itjust.works
            link
            fedilink
            arrow-up
            8
            ·
            8 months ago

            As far as I know, RAM only comes in GiB sizes. There is some overhead that reduces the amount you see in the OS though. But that complaint is valid for storage devices if you don’t know the units and expect TB/GB on the box to match the numbers in Windows