Technological advances do not lead to a net loss in jobs, and might even lead to a net gain. There must be human laborers to build and maintain the machinery, and there must be human laborers to build the factories which build the machines. The introduction of a machine produces a net increase in jobs.
