The earliest programmable machine that is a machine whose behavior can be controlled by changes to a program was Al-Jazari's programmable humanoid robot in 1206.