I'm not John Carmack, but I spent 2 hours today trying to implement basic cryptography ciphers in Racket. What was the immediate benefit? Nothing, but it was fun.
During Hurricane Sandy I used the last of my MacBook Air's battery to code up a Huffman Coding processor in Haskell. Same reason: no reason, just fun. (Hell of a way to pass time, too)