News for hackers. Stuff that matters.
Re:A List of Hacker News's Undocumented Features and Behavio... by jlg23 on Monday April 19, 2021 @06:22PM (#26868545)
So that I can again drop the link that busts the "8 bits per byte"-myth ;) http://www.lispworks.com/documentation/HyperSpec/Body/f_by_b...
Re:A List of Hacker News's Undocumented Features and Behavio... by samatman on Monday April 19, 2021 @06:43PM (#26868703)
I've been around long enough to have had to roll my eyes and say "fine, octet" in conversation.

But I'm grateful that it's mostly stopped happening, let's not revive it!

Re:A List of Hacker News's Undocumented Features and Behavio... by sammorrowdrums on Monday April 19, 2021 @10:51PM (#26870204)
True, however as you are no doubt aware, one more digit or one less would double / half the karma requirement which is somewhat extreme, and it would no longer be representable by two hex digits.

The CSS colours are specifically 3 octets written as 2 digit hex, so you so while I like the broader idea that "it's a byte of karma" is sufficient, knowledge of 2 digit hex codes also applies to the privilege directly.

Plus, non-standard byte lengths would be a much more niche reference, and I don't think people would get it.

Re:A List of Hacker News's Undocumented Features and Behavio... by FridayoLeary on Monday April 19, 2021 @09:35PM (#26869817)
for fellow dumbells who can't even the their laces may i ask; eh?

Can you elaborate? My older relative who studied computers thought byte= 8 bits. I also thought so. My ego is taking a hit tonight.

Re:A List of Hacker News's Undocumented Features and Behavio... by bombcar on Monday April 19, 2021 @09:47PM (#26869864)
A byte is a collection of bits - now almost universally standardized on 8 bits because of network protocols and encodings - but older computers the byte wasn’t as important as THE WORD which was the bit width the machine could process at once. We now refer to 128bit instructions but those are more properly an instruction with a 128bit word.

Lisp provides the ability for arbitrarily defined bytes.

Re:A List of Hacker News's Undocumented Features and Behavio... by FridayoLeary on Monday April 19, 2021 @10:01PM (#26869939)
so i wasn't totally wrong. It's mainly semantics.

Since i'm here, why do most storage mediums i.e usb, phones sd ostensibly follow this method (1gb 2,4,8!,16,32 etc) and why are they almost always a few hundreds mb off?

Re:A List of Hacker News's Undocumented Features and Behavio... by philwelch on Monday April 19, 2021 @10:50PM (#26870198)
A kilobyte can be defined as either 1024 bytes or 1000 bytes. Similarly, a megabyte could be 1024 kilobytes or 1000 kilobytes, and so forth. Really, 1024 is the number that makes more sense, but hard drive manufacturers promoted the “1000 bytes” interpretation so they could advertise their hard drives as having more megabytes.

Some standards organizations tried to “solve” the issue by defining a “kibibyte” as 1024 bytes and so forth, but you only ever see those in abbreviated forms (ie KiB). I personally hate that convention; the words are aesthetically atrocious and were only invented to please pedants (who annoy me) and dishonest marketing people (whom I detest even more).

Re:A List of Hacker News's Undocumented Features and Behavio... by atat7024 on Tuesday April 20, 2021 @09:49AM (#26874607)
Isn't this the difference between speed notation and size notation?
Re:A List of Hacker News's Undocumented Features and Behavio... by D-Coder on Monday April 19, 2021 @11:32PM (#26870404)
Some older machines had different byte lengths. I believe Burroughs had 7-bit bytes. PDP-10s had 36-bit words which could be divided into any byte size that you liked; 7 bits was common, but if you needed them you could get 1-bit bytes, 6 bit (which was used to encode filenames), 8 bits, whatever.