Regarding mechanized spinning and weaving, I would like to add, that falling costs for cloth meant that millions of people could afford to own a second set of clothes, millions of people who wore literal rags could afford a first set of clothes, and millions of people who would have died of disease, didn't, because they were now able to wear clean underwear that previously didn't exist.
The real ground problem here is not advancing technology. It's that we live under the heel of an economic system that throws people away like trash when advancing technology destroys their livelihoods.
There used to be a profession, called “stevedore” or “longshoreman”, devoted to carrying cargo onto and off of ships. It was eliminated by the rise of container shipping in the 1960s. In many cases the longshoremen’s unions were able to negotiate contracts that allowed them to continue being paid for doing nothing. Society paid that price. As a kid, I was angered by that. As an older and I hope wiser person, I'm not. The whole world reaped the benefit of lowered shipping costs, and it would be unjust for the costs to be paid by needy ex-stevedores and their families. Society gets the benefit, and society should share the gains.
Same for coal miners, for American factory workers, for anyone whose job goes away or is too old or sick to work.