Artificial intelligence and the rise of optical computing