For many years, science fiction authors have both fascinated and frightened us with their visions of a world dominated by artificial intelligence, featuring everything from cyborg armies to hordes of…