5 ms·
A couple of minor, but very irritating errors: > The singly-indirect pointer can address 1,024 * 1,024 / 4 = 1,024 * 256 = 262 KiB of data. 256 kilobytes, not
by a1369209993 6y ago
A couple of minor, but very irritating errors:
> The singly-indirect pointer can address 1,024 * 1,024 / 4 = 1,024 * 256 = 262 KiB of data.
256 kilobytes, not 262 'kibi'bytes.
> 1,024 * 256 * 256 = 67 Mi
> 1,024 * 256 * 256 * 256 = 17 Gi
64 and 16 respectively.
- pavehawk2007 6y agoIf that irritates you, please don't check the grammar and errant placement of commas! All jokes aside. Fixed, thanks.
- a1369209993 6y agoActually, the grammar seems fine? Or at least I haven't noticed any problems with it. TFA as a whole seems pretty good actually. The file sizes are still incorrect, though; it calls the units kilobytes now, but it still claims there's 262 of them. The seven blocks at the start would make it 263 KB, but I don't think that what you meant.
- Arnavion 6y ago>The file sizes are still incorrect, though; it calls the units kilobytes now, but it still claims there's 262 of them. 1024 * 1024 / 4 B = 262144 B = 262.144 KB = 256 KiB
- a1369209993 6y agoYes, exactly; 262144 bytes is 256 kilobytes.
- Arnavion 6y agoKB is kilobyte. KiB is kibibyte.
- Koshkin 6y ago> kibibyte I wonder if anyone uses this abomination of a word in real life though.
- a1369209993 6y agoNot that I know of; they're called kilobytes.
- a1369209993 6y agoYes, KB = kilobyte = 1024 byte.
- Arnavion 6y agoAt this point I can only assume I'm being trolled.
- kbenson 6y agoThis whole thread is confusing to me as well. Isn't the whole point of a kibibyte to work in increments of 1024, unlike kilo, which is actually 1000, as defined by the sciences long ago? So 1024 * 256 is 256 KiB by definition, since a Kibibyte is literally 1024 bytes, and the number of Kilobytes will by higher, since the number it represents is smaller.
- GolDDranks 6y agoEither user a1369209993 is unaware of the distinction ( https://en.wikipedia.org/wiki/Kibibyte https://en.wikipedia.org/wiki/Kibibyte ) or then they are deliberately ignoring it (My guess: to defend the old definition of kilobyte = 1024 bytes) to the point that their messages look like trolling.
- Thiez 6y agoReality will forcibly catch up with them when they try to buy a new harddrive.
- GolDDranks 6y ago262144 bytes; 262144 / 1024 = 256 kibibytes 262144 bytes; 262144 / 1000 ≈ 262 kilobytes
- jfkebwjsbx 6y agoIt is actually 256 KiB, not KB.