The mathematician Norbert Wiener founded the science of cybernetics in 1948 with a warning that has become a cornerstone of futurist writing. The computer age was still in its infancy when he cautioned that intelligent machines could wreak havoc on civilization — and perhaps even snuff it out — if we failed to handle them with humility and care.

He was not referring to malevolent entities like Skynet, the genocidal artificial intelligence in the “Terminator” films, or the Cylon robots who wage war on their makers in the television series “Battlestar Galactica.” Instead, he posed a scenario in which a relentlessly logical machine brings on catastrophe by obeying instructions containing hidden hazards that its master failed to detect. The machine would complete its work with lightning speed, Wiener said, giving comparatively slow-witted humans no time to appraise the danger and react.

Wiener understood that people who owned intelligent or sentient machines would face moral problems similar to those associated with the practice of owning human beings. The futurist writer Philip K. Dick exploited this problem to great effect in his work, most famously in “Do Androids Dream of Electric Sheep?,” the novel that inspired the 1982 film “Blade Runner.” This movie crystallized what futurists like Dick had long seen as the next phase of enslavement. It depicted synthetic beings called replicants, manufactured for use as sex toys, soldiers, assassins and so on. When the replicants take charge of their lives, a bounty hunter tracks them down and “retires” them — which is to say, he shoots them to death.

The new HBO series “Westworld,” though based on a 1973 sci-fi thriller about a rebellion of robotic slaves at an amusement park, is closely related to “Blade Runner” in both tone and substance. It acknowledges this debt in a number of ways, not least of all by using the word “retire” to describe the park’s decision to lobotomize a cyborg prostitute who fights back when she is assaulted, despite programming that requires her to submit to rape, strangulation, gunshot wounds and temporary death. Under ordinary circumstances, cyborgs who “die” are surgically repaired, subjected to memory erasure and put back into circulation. The next day, hell begins all over again.