4 ms·
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 https://en.wik
by cdchn 2y ago
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 https://en.wikipedia.org/wiki/Hexspeak catalogs a delightfully long list of hexspeak words and what they're used for.
- joshu 2y agobecause it would need to be an even number of digits
- onionisafruit 2y agoI count 8 digits
- cdchn 2y agoSneaky isn't it? Its give for the first "word" then three for the second.
- kragen 2y agoin 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, this was surprisingly helpful when i was single stepping through the code it generated in gdb. hex dumps are a lot easier to read when you do that http://www.canonical.org/~kragen/sw/urscheme/compiler.scm.html http://www.canonical.org/~kragen/sw/urscheme/compiler.scm.ht...
- rob74 2y agoThe 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?
- dgfitz 2y agoI've used 0xc0ffee00 at work, recently even. 0xbec0ffee or 0xd0c0ffee were also in the running.