While converting some code to 64-bit on Snow Leopard, I discovered that character literals are ints, so I couldn’t use them for 8-byte longs. The alternative is readable hex constants.
Everyone knows 0xDEADBEEF and 0xCAFEBABE, but I wondered what else was available, so I wrote a short Lisp program to run through the standard Unix English dictionary and extract the usable words. I’ve included substituting 1 for I and 0 for O. There aren’t that many words, so here they are, sorted by length and alphabetically:
A 1 AC AD BC BE B1 CD DB DC D0 ED FA 1D 1F 0F 01 ABC ABE ACE ADA ADD AD0
A1D BAA BAD BBC BED BEE B1B B1C B1D B0A B0B B0D B00 CAB CAD CE0 CFC C1A
C1D C0B C0D C00 DAB DAD DEB DEE D1D D1E D0A D0B D0C D0E EBB EC0 EDE EFF
FAB FAD FB1 FDA FED FEE F1B F1E F0B F0E 1B0 1CE 1DA 0AF 0B1 0DD 0DE 0FF
ABBA ABBE ABED ACED AC1D A1DA A1DE BABE BADE BEAD BEDE BEEF B1DE B1FF
B0DE B00B CAFE CAFF CECA CEDE C1A0 C0BB C0CA C0C0 C0DA C0DE C0ED C01F
DACE DADA DAD0 DEAD DEAF DEC0 DEED D1CE D1D0 D1ED D0D0 D0FF EDDA FACE
FADE FAFF FEED F1D0 F1EF F1FE F00D 1CED 1DEA 0B1E 0B0E ABAC1 AB1DE AB0DE
ADDED ADD1E AD0BE A1DED BAAED BEEBE B0BB1 B0DED B0FF0 B00ED CACA0 CEDED
C0CC1 C0C0A C0DED C00ED DAC1A DECAF DECCA DEF0E DE1CE D1CED D10DE EBBED
EDD1E EFFED EFF1E FACED FADED 0B1ED 0FFED AB0DED ACAC1A ACAD1A ACCEDE
AC1D1C BAB1ED BADD1E BA0BAB BEADED BEDDED BEEFED B1FFED B0BBED B0BB1E
B0CC1E B0D1CE B0D1ED B00BED CABBED C1CADA C0BBED C0DDED C0FFEE DABBED
DEBB1E DECADE DECAFF DEC1DE DEC0DE DEEDED DEFACE DEF1ED DE1CED D0BBED
D0FFED D00DAD EDD1ED EFFACE FACADE FAFFED F1BBED F0BBED F00D1E 10D1DE
0FF1CE ACCEDED CADD1ED C01FFED DEC1DED DEC0DED DEFACED DE1F1ED EC0C1DE
ED1F1CE ED1F1ED EFFACED 1ACC0CA B0AD1CEA C0D1F1ED AC1D1F1ED B0CCACC10