This sweeping history of humanity’s relationship with machines illuminates how we got here and what happens next, with AI, climate change, and beyond.