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"
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"
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.
Maybe this is a signed cake, so one can celebrate negative birthdays of people who aren't born yet. 🤔
You win Lemmy, I need this one explained.
Given that typical gestation time is less than one year, that involves some planning and determination.
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.
Old man's last words on his 256th birthday: "Unhandled IntegerU8OverflowException, terminating application."
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
Ha🤣, that's great (once I was already thinking in binary/non-Dec numerals)
33 was a special year for me because it's the same forwards and backwards both in decimal and binary
00100001
Am I being dumb? How ist that the same forward and backwards?
Damn. I AM dumb.
I'd actually quite like an overflowing cake thank you very much
How about 4294967295?
64 bits and you get to watch heat death slowly set in. (Or, y'know, cosmological catastrophe depending on the full physics)
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.
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.
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).
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.
Binary is always right to left? I've never seen it written left to right at least.
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.
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.
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...
There are 3 leading "zeros"
Which would be ommited if they were on the end, so this reads 136
I read 136 🤣
Look, an OpenRISC user.
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).
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
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)
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.
We're low on candles, great idea!
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
Instructions unclear.. Am vampire now.
I hit the big 101000 recently. Time sure does fly by.
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.
No liches allowed
@programming.dev
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.
go to feed...
@programming.dev
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.
go to feed...
Very optimistic to have an 8th candle
save