Learning from Ricardo and Thompson: machinery and labor in the early industrial revolution, and in the age of AI