That sleep impairs learning is something I notice as well. For someone who can't sleep well, it feels like a cognitive enhancer. What I find hard to reconcile nowadays in my life is how to go out with friends, stay up until 4, wake up at 12 and then go to bed around 11 again (only being awake for 11 hours). When this happens I can be assured that I can't sleep well, but I have to go to bed around that time to have a shot at getting 8 hours of sleep.
How do other HNers deal with this?