RetroFed Forum
Your home away from modern life.
Don't grow older than 255 or else it will overflow
Post Reply
AuthorMessage
adb lemmy.ml adb@lemmy.ml
Joined: 2025-03-04
#52 · Quote Reply

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.
I guess I meant LSb vs MSb

2
adb lemmy.ml adb@lemmy.ml
Joined: 2025-03-04
#53 · Quote Reply

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
#54 · Quote Reply

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.org
Joined: 2024-07-02
#55 · Quote Reply

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
#56 · Quote Reply

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
#57 · Quote Reply

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
#58 · Quote Reply

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
#59 · Quote Reply

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
#60 · (edited) Quote Reply

I read 136 🤣

Look, an OpenRISC user.

3
CanadaPlus lemmy.sdf.org CanadaPlus@lemmy.sdf.org
Joined: 2023-06-12
#61 · (edited) Quote Reply

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
#62 · Quote Reply

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
#63 · Quote Reply

No liches allowed

1
ITGuyLevi programming.dev ITGuyLevi@programming.dev
Joined: 2023-08-02
#64 · Quote Reply

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.org
Joined: 2024-07-02
#65 · Quote Reply

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
#66 · Quote Reply

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.org
Joined: 2024-07-02
#67 · Quote Reply

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.world
Joined: 2023-11-04
#68 · Quote Reply

I hit the big 101000 recently. Time sure does fly by.

2
Iron Lynx lemmy.world Iron_Lynx@lemmy.world
Joined: 2023-06-18
#69 · Quote Reply

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 int with a positive MSB, i.e. 1*******, that's a negative number, and if you invert and add 1, you get the positive number.

So if you take 11111111, and apply this process, you get 00000001, which equals 1. Thus, 11111111 = -1

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
#70 · Quote Reply

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
#71 · Quote Reply

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
#72 · Quote Reply

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.lu
Joined: 2023-07-07
#73 · Quote Reply

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
#74 · Quote Reply

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
#75 · Quote Reply

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
#76 · Quote Reply

Instructions unclear.. Am vampire now.

2
Post Reply Page 2 of 2   Goto page « First 1, 2
Back to top