Intelligent weapons are too easily converted by software engineers into indiscriminate killing machines.