The 2004 movie “The Machinist” gives us a striking depiction, albeit a fictional one, of the psychological effects of chronic insomnia. When people don’t have enough sleep, their memory and concentration are impaired in the short term. They are also less able to regulate their emotions. If sleeping difficulties continue,…