Live data from Hacker News

0xCAFEBABE & 0xFEEDFACE (2003)

radio-weblogs.com

51–60 of 126 posts

Re: 0xCAFEBABE & 0xFEEDFACE (2003)

#51
post #43
post #35

Earlier quoted context omitted.

He means that the style checker only checks for those sorts of numbers in the source code to rustc. But the point remains: there is far, far less tolerance for the sort of humor that objectifies women today, and even laughing at it can get you in trouble as Tim Peters recently found out.

I mean, 0xDDDB00B5 is about as appropriate in a codebase as 0xB166D1C5 or 0x73571C23 would be. Which is to say, it isn’t.

What objectionable thing is 0x73571C23 supposed to be?

Re: 0xCAFEBABE & 0xFEEDFACE (2003)

#52
post #39

Rust will yell at you if you use specific magic numbers like these edit: yes, 0xCAFEBABE is a warning but 0xFEEDFACE is not: 3405691582 https://github.com/rust-lang/rust/blob/d0ea1d767925d53b2230e...

Reformatted: irb> [184594741, 2880289470, 2881141438, 2965027518, 2976579765, 3203381950, 3405691582, 3405697037, 3735927486, 4027431614, 4276992702].map! { _1.to_s(16) } => ["b00b135", "abadbabe", "abbababe", "b0bababe", "b16b00b5", "beefbabe", "cafebabe", "cafed00d", "deadbabe", "f00dbabe", "feedbabe"]

I wonder why are many many "babe" constants included, but only a single "d00d" constant.

Re: 0xCAFEBABE & 0xFEEDFACE (2003)

#54
post #43

Earlier quoted context omitted.

I mean, 0xDDDB00B5 is about as appropriate in a codebase as 0xB166D1C5 or 0x73571C23 would be. Which is to say, it isn’t.

What objectionable thing is 0x73571C23 supposed to be?

Testicle. It's a small unit test.

Re: 0xCAFEBABE & 0xFEEDFACE (2003)

#56

Rust will yell at you if you use specific magic numbers like these edit: yes, 0xCAFEBABE is a warning but 0xFEEDFACE is not: 3405691582 https://github.com/rust-lang/rust/blob/d0ea1d767925d53b2230e...

That says all I need to know about the community.

Really? Current mainstream political shibboleths are more important than for example their stance on module versioning or on whether C code should have a right to exist?

Re: 0xCAFEBABE & 0xFEEDFACE (2003)

#57
post #41
post #5

I'm surprised they didn't use 0xDECAFBAD for the Java format. Even more interesting is the Wikipedia page https://en.wikipedia.org/wiki/Hexspeak catalogs a delightfully long list of hexspeak words and what they're used for.

in ur-scheme i assigned a magic number to each boxed type as an easy dynamic type test. procedures are 0xca11ab1e, variables moved onto the heap because they were captured by a closure are 0x1ce11ed, strings of text are 0xbabb1e, cons cells consisting of a car and a cdr are 0x2ce11ed, symbol objects used for naming procedures and variables are 0x1abe1, and all other types are unboxed. aside from being enjoyably silly…

I like the way how this is playful and useful at the same time.

Re: 0xCAFEBABE & 0xFEEDFACE (2003)

#58
post #39

Earlier quoted context omitted.

Reformatted: irb> [184594741, 2880289470, 2881141438, 2965027518, 2976579765, 3203381950, 3405691582, 3405697037, 3735927486, 4027431614, 4276992702].map! { _1.to_s(16) } => ["b00b135", "abadbabe", "abbababe", "b0bababe", "b16b00b5", "beefbabe", "cafebabe", "cafed00d", "deadbabe", "f00dbabe", "feedbabe"]

I wonder why are many many "babe" constants included, but only a single "d00d" constant.

It's because soos is the most perfect man

Re: 0xCAFEBABE & 0xFEEDFACE (2003)

#59
post #5

I'm surprised they didn't use 0xDECAFBAD for the Java format. Even more interesting is the Wikipedia page https://en.wikipedia.org/wiki/Hexspeak catalogs a delightfully long list of hexspeak words and what they're used for.

The page you linked introduces another "suspect" to the "cafe babe" mistery:

> ("cafe babe") is used by Plan 9's libc as a poison value for memory pools.

Both the NeXT computer and Plan 9 were developed in the mid 80s, so I wonder who used it first? But I don't think that one influenced the other?

Re: 0xCAFEBABE & 0xFEEDFACE (2003)

#60
post #43
post #35

Earlier quoted context omitted.

He means that the style checker only checks for those sorts of numbers in the source code to rustc. But the point remains: there is far, far less tolerance for the sort of humor that objectifies women today, and even laughing at it can get you in trouble as Tim Peters recently found out.

I mean, 0xDDDB00B5 is about as appropriate in a codebase as 0xB166D1C5 or 0x73571C23 would be. Which is to say, it isn’t.

You're offended if someone wrote "testicle" in source code? Are you also offended about "ankle" or "hair"? The puritanism...
Post reply on HN