Living things have DNA. It’s like preprogrammed data. Emotions are preprogrammed responses caused by chemical reactions. People seem to have the same bevy of emotional reactions to the same things (aversion to pain, happiness toward acquiring something they wanted) until they learn to control them, and unless they had birth defects affecting the function of their minds. People record data in their minds and based on how their prior experiences affected them react to the world accordingly, like a preprogrammed AI that was programmed to adapt to changes and learn from them. Learning is kind of like programming in progress isn’t it? So if a machine could expand by programming itself, I think it would be alive. People are to some extent preprogrammed by their inherited DNA in the beginning anyway. Also, when people go to sleep, their minds shut down, except for autonomous actions like breathing, and unless they are dreaming. If a machine would have to have a rest period like this, and not forget anything (as I agree with Stryder that “If the robot can be turned back on and it "bootsup" though, it didn't live, because it didn't die”), then that would have to be a factor in my opinion of a living creature.