Don't grow older than 255 or else it will overflow

6 months ago by Bricked to c/programmer_humor

A photo of a cake with 8 candles in a row. The first and fifth candle from the right are lit. The caption reads "Happy 17th Birthday"

raman_klogius 107 points 6 months ago

Very optimistic to have an 8th candle

path: 0 22337642, hotness: undefined, score: 107, children: 13
bricked 162 points 6 months ago

The candles are only available in packs of 8. It's the smallest addressable unit of wax in many cake architectures

path: 0 22337642 22337737, hotness: undefined, score: 162, children: 11
humanamerican 37 points 6 months ago

Last birthday party I was at I just wanted a nibble of cake but they told me I had to take one or more bites.

path: 0 22337642 22337737 22338455, hotness: undefined, score: 37, children: 2
tetris11 5 points 6 months ago

I'd have a few words with them, kick them right up their rear endian

path: 0 22337642 22337737 22338455 22338930, hotness: undefined, score: 5, children: 0
ITGuyLevi 4 points 6 months ago

I usually just gather a nibble by picking up a couple crumbs... I'll see myself out.

path: 0 22337642 22337737 22338455 22339197, hotness: undefined, score: 4, children: 0
raman_klogius 21 points 6 months ago

Maybe this is a signed cake, so one can celebrate negative birthdays of people who aren't born yet. 🤔

path: 0 22337642 22337737 22339337, hotness: undefined, score: 21, children: 6
Iron_Lynx 8 points 6 months ago

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.

path: 0 22337642 22337737 22339337 22339700, hotness: undefined, score: 8, children: 4
CanadaPlus 1 point 6 months ago

You win Lemmy, I need this one explained.

path: 0 22337642 22337737 22339337 22339700 22359884, hotness: undefined, score: 1, children: 3
VindictiveJudge 1 point 6 months ago

Given that typical gestation time is less than one year, that involves some planning and determination.

path: 0 22337642 22337737 22339337 22345592, hotness: undefined, score: 1, children: 0
palordrolap 1 point 6 months ago

Although a processor might be nominally capable of accessing a bus of a certain width, it does not mean that all address or data lines need be connected.

path: 0 22337642 22337737 22338989, hotness: undefined, score: 1, children: 0
glibg10b 10 points 6 months ago

That's the sign bit. The cake is in two's complement

path: 0 22337642 22354156, hotness: undefined, score: 10, children: 0
ZILtoid1991 75 points 6 months ago

Old man's last words on his 256th birthday: "Unhandled IntegerU8OverflowException, terminating application."

path: 0 22338763, hotness: undefined, score: 75, children: 0
vrek 30 points 6 months ago

Why do I confuse Halloween and Christmas? Because Oct 31 is the same as Dec 25

path: 0 22340402, hotness: undefined, score: 30, children: 5
oce 7 points 6 months ago

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 equals eight."[3] https://en.wikipedia.org/wiki/Octal
path: 0 22340402 22353206, hotness: undefined, score: 7, children: 2
vrek 2 points 6 months ago

Just curious since you seem knowledgeable, is there a connection between those societies? Or is it just chance they both choose 8?

path: 0 22340402 22353206 22369001, hotness: undefined, score: 2, children: 1
oce 1 point 6 months ago

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.

path: 0 22340402 22353206 22369001 22373576, hotness: undefined, score: 1, children: 0
flambonkscious 1 point 6 months ago

Ha🤣, that's great (once I was already thinking in binary/non-Dec numerals)

path: 0 22340402 22345114, hotness: undefined, score: 1, children: 1
vrek 4 points 6 months ago

There is another joke there regarding the movie nightmare before Christmas but I'm not smart enough to figure it out.

path: 0 22340402 22345114 22346197, hotness: undefined, score: 4, children: 0
ArmoredThirteen 30 points 6 months ago

33 was a special year for me because it's the same forwards and backwards both in decimal and binary

path: 0 22338774, hotness: undefined, score: 30, children: 5
meow 10 points 6 months ago

1 is asswell :3

path: 0 22338774 22338878, hotness: undefined, score: 10, children: 1
Zier 14 points 6 months ago

If 1 is asswell, then 2 is assgood, and 3 is the beginning of an orgy.

path: 0 22338774 22338878 22339062, hotness: undefined, score: 14, children: 0
HairyHarry 8 points 6 months ago

00100001

Am I being dumb? How ist that the same forward and backwards?

path: 0 22338774 22340222, hotness: undefined, score: 8, children: 2
wieson 23 points 6 months ago

If you drop leading zeros as you would in decimal

