CS101++ - What Are Nibbles, Bits, Bytes and Words
Вставка
- Опубліковано 1 чер 2024
- ☟☟ Awesome T-Shirts! Sponsors! Books! ☟☟
Upcoming Workshop: Understanding Object Lifetime, C++ On Sea, July 2, 2024
► cpponsea.uk/2024/sessions/und...
Upcoming Workshop: C++ Best Practices, NDC TechTown, Sept 9-10, 2024
► ndctechtown.com/workshops/c-b...
github.com/lefticus/cpp_weekl... for open ended conversions about CS101++ videos
T-SHIRTS AVAILABLE!
► The best C++ T-Shirts anywhere! my-store-d16a2f.creator-sprin...
WANT MORE JASON?
► My Training Classes: emptycrate.com/training.html
► Follow me on twitter: / lefticus
SUPPORT THE CHANNEL
► Patreon: / lefticus
► Github Sponsors: github.com/sponsors/lefticus
► Paypal Donation: www.paypal.com/donate/?hosted...
GET INVOLVED
► Video Idea List: github.com/lefticus/cpp_weekl...
JASON'S BOOKS
► C++23 Best Practices
Leanpub Ebook: leanpub.com/cpp23_best_practi...
► C++ Best Practices
Amazon Paperback: amzn.to/3wpAU3Z
Leanpub Ebook: leanpub.com/cppbestpractices
JASON'S PUZZLE BOOKS
► Object Lifetime Puzzlers Book 1
Amazon Paperback: amzn.to/3g6Ervj
Leanpub Ebook: leanpub.com/objectlifetimepuz...
► Object Lifetime Puzzlers Book 2
Amazon Paperback: amzn.to/3whdUDU
Leanpub Ebook: leanpub.com/objectlifetimepuz...
► Object Lifetime Puzzlers Book 3
Leanpub Ebook: leanpub.com/objectlifetimepuz...
► Copy and Reference Puzzlers Book 1
Amazon Paperback: amzn.to/3g7ZVb9
Leanpub Ebook: leanpub.com/copyandreferencep...
► Copy and Reference Puzzlers Book 2
Amazon Paperback: amzn.to/3X1LOIx
Leanpub Ebook: leanpub.com/copyandreferencep...
► Copy and Reference Puzzlers Book 3
Leanpub Ebook: leanpub.com/copyandreferencep...
► OpCode Puzzlers Book 1
Amazon Paperback: amzn.to/3KCNJg6
Leanpub Ebook: leanpub.com/opcodepuzzlers_book1
RECOMMENDED BOOKS
► Bjarne Stroustrup's A Tour of C++ (now with C++20/23!): amzn.to/3X4Wypr
AWESOME PROJECTS
► The C++ Starter Project - Gets you started with Best Practices Quickly - github.com/cpp-best-practices...
► C++ Best Practices Forkable Coding Standards - github.com/cpp-best-practices...
O'Reilly VIDEOS
► Inheritance and Polymorphism in C++ - www.oreilly.com/library/view/...
► Learning C++ Best Practices - www.oreilly.com/library/view/... - Наука та технологія
in 30 years, I never used or heard the word nibble.
Usually masked by hexadecimal notation, one hex numeral = one nibble
Idk if some planets aligned or something but I'm unexpectedly learning C++ today
Nitpick: According to ISO 14882, a byte is not 8 bits, but the smallest addressable unit on the target architecture. On some DSP:s that would mean 16 or even 32 bits.😀
That's why (some?) RFC talk about octets in stead of bytes.
Yesterday my company was moving office. In the new office our software team was installing new desks, for which we needed to mount some cable management system. We borrowed an electric screwdriver from the production department. But some guys weren't very proficient with it. When we returned the machine the owner was complaining we damaged the screw bits. I told him "well, us software developers need at least 8 bits to get the job done"....
Yeah, bad joke. True story though.
"Word" was more clear in the old days before the byte was invented, and made far less clear after the 8086 became popular and everyone lazily defaulted to its architecture as a sloppy definition of everything.
But even way back in the pre-byte mainframe days you had to clarify if you were discussing memory addressing or the register size for a single step arithmetic-logic operation. (Technically still a distinction but we pretend the whole machine is 64b or 32b for convienience and ease of use in general purpose registors. Many 64b machines have had 48b physical addressing to reduce wasted die area and power budget, 2^48 is still like ~250TB)
At 03:45 you explain that the size of a 64-bit word is 4 bytes, which I think is not true. 64-bits is 8 bytes. Maybe you can apply the correction on the Captions of the video.
Yes, that's a mistake, thank you! But I'm drastically limited in how I can correct the video. I'm going to make a note on the discussion forum.
github.com/lefticus/cpp_weekly/discussions/365
I happen to know my pc is a 64-bit processor with a 16-bit wird size [its an Intel 12900h which uses amdx64 which defines the word size as 2 bytes (for backward compatibility with the 286)]
Guys you better of reading wikipedia pages on these concepts for twice the time, and get x10 deeper knowledge. Or books l like "CODE The Hidden Language of Computer Hardware and Software by Petzold"