Science-fiction author Arthur C. Clarke once wrote that “any sufficiently advanced technology is indistinguishable from magic.” If the internet and pocket-sized computers haven’t already pushed us across that threshold, the much-heralded arrival of artificial intelligence almost certainly will.