News for hackers. Stuff that matters.
Re:Weird Al had 100 gigs of RAM by goatcode on Tuesday September 06, 2022 @05:04PM (#32743197)
>MiB

That 'i' is silly. As is the one in "GiB."

Re:Weird Al had 100 gigs of RAM by kelnos on Tuesday September 06, 2022 @05:48PM (#32743652)
They're binary prefixes[0]. If we go by the traditional meaning of the SI prefixes, "M" means "10^6", so 1MB is 1,000,000 bytes. 1MiB, by contrast, is 1,048,576 bytes (1024*1024, or 2^20), which would be more correct for something like RAM.

Yes, in the past the SI prefixes were "abused" for power-of-two quantities, but nowadays it's best to be more precise, as many computer-related things actually do come in power-of-ten quantities, not just power-of-two quantities. For example, my NVMe drive's capacity is actually 2TB, not 2TiB[1].

[0] https://en.wikipedia.org/wiki/Binary_prefix

[1] Ok, ok, it's actually showing up in `parted` as 2,000,398,934,016 bytes, which is a little bit more (~380MiB) than 2TB, but considerably less (~185GiB) than 2TiB.

Re:Weird Al had 100 gigs of RAM by pessimizer on Tuesday September 06, 2022 @06:41PM (#32744130)
> many computer-related things actually do come in power-of-ten quantities

They don't have to do this, they do it because it confuses people.

Re:Weird Al had 100 gigs of RAM by goatcode on Wednesday September 07, 2022 @10:27AM (#32751065)
Alright, I'm on board. Thank you for the information & references.
Re:Weird Al had 100 gigs of RAM by m2fkxy on Tuesday September 06, 2022 @05:21PM (#32743358)
why? how else do you designate binary prefixes?
Re:Weird Al had 100 gigs of RAM by icedchai on Tuesday September 06, 2022 @06:07PM (#32743854)
If you've been in computing since, say, the 90's, you don't. It was always based on context. Memory = binary, bandwidth = decimal, disk/SSD storage = decimal (maybe!)
Re:Weird Al had 100 gigs of RAM by Kwpolska on Tuesday September 06, 2022 @06:21PM (#32743981)
Windows (and most of the world) doesn’t bother, 1 KB = 1024 B. https://devblogs.microsoft.com/oldnewthing/20090611-00/?p=17...