Stanley Kubrick påpekte de potensielle farene ved AI lenge før det ble en realitet.