News for hackers. Stuff that matters.
Re:How to Program in Your Sleep by macNchz on Sunday August 27, 2023 @12:43AM (#37279486)
I get those programming dreams but have always really disliked them, and find I wake up feeling like I didn’t actually sleep, even if I was in fact asleep all night with code flying around in my brain like tetris blocks. I’m not sure I’ve ever woken up with a great idea after one of those nights.

I do find, however, that solutions to sticky problems pop into my head in the shower, during a long steady run, or after a walk in the park, which I guess is a similar phenomenon.

Re:How to Program in Your Sleep by dfee on Sunday August 27, 2023 @12:57AM (#37279538)
Agree. I’ve even tried “seeding” my last minutes of consciousness with other things so that I don’t dream about eng problems (hell, even dinosaurs?).

Feels highly dystopian that I’ve reduced my brain to an advanced calculator.

Re:How to Program in Your Sleep by brainbag on Sunday August 27, 2023 @07:03AM (#37281429)
[Spoiler-free] Reducing the brain to an advanced calculator is a basic premise if Murakami's cyberpunk fantasy book Hard-Boiled Wonderland and the End of the World. One of my favorite books.
Re:How to Program in Your Sleep by firecountry on Sunday August 27, 2023 @02:39AM (#37280013)
> wake up feeling like I didn’t actually sleep

I don't feel tired when I wake up, but I don't feel like I 'reset' either. I've had a couple of times where I'll wake right up and bang something out like I was being dictated to. It's almost like all the pieces were already there in your mind and they fall together when you aren't trying to force them. Brains are weird.

Re:How to Program in Your Sleep by zarzavat on Sunday August 27, 2023 @03:42AM (#37280334)
Vivid dreams usually happen during REM sleep, which is the deepest phase of sleep. So if you are dreaming, you are probably getting good rest, even if it doesn’t feel like it, e.g. because you woke up suddenly during a dream, rather than after it.
Re:How to Program in Your Sleep by pluijzer on Sunday August 27, 2023 @04:10AM (#37280491)
Is REM not the least deep sleep?
Re:How to Program in Your Sleep by dk404930 on Sunday August 27, 2023 @05:47AM (#37281023)
Yes, AFAIK the brain is electrically the most similar to being awake when it is in REM.

I’ve seen deep sleep used synonymously with “deep NREM” (non-REM).

They are indeed different, but both support cognitive function in different ways.

Re:How to Program in Your Sleep by solumunus on Sunday August 27, 2023 @06:12AM (#37281171)
If you’re excessively lucid dreaming you get terrible sleep, anyone who has trained themselves to lucid dream will tell you that. There may well be a simple explanation but I’m on my phone so it’s annoying to look things up.
Re:How to Program in Your Sleep by d3vmax on Sunday August 27, 2023 @06:04AM (#37281133)
Walks have known to 'jog' the brain. Einstein did it all the time.
Re:How to Program in Your Sleep by zelphirkalt on Sunday August 27, 2023 @06:53AM (#37281392)
I got those with playing chess in my dreams. Always some difficult position that I need to find the best move in and when I finally do, the board size grows and somewhere "over there" is a bishop or a rook or so screwing up my whole previous plan, making me have to think all over again, but with a bigger board and an even more difficult situation.

Woke up from those somewhat with a headache, not well rested.