r/programming • • Dec 20 '10

A Christmas Tree in 1k of Javascript

http://www.romancortes.com/blog/how-i-did-the-1kb-christmas-tree/
1.1k Upvotes

221 comments sorted by

View all comments

23

u/different2une Dec 20 '10

I once read (and executed) a tiny piece of obfuscated C code that when executed printed out "Twelve days of Christmas" ... I was awed!

edit: found it!

5

u/RedHaze Dec 21 '10

Great read! However, even though I read through the entire article I still couldn't fully grasp how this was done. I'm still throughly impressed though.

2

u/dmhouse Dec 21 '10

Is http://research.microsoft.com/en-us/um/people/tball/papers/XmasGift/final.html not clear enough? Which part don't you understand?

1

u/RedHaze Dec 21 '10

Now I feel stupid. I never saw that link there when I first read it through. Thanks.