Hacker News new | ask | show | jobs
by fian 3745 days ago
So sleep is something like garbage collection in Java? Some perceptions/thoughts you experience during the day need to be mived from a finite sized young generational heap to a long kived heap (ie convert important short term memories to long term memories). This then frees uo space in the young gen. heap for the next day. Dreams could potentially be the result of a reference check being performed to see which memories to move to a different heap and which can be discarded.