News for hackers. Stuff that matters.
Re:Sleep is Garbage Collection by lucumo on Sunday April 05, 2009 @03:18PM (#547627)
If sleep is garbage collection, can I switch back to old malloc/free? So I can do it more evenly over the day? :)
Re:Sleep is Garbage Collection by amichail on Sunday April 05, 2009 @03:31PM (#547649)
Modern garbage collection is done more evenly:

http://en.wikipedia.org/wiki/Garbage_collection_(computer_sc...

Perhaps the brain could do something similar.

Re:Sleep is Garbage Collection by davidbnewquist on Sunday April 05, 2009 @06:59PM (#547875)
In software, optimizing this type of garbage collection for low pauses usually results in reduced application throughput. Evolution in general clearly does not favor "low pause" sleep patterns.

However, there are anecdotes of rare people that subsist on "low pause" sleeping. Allegedly, Thomas Edison had a 24 word day and frequently cat-napped. Contrast that with Einstein who allegedly slept 10 hrs a night.

For modern garbage collection systems (e.g. the JVM), there is no single setting that is best (or even acceptable) for all applications. The same is probably true for sleep patterns.

Re:Sleep is Garbage Collection by amichail on Sunday April 05, 2009 @07:22PM (#547898)
Evolution in general clearly does not favor "low pause" sleep patterns.

Evolution does not consider every possibility. And when it does consider one, it doesn't necessary "implement" it well.

Re:Sleep is Garbage Collection by davidbnewquist on Monday April 06, 2009 @12:57AM (#548358)
Well, if the genes regulating sleep patterns are half as tedious as the gc params for the 1.4.2 JVM, I wouldn't want to consider every possibility either:P
Re:Sleep is Garbage Collection by stcredzero on Sunday April 05, 2009 @05:57PM (#547806)
How about switching from a dynamic late-binding brain to a much faster static typed compiled one?

(Or would that just render us faster, but much less flexible and adaptable?)

Re:Sleep is Garbage Collection by mechanical_fish on Sunday April 05, 2009 @03:28PM (#547641)
Well, if this mechanism is the same in fruit flies and in humans, that implies that it's a pretty low-level kernel function.

We could change the source, but it might take several hundred million years to finish compiling your new biosphere. And in the meantime the old biosphere might well eat it for lunch. Literally!

Re:Sleep is Garbage Collection by illicium on Sunday April 05, 2009 @03:49PM (#547669)
Watch out, you might run into some nasty memory leaks
Re:Sleep is Garbage Collection by russell on Sunday April 05, 2009 @04:17PM (#547699)
I get memory leaks even with nightly garbage collection, or maybe I have bugs that collect the good stuff and leave the garbage.
Re:Sleep is Garbage Collection by flankk2 on Sunday April 05, 2009 @05:21PM (#547763)
Actually, yes. It is called polyphasic sleep:

http://en.wikipedia.org/wiki/Polyphasic_sleep

Re:Sleep is Garbage Collection by dave_au on Monday April 06, 2009 @05:42AM (#548613)
I tried a 28-hour day for about a week: http://www.dbeat.com/28/

I'm glad I did solely because I know that if I hadn't I'd be wondering about both the 28-hour day and polyphasic sleep until I tried it, and I'd probably have more at stake if I tried it later.

It was not good. I tried it in the middle of working on my PhD. I could still write code, but the quality dipped a little. My theory work stopped - the whole abstract complex thought part of my brain shut off - and it took me a while to notice. There was some digestive confusion for a while as well - the body is a pretty complex thing, and it turns out that (at least mine) really likes it's cycles.

I made it through a week and a half - at least I think it was - it really throws your idea of what a day is. The abstract complex thought bit took a while to come back. It took about a month and a half to recover properly. Would not try again.

Re:Sleep is Garbage Collection by pchristensen on Sunday April 05, 2009 @07:47PM (#547926)