Live data from Hacker News

1 kilobyte is precisely 1000 bytes?

waspdev.com

31–40 of 430 posts

Re: 1 kilobyte is precisely 1000 bytes?

#31
post #16

One thing that annoys me is: Why don’t kilobyte continue to mean 1024 and introduce kilodebyte to mean 1000. Byte, to me implies a binary number system, and if you want to introduce a new nomenclature to reduce confusion, give the new one a new name and let the older of more prevalent one in its domain keep the old one…

Because kilo- already has a meaning. And both usages of kilobyte were (and are) in use. If we are going to fix the problem, we might as well fix it right.

Sure outside of computing in other science it has a meaning but in binary computing traditionally prefix + byte implied binary number quantities.

Many things acquire domain specific nuanced meaning ..

Re: 1 kilobyte is precisely 1000 bytes?

#32
post #14

Earlier quoted context omitted.

Is it? Outside of Windows, I rarely ever see KB used to mean 1024 anymore. Linux and Mac usually uses KB for 1000, and "K" or "Ki" or "KiB" for 1024.

KiB is a an abbreviation for "kilobyte" which emphasizes that it means 1024.

No it’s not. KiB is an abbreviation for kibibyte

Eg https://en.wikipedia.org/wiki/Kilobyte

Re: 1 kilobyte is precisely 1000 bytes?

#34
post #26

Final edit: This ambiguity is documented at least back to 1984, by IBM, the pre-eminent computer company of the time. In 1972 IBM started selling the IBM 3333 magnetic disk drive. This product catalog [0] from 1979 shows them marketing the corresponding disks as "100 million bytes" or "200 million bytes" (3336 mdl 1 and 3336 mdl 11, respectively). By 1984, those same disks were marketed in the "IBM Input/Output Devic…

At this point I just wish 2^10 didn't end up so close to 1000.

To avoid confusion, I always use "kilobyte" to refer to exactly 512 bytes.

Re: 1 kilobyte is precisely 1000 bytes?

#36

I like how the GNU coreutils seem to have done. They use real, 1024-byte kilobytes by default, but print only the abbreviation of the prefix so it's just 10K or 200M and people can pretend it stands for some other silly word if they want. You can use `--si` for fake, 1000-byte kilobytes - trying it it seems weird that these are reported with a lowercase 'k' but 'M' and so on remain uppercase.

. . . it seems weird that these are reported with a lowercase 'k' but 'M' and so on remain uppercase.

For SI units, the abbreviations are defined, so a lowercase k for kilo and uppercase M for mega is correct. Lower case m is milli, c is centi, d is deci. Uppercase G is giga, T is tera and so on.

https://en.wikipedia.org/wiki/International_System_of_Units#...

Re: 1 kilobyte is precisely 1000 bytes?

#37
post #20

Final edit: This ambiguity is documented at least back to 1984, by IBM, the pre-eminent computer company of the time. In 1972 IBM started selling the IBM 3333 magnetic disk drive. This product catalog [0] from 1979 shows them marketing the corresponding disks as "100 million bytes" or "200 million bytes" (3336 mdl 1 and 3336 mdl 11, respectively). By 1984, those same disks were marketed in the "IBM Input/Output Devic…

You've got it exactly the wrong way around. And that with such great confidence! There was always a confusion about whether a kilobyte was 1000 or 1024 bytes. Early diskettes always used 1000, only when the 8 bit home computer era started was the 1024 convention firmly established. Before that it made no sense to talk about kilo as 1024. Earlier computers measured space in records and words, and I guess you can see h…

It was earlier than the 90s, and came with popular 8-bit CPUs in the 80s. The Z-80 microprocessor could address 64kb (which was 65,536 bytes) on its 16-bit address bus.

Similarly, the 4104 chip was a "4kb x 1 bit" RAM chip and stored 4096 bits. You'd see this in the whole 41xx series, and beyond.

Re: 1 kilobyte is precisely 1000 bytes?

#38
> 1 kilobyte is precisely 1000 bytes

Agreed. For the naysayers out there, consider these problems:

* You have 1 "MB" of RAM on a 1 MHz system bus which can transfer 1 byte per clock cycle. How many seconds does it take to read the entire memory?

* You have 128 "GB" of RAM and you have an empty 128 GB SSD. Can you successfully hibernate the computer system by storing all of RAM on the SSD?

* My camera shoots 6000×4000 pixels = exactly 24 megapixels. If you assume RGB24 color (3 bytes per pixel), how many MB of RAM or disk space does it take to store one raw bitmap image matrix without headers?

The SI definitions are correct: kilo- always means a thousand, mega- always means a million, et cetera. The computer industry abused these definitions because 1000 is close to 1024, creating endless confusion. It is a idiotic act of self-harm when one "megahertz" of clock speed is not the same mega- as one "megabyte" of RAM. IEC 60027 prefixes are correct: there is no ambiguity when kibi- (Ki) is defined as 1024, and it can coexist beside kilo- meaning 1000.

The whole point of the metric system is to create universal units whose meanings don't change depending on context. Having kilo- be overloaded (like method overloading) to mean 1000 and 1024 violates this principle.

If you want to wade in the bad old world of context-dependent units, look no further than traditional measures. International mile or nautical mile? Pound avoirdupois or Troy pound? Pound-force or pound-mass? US gallon or UK gallon? US shoe size for children, women, or men? Short ton or long ton? Did you know that just a few centuries ago, every town had a different definition of a foot and pound, making trade needlessly complicated and inviting open scams and frauds?

Re: 1 kilobyte is precisely 1000 bytes?

#40

Final edit: This ambiguity is documented at least back to 1984, by IBM, the pre-eminent computer company of the time. In 1972 IBM started selling the IBM 3333 magnetic disk drive. This product catalog [0] from 1979 shows them marketing the corresponding disks as "100 million bytes" or "200 million bytes" (3336 mdl 1 and 3336 mdl 11, respectively). By 1984, those same disks were marketed in the "IBM Input/Output Devic…

> The wish is for "kilobyte" to have one meaning.

Which is the reality. "kilobyte" means "1000 bytes". There's no possible discussion over this fact.

Many people have been using it wrong for decades, but its literal value did not change.

Post reply on HN