Do you remember DEADBEEF from your early programming days?

  • Thread starter Thread starter jim mcnamara
  • Start date Start date
AI Thread Summary
The discussion centers around the hexadecimal number 0xDEADBEEF, which translates to the decimal number 3735928559. Participants reminisce about its use as a default setting in programming, noting that it was changed to avoid offending vegetarian customers, highlighting a shift towards sensitivity in programming practices. The conversation also touches on hexadecimal jokes, with some humor falling flat, and a preference for jokes in other numerical bases, such as the classic "Why do programmers confuse Christmas with Halloween? Because 31 Oct = 25 Dec." Additionally, there is mention of 0xDEADBEEF being used as a recognizable sentinel value in programming, particularly in hex dumps, and its role in marking null data in some systems. Other similar hexadecimal values like FEEDBEEF and FEEDFACE are also referenced, emphasizing their significance in programming contexts.
jim mcnamara
Mentor
Messages
4,789
Reaction score
3,852
from programming long ago?
 
  • Like
Likes Klystron
Physics news on Phys.org
Yes.
 
no.
 
Sure. The hex number 0xDEADBEEF happens to be the decimal number 3735928559, although that's of no real consequence.
 
Maybe it's his phone number. :nb)
 
I remember that we used it as a default setting a few years ago (I don't remember the exact application), but it was pointed out that it might not sit well with our vegetarian customers (which we never thought of), so we changed it. Not so much to be PC, but to avoid potential conflicts. (And that was before I married a vegetarian...) :smile:
 
I tried to relate a few hexadecimal jokes before but they fell flat. Either jokes made with words formed from the first six letters of the alphabet (combined with digits 0..9 ?) are not funny or people do not program hex any more. Cafe Dead, Feed Beef, Deaf Fade, Aced Deed.
Ho-Hum 😌
 
Klystron said:
I tried to relate a few hexadecimal jokes before but they fell flat.

I agree. Jokes are better in other bases:
Why do programmers confuse Christmas with Halloween?
Because 31 Oct = 25 Dec
 
Yep.
 
  • Love
Likes Klystron
  • #10
Yep.

Code:
 _   _
((___))
[ x x ]
 \   /
 (' ')
  (U)
 
  • Like
  • Haha
Likes 256bits and Klystron
  • #11
Wow. This takes me back to the days when 32767 was the highest number in the universe!

I seem to have some recollection that deadbeef was null data on some systems... i.e. if you read some section of a program or data space that contained null data (as opposed to just zeros or random noise), than you would see deadbeef, in hex... but this is just a vague wisp of unrefreshed memory.

diogenesNY
 
  • Like
Likes DrClaude
  • #12
jim mcnamara said:
from programming long ago?
Sure, and there are many more as well. We used these values when we needed something that would stand out in a hex dump (either scanning visually or searching), or a recognizable sentinel value

A few others: FEEDBEEF, FEEDFACE, DEAFBEEF, ...
 
  • Like
Likes Klystron
  • #13
Solaris' malloc uses it to mark free memory. FWIW.
 
Back
Top