| Post Reply | RetroFed Forum Forum Index
» Programmer Humor
Page 2 of 2 Goto page « First Previous 1, 2 |
| Author | Message | ||
|---|---|---|---|
|
adb
lemmy.ml
adb@lemmy.ml Joined: 2025-03-04 |
This is a single byte, so it's represented the same in big-endian vs little-endian. Endianness defines the order of bytes, not individual bits
Indeed, endianness is the order of bytes, my bad. |
||
| 2 | |||
|
adb
lemmy.ml
adb@lemmy.ml Joined: 2025-03-04 |
Ya, but we pretty much always write it with most significant on the left. The endianness is more to do with the order transmitted when serialized. Or are there cases where people actually write it backwards?
The way I see it, if you want to be pedantic about it (it being a joke photo, so potentially unintentionally reversed by the camera, of a cake which is in 3d space and can be seen in both directions) you might as well do it properly and acknowledge that different orders exist for bits. Indeed writing conventions are also a good point, however this is not writing. People actually working at bit level are probably more likely to see bits on a scope (so in both LSb or MSb order) than as 1 and 0s written on a piece of paper or a screen. |
||
| 2 | |||
|
ITGuyLevi
programming.dev
ITGuyLevi@programming.dev Joined: 2023-08-02 |
Even in little endian you don't have trailing zeroes
I'm not seeing any trailing zeros if that is in little endian, you start little end first and it isn't limited to a silly 8-bits, it can be used to represent numbers far larger than 255 if continued (though then it wouldn't be representative of a byte and half the joke would be lost). |
||
| 1 | |||
MaggiWuerze
feddit.org
MaggiWuerze@feddit.orgJoined: 2024-07-02 |
I'm not seeing any trailing zeros if that is in little endian, you start little end first and it isn't limited to a silly 8-bits, it can be used to represent numbers far larger than 255 if continued (though then it wouldn't be representative of a byte and half the joke would be lost).
If you read from the right (as is implied by calling the result 17), there are 3 trailing zeroes:
These would usually be omitted when writing like this. The fact they are not makes this 136 |
||
| 2 | |||
|
ZoteTheMighty
lemmy.zip
ZoteTheMighty@lemmy.zip Joined: 2025-06-27 |
I did this once, but just had holes instead of unlit candles. I only had like 3 or 4 of them, and nobody's got time to go buy candles when everyone's about to sing happy birthday. |
||
| 6 | |||
|
wewbull
feddit.uk
wewbull@feddit.uk Joined: 2023-06-22 |
Little-endian for the win!
I was just thinking about what you'd see from the other side of the table. |
||
| 2 | |||
|
CanadaPlus
lemmy.sdf.org
CanadaPlus@lemmy.sdf.org Joined: 2023-06-12 |
Light all the candles as an announcement that you're gonna start having kids and hope she'll get pregnant in exactly three months. Not in 2, not in 4, but in 3 precisely.
You win Lemmy, I need this one explained. |
||
| 1 | |||
|
CanadaPlus
lemmy.sdf.org
CanadaPlus@lemmy.sdf.org Joined: 2023-06-12 |
with 8 bit? true, with 32 bit you might have a chance to see the sun die, but.... there are just 8 candles
64 bits and you get to watch heat death slowly set in. (Or, y'know, cosmological catastrophe depending on the full physics) |
||
| 3 | |||
|
CanadaPlus
lemmy.sdf.org
CanadaPlus@lemmy.sdf.org Joined: 2023-06-12 |
I read 136 🤣
Look, an OpenRISC user. |
||
| 3 | |||
|
CanadaPlus
lemmy.sdf.org
CanadaPlus@lemmy.sdf.org Joined: 2023-06-12 |
Because of the Hayflick limit, 7 candles should be enough... but only for now, hopefully.
That's because humanity dates back to the teletype era, before bytes. It was decided that saving candles was more important than having the extra century of lifespan. Now, by convention, the leftmost candle being unlit indicates it's a standard human and not a member of another species-alphabet, possibly requiring multiple cakes. (On a serious note, aging is not necessarily thought to be as simple as just the Hayflick limit) |
||
| 3 | |||
|
CanadaPlus
lemmy.sdf.org
CanadaPlus@lemmy.sdf.org Joined: 2023-06-12 |
I only buy ipv6 cakes, so I'm good.
You probably know, but someone is going to point out an ipv4 address is four bytes. |
||
| 4 | |||
|
EndlessNightmare
reddthat.com
EndlessNightmare@reddthat.com Joined: 2024-03-24 |
No liches allowed |
||
| 1 | |||
|
ITGuyLevi
programming.dev
ITGuyLevi@programming.dev Joined: 2023-08-02 |
If you read from the right (as is implied by calling the result 17), there are 3 trailing zeroes: These would usually be omitted when writing like this. The fact they are not makes this 136
I think you missed the point, that I was making, albeit poorly (little endian still requires leading zeros when not transmitting in a byte format, otherwise you don't know if the first on signal is for 1, 256, 1024, etc.) it's all good though |
||
| 2 | |||
MaggiWuerze
feddit.org
MaggiWuerze@feddit.orgJoined: 2024-07-02 |
I think you missed the point, that I was making, albeit poorly (little endian still requires leading zeros when not transmitting in a byte format, otherwise you don't know if the first on signal is for 1, 256, 1024, etc.) it's all good though
How would 3 leading zeros in a byte help coming to the conclusion that this is supposed to be 17? I'm generally curious, sice theoretical informatics is already a good few years behind me :D |
||
| 1 | |||
|
ITGuyLevi
programming.dev
ITGuyLevi@programming.dev Joined: 2023-08-02 |
How would 3 leading zeros in a byte help coming to the conclusion that this is supposed to be 17? I'm generally curious, sice theoretical informatics is already a good few years behind me :D
In a normal byte format it wouldn't help, the byte standard breaks off bits into 8 bit chunks and calls them bytes (I'm not trying to explain basics, just putting it there for background), little-endian excels at using the least number of bits to express larger numbers in a stream. If you wanted to send any number from 0-255 you only need 1 byte, for 256-512 you need two bytes (or 16 bits), in little-endian it can be represented in just 9 bits, or up to 1024 in 10 bits, etc. Doesn't matter for much to many people, but when the number gets big enough you can save a lot of bandwidth. |
||
| 2 | |||
MaggiWuerze
feddit.org
MaggiWuerze@feddit.orgJoined: 2024-07-02 |
In a normal byte format it wouldn't help, the byte standard breaks off bits into 8 bit chunks and calls them bytes (I'm not trying to explain basics, just putting it there for background), little-endian excels at using the least number of bits to express larger numbers in a stream. If you wanted to send any number from 0-255 you only need 1 byte, for 256-512 you need two bytes (or 16 bits), in ...
Yeah, that digs up some long lost memories :D Thanks |
||
| 2 | |||
ImpulseDrive42
lemmy.world
AlexCory21@lemmy.worldJoined: 2023-11-04 |
I hit the big 101000 recently. Time sure does fly by. |
||
| 2 | |||
|
Iron Lynx
lemmy.world
Iron_Lynx@lemmy.world Joined: 2023-06-18 |
You win Lemmy, I need this one explained.
Longer explanation: Because most computers use two's complement to make negative numbers. To produce -x, you take x, flip all the bits, and then add 1. Conveniently, this process works both ways, so if you have an So if you take Secondly, the gestation period of humans is 9 months, and there are 12 months in a year. So if you have binary candles and all of them lit, that can suggest, which it does in my previous comment, that you're celebrating a child's -1st birthday. |
||
| 2 | |||
|
vrek
programming.dev
vrek@programming.dev Joined: 2023-06-20 |
Octal 31 = 3 x 8^1^ + 1 x 8^0^ = 24 + 1 = Decimal 25 The Yuki language in California has an octal system because the speakers count using the spaces between their fingers rather than the fingers themselves.[2] The Pamean languages in Mexico also have an octal system, because some of their speakers "count the knuckles of the closed fist for each hand (excluding the thumb), so that two hands equa...
Just curious since you seem knowledgeable, is there a connection between those societies? Or is it just chance they both choose 8? |
||
| 2 | |||
|
psud
aussie.zone
psud@aussie.zone Joined: 2023-07-26 |
I use that style of birthday candle, but I only place as many bits as needed. The year before adding a bit then has all candles lit, the next has only one lit Though the new bits don't come very often. My last was 31 to 32, my next will be 63 to 64, I don't like my chances to see one after that |
||
| 3 | |||
|
psud
aussie.zone
psud@aussie.zone Joined: 2023-07-26 |
Who counts from right to left? Is this image mirrored?
Cakes have multiple sides, you can have your bits in your chosen order if you turn up to the party in person |
||
| 1 | |||
oce 🐆
jlai.lu
oce@jlai.luJoined: 2023-07-07 |
Just curious since you seem knowledgeable, is there a connection between those societies? Or is it just chance they both choose 8?
I am not knowledgeable about this, I just checked the Wikipedia page to confirm my understanding of the joke and found these very interesting historical uses. |
||
| 1 | |||
|
Iron Lynx
lemmy.world
Iron_Lynx@lemmy.world Joined: 2023-06-18 |
Related: I once got onto my feed a post of a tale of someone who had a child on his 19th birthday, so for his 20th birthday, and the child's 1st, they had two balloons celebrating their 2^0^th birthdays. |
||
| 2 | |||
|
Iron Lynx
lemmy.world
Iron_Lynx@lemmy.world Joined: 2023-06-18 |
Related: I once got onto my feed a post of a tale of someone who had a child on his 19th birthday, so for his 20th birthday, and the child's 1st, they had two balloons celebrating their 2^0^th birthdays.
I never saw if the next year they celebrated a 2^1^st birthday. |
||
| 1 | |||
|
MadhuGururajan
programming.dev
MadhuGururajan@programming.dev Joined: 2023-12-24 |
Instructions unclear.. Am vampire now. |
||
| 2 | |||
| Post Reply |
Page 2 of 2
Goto page
« First
Previous
1, 2
Back to top |