path: 0 22338774 22340222 22340357, hotness: undefined, score: 23, children: 1
HairyHarry 10 points 6 months ago

Damn. I AM dumb.

path: 0 22338774 22340222 22340357 22341910, hotness: undefined, score: 10, children: 0
SubArcticTundra 20 points 6 months ago

I'd actually quite like an overflowing cake thank you very much

path: 0 22341512, hotness: undefined, score: 20, children: 4
xyx 8 points 6 months ago

thinking of getting older than 255?

path: 0 22341512 22342263, hotness: undefined, score: 8, children: 3
PartyAt15thAndSummit 6 points 6 months ago

How about 4294967295?

path: 0 22341512 22342263 22342881, hotness: undefined, score: 6, children: 2
xyx 4 points 6 months ago

with 8 bit? true, with 32 bit you might have a chance to see the sun die, but.... there are just 8 candles

path: 0 22341512 22342263 22342881 22345153, hotness: undefined, score: 4, children: 1
CanadaPlus 3 points 6 months ago

64 bits and you get to watch heat death slowly set in. (Or, y'know, cosmological catastrophe depending on the full physics)

path: 0 22341512 22342263 22342881 22345153 22359920, hotness: undefined, score: 3, children: 0
itkovian 18 points 6 months ago

I will grow older than 255 because then it will overflow and I become 0 years old.

path: 0 22338053, hotness: undefined, score: 18, children: 0
galacticbackhoe 17 points 6 months ago

I only buy ipv6 cakes, so I'm good.

path: 0 22345879, hotness: undefined, score: 17, children: 1
CanadaPlus 4 points 6 months ago

You probably know, but someone is going to point out an ipv4 address is four bytes.

path: 0 22345879 22360186, hotness: undefined, score: 4, children: 0
JasonDJ 15 points 6 months ago

Heh I've been making my wife do this since my 32nd birthday.

She still doesn't understand binary and thinks I'm a nerd when I try to explain it to her.

Maybe this year, when it's 1+8+32, things will click.

path: 0 22340504, hotness: undefined, score: 15, children: 0
regdog 8 points 6 months ago

Who counts from right to left?

Is this image mirrored?

path: 0 22337808, hotness: undefined, score: 8, children: 18
bricked 58 points 6 months ago

You will be surprised to hear that this is how we read decimal numbers too

path: 0 22337808 22338019, hotness: undefined, score: 58, children: 0
ArrowMax 27 points 6 months ago

Even in decimal, the most-significant digit is to the left. Binary in text form is no exception to this.

Unless we are talking little-endian, which would start with the least-significant bit.

path: 0 22337808 22337994, hotness: undefined, score: 27, children: 1
sfbing 4 points 6 months ago

Anyone who opens their egg on the small end deserves to be removed from our society.

path: 0 22337808 22337994 22343155, hotness: undefined, score: 4, children: 0
yermaw 8 points 6 months ago

Now that you mention it it is pretty fucky, but in every textbook thats tried to teach me counting in binary its gone from right to left.

path: 0 22337808 22337860, hotness: undefined, score: 8, children: 4
calcopiritus 15 points 6 months ago

It's not. Numbers are arranged (both binary and base 10) with the most significant digit on the left.

Whether you read the number from left to right or right to left is irrelevant and you can choose whichever one you want.

But it is completely consistent with base 10 (normal numbers).

path: 0 22337808 22337860 22338027, hotness: undefined, score: 15, children: 0
illpillow 3 points 6 months ago

Same here. University told me the lowest bit is on the right, the highest on the left. Never questioned it.

path: 0 22337808 22337860 22338005, hotness: undefined, score: 3, children: 2
RustySharp 12 points 6 months ago

In kindergarten I was taught when reading the number 123, the lowest digit is on the right, and the highest on the left. Never questioned it either.

path: 0 22337808 22337860 22338005 22338335, hotness: undefined, score: 12, children: 1
Osprey 1 point 6 months ago
path: 0 22337808 22337860 22338005 22338335 22339293, hotness: undefined, score: 1, children: 0
SethranKada 7 points 6 months ago

Binary is always right to left? I've never seen it written left to right at least.

path: 0 22337808 22338079, hotness: undefined, score: 7, children: 0
adb 7 points 6 months ago

Binary exists in both big-endianLSb or little-endianMSb. In other words, both directions can be valid.

As explained below: Endianness is specifically the order of bytes. I was under the impression that it also implied a specific order of bits but anyways, the correct terms for this discussion is Least/Most Significant bit order.

path: 0 22337808 22338864, hotness: undefined, score: 7, children: 4
CannonFodder 5 points 6 months ago

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?

path: 0 22337808 22338864 22338954, hotness: undefined, score: 5, children: 1
adb 2 points 6 months ago

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.

path: 0 22337808 22338864 22338954 22354905, hotness: undefined, score: 2, children: 0
glibg10b 3 points 6 months ago

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

path: 0 22337808 22338864 22354181, hotness: undefined, score: 3, children: 1
adb 2 points 6 months ago

Indeed, endianness is the order of bytes, my bad. I guess I meant LSb vs MSb

path: 0 22337808 22338864 22354181 22354524, hotness: undefined, score: 2, children: 0
BlackVenom 2 points 6 months ago

The people saying right to left is normal are either Australian or mirror universe folks.

At least I thought that until I looked up ascii conversations and then just random converters .... How have I forgotten this? The pic is right...

path: 0 22337808 22341077, hotness: undefined, score: 2, children: 0
humanamerican 2 points 6 months ago

There are 3 leading "zeros"

path: 0 22337808 22338471, hotness: undefined, score: 2, children: 1
MaggiWuerze 1 point 6 months ago

Which would be ommited if they were on the end, so this reads 136

path: 0 22337808 22338471 22354059, hotness: undefined, score: 1, children: 0
psud 1 point 6 months ago

Cakes have multiple sides, you can have your bits in your chosen order if you turn up to the party in person

path: 0 22337808 22372781, hotness: undefined, score: 1, children: 0
ratatouille 7 points 6 months ago

I read 136 🤣

path: 0 22343491, hotness: undefined, score: 7, children: 1
CanadaPlus 3 points 6 months ago

Look, an OpenRISC user.

path: 0 22343491 22360029, hotness: undefined, score: 3, children: 0
regdog 7 points 6 months ago

Happy 136th birthday

path: 0 22337818, hotness: undefined, score: 7, children: 9
ITGuyLevi 3 points 6 months ago

Little-endian for the win!

path: 0 22337818 22339215, hotness: undefined, score: 3, children: 8
MaggiWuerze 2 points 6 months ago

Even in little endian you don't have trailing zeroes

path: 0 22337818 22339215 22354075, hotness: undefined, score: 2, children: 6
ITGuyLevi 1 point 6 months ago

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).

path: 0 22337818 22339215 22354075 22355992, hotness: undefined, score: 1, children: 5
MaggiWuerze 2 points 6 months ago

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

path: 0 22337818 22339215 22354075 22355992 22356530, hotness: undefined, score: 2, children: 4
wewbull 2 points 6 months ago

I was just thinking about what you'd see from the other side of the table.

path: 0 22337818 22339215 22357591, hotness: undefined, score: 2, children: 0
MousePotatoDoesStuff 6 points 6 months ago

Because of the Hayflick limit, 7 candles should be enough... but only for now, hopefully.

path: 0 22345436, hotness: undefined, score: 6, children: 1
CanadaPlus 3 points 6 months ago

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)

path: 0 22345436 22360063, hotness: undefined, score: 3, children: 0
ZoteTheMighty 6 points 6 months ago

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.

path: 0 22357464, hotness: undefined, score: 6, children: 0
dr_robotBones 5 points 6 months ago

We're low on candles, great idea!

path: 0 22364854, hotness: undefined, score: 5, children: 0
psud 3 points 6 months ago

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

path: 0 22372719, hotness: undefined, score: 3, children: 0
MadhuGururajan 2 points 5 months ago

Instructions unclear.. Am vampire now.

path: 0 22512490, hotness: undefined, score: 2, children: 0
AlexCory21 2 points 6 months ago

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

path: 0 22364973, hotness: undefined, score: 2, children: 0
banazir 2 points 6 months ago

Oh, I like this. Nice.

path: 0 22338265, hotness: undefined, score: 2, children: 0
Iron_Lynx 2 points 6 months ago

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.

path: 0 22393708, hotness: undefined, score: 2, children: 1
Iron_Lynx 1 point 6 months ago

I never saw if the next year they celebrated a 2^1^st birthday.

path: 0 22393708 22393718, hotness: undefined, score: 1, children: 0
Sam_Bass 1 point 6 months ago

The BTUs alone will cook you til your juices evaporate

path: 0 22343287, hotness: undefined, score: 1, children: 0
EndlessNightmare 1 point 6 months ago

No liches allowed

path: 0 22360363, hotness: undefined, score: 1, children: 0
programmer_humor
programmer_humor

@programming.dev

login for more options
32862
2487
7731

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

go to feed...