Is the AI apocalypse a tired Hollywood trope, or human destiny?

Why is it that every time humans develop a really clever computer system in the movies, it seems intent on killing every last one of us at its first opportunity?In Stanley Kubrick’s masterpiece, 2001: A Space Odyssey, HAL 9000 starts off as an attentive, if somewhat creepy, custodian of the astronauts aboard the USS Discovery One, before famously turning homicidal and trying to kill them all. In The Matrix, humanity’s invention of AI promptly results in human-machine warfare, leading to humans enslaved as a biological source of energy by the machines. In Daniel H. Wilson’s book Robopocalypse, computer scientists finally crack the code on the AI problem, only to have their creation develop a sudden and deep dislike for its creators. Is Siri just a few upgrades away from killing you in…