The first time the word “robot” ever appeared in literature in the 1920s, the fictional machines rose up and killed their creators. We’ve been telling the same story ever since. From Hal 9000 to the Terminator, it often seems the measure of a fictional machine’s intelligence is best taken by its wish to do us harm.