But what's coming in 2040 will bring a brand new level of shock and awe. That's the year we get the singularity.
The singularity is when machines become more intelligent than the smartest of humans. And the number of machines will require more power than the world can make leaving none for people.
Of course machines will see this coming and no doubt take action to produce the power needed to keep their 'species' alive. But why keep people around? They won't even make good pets.