Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I can't even compile it on my mac and my C is too rusty, would you be kind enough to explain? =)


It's perfectly possible to run this on e.g. Ideone (http://ideone.com).

Essentially, it's a loop that unpacks my name and prints it, letter by letter, from the constant 5128. Four bits is being used per letter, and I tried to compress the number by subtracting an offset from the ASCII codes of each letter (that's the 77).

It's been ~14 years or something since I first wrote this, and I'm pretty sure I was inspired by an Obfuscated C contest entry then, too. :)


There's a typo in it, which is probably why it doesn't compile (other replies have the correct version). This is the output:

> stordoff@stordoffs-MacBook-Pro:~ $ gcc HN.c && ./a.out

> EMIL




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: