this post was submitted on 27 Dec 2023
96 points (68.2% liked)

Technology

60071 readers
3674 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 content.
  3. Be excellent to each another!
  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, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 2 years ago
MODERATORS
 

I often find myself explaining the same things in real life and online, so I recently started writing technical blog posts.

This one is about why it was a mistake to call 1024 bytes a kilobyte. It's about a 20min read so thank you very much in advance if you find the time to read it.

Feedback is very much welcome. Thank you.

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

Power of 2 makes more sense to the computer. 1000 makes more sense to people.

[–] [email protected] 6 points 1 year ago (1 children)

Of course. The thing is, though, that if the units had been consistent to begin with, there wouldn't be anywhere near as much confusion. Most people would just accept MiB, GiB, etc. as the units on their storage devices. People already accept weird values for DVDs (~4.37GiB / 4.7GB), so if we had to use SI units then a 256GiB drive could be marketed as a ~275GB drive (obviously with the non-rounded value in the fine print, e.g. "Usable space approx. 274.8GB").

[–] [email protected] 4 points 1 year ago

They were consistent until around 2005 (it's an estimate) when drives got large enough where the absolute difference between the two forms became significant. Before that everyone is computing used base 2 prefixes.

I bet OP does too when talking about RAM.

[–] [email protected] -3 points 1 year ago (1 children)

It's not as simple as that. A lot of "computer things" are not exact powers of two. A prominent example would be HDDs.

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (1 children)

In terms of storage 1000 and 1024 take the same amount of ~~bytes~~ bits to represent. So from a computer point of view 1024 makes a lot more sense.

It's just a binary Vs decimal thing. 1000 is not nicely represented in binary the same as 1024 isn't in decimal.

Edit: was talking about storing the actual number.

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

In terms of storage 1000 and 1024 take the same amount of bytes.

What? No. A terabyte in 1024 units is 8,796,093,022,208 bits. In 1000 units it's 8,000,000,000,000 bits.

The difference is substantial with larger numbers.

[–] [email protected] -2 points 1 year ago* (last edited 1 year ago)

Both require the same amount of bits again. So the second one makes more sense for a computer.