News for hackers. Stuff that matters.
Re:Modern HDDs have gotten somewhat better by themerone on Wednesday June 22, 2022 @01:22PM (#31839000)
I have to disagree. Computers measure storage in base 2, this is why it is people's expectation.

Marketers measure in base 10 because it lets them inflate the stated capacity in a way that isn't legally fraudulent.

Re:Modern HDDs have gotten somewhat better by wang_li on Wednesday June 22, 2022 @02:51PM (#31840215)
Computers access things in powers of 2 because we settled on a byte being 8 bits. We then proceeded to doing things in even multiple of bytes. A cache line, row in DRAM, registers, and a page of memory in your MMU are all some even multiple of bytes. And back in the day when we couldn't put 300 million transistors on a chip, because the systems work in binary, it was also quite useful to be able to do things like calculate the address of a pixel in the frame buffer by simply shifting the row index and adding the column index, meaning that something like 1024 pixels wide was much simpler to implement than 999 pixels wide.

There's lots of reasons why computers so often use powers of two and thus K being 2^10 instead of 10^3. But the word measure is probably not the best.

Re:Modern HDDs have gotten somewhat better by nickff on Wednesday June 22, 2022 @01:32PM (#31839124)
>"Computers measure storage in base 2"

What do you mean? 'Computers' don't measure storage, they execute programs. Humans (often programmers) are the ones who want to know about storage.

Re:Modern HDDs have gotten somewhat better by rzz3 on Wednesday June 22, 2022 @01:44PM (#31839295)
Those executed programs measure storage.
Re:Modern HDDs have gotten somewhat better by nickff on Wednesday June 22, 2022 @01:47PM (#31839330)
'Measuring' is a human paradigm.
Re:Modern HDDs have gotten somewhat better by wronglyprepaid on Wednesday June 22, 2022 @01:58PM (#31839512)
So is everything else related to computers. Humans made computers. Computers are a human paradigm.
Re:Modern HDDs have gotten somewhat better by nickff on Wednesday June 22, 2022 @02:05PM (#31839619)
No, many things related to 'computers' are determined by physics and chemistry. In any case, 'computer' is being used loosely (and poorly) here, which is why I have been putting it in single quotes. 'Computer' can mean many things.
Re:Modern HDDs have gotten somewhat better by dingleberry420 on Wednesday June 22, 2022 @01:46PM (#31839314)
Re:Modern HDDs have gotten somewhat better by nickff on Wednesday June 22, 2022 @01:49PM (#31839375)
If you look at register size, you'll believe that different processors use different 'bases', depending on whether they're 8-bit, 16-bit, 32-bit, or 64-bit...
Re:Modern HDDs have gotten somewhat better by dingleberry420 on Wednesday June 22, 2022 @01:52PM (#31839407)
And it just happens to be a coincidence those are all powers of 2?
Re:Modern HDDs have gotten somewhat better by taffer on Wednesday June 22, 2022 @02:48PM (#31840158)
There were also 12, 24, 36 and 48 bit computers. 32 Bit just won because of System/360.
Re:Modern HDDs have gotten somewhat better by nickff on Wednesday June 22, 2022 @01:56PM (#31839486)
I understand why we use binary, and the implications on processors, but I still think it is wrong to say: "Computers measure storage in base 2"
Re:Modern HDDs have gotten somewhat better by trashtester on Wednesday June 22, 2022 @02:58PM (#31840309)
Almost all numbers inside computers are base 2 (for floats, the exponent and fraction are one such number each).

Base 10 is something that is primarily used for presentation to humans.

We all know this, this is HN....

Re:Modern HDDs have gotten somewhat better by dehugger on Wednesday June 22, 2022 @08:30PM (#31843686)
Fine, the humans that use computers measure storage in base 2. What a pedantic hill to die on.