A slave created a revolutionary weaving machine which needed many less slaves to produce fabrics. The machine was so amazing that it was presented to the Emperor of Rome himself. That emperor was very impressed by the prototype and its potential. So much so that he granted freedom to the inventor and destroyed the machine.
He explained that the machine as wonderful as it was represented a risk for Rome since it would make so many slave idle.
What is the origin of this story, or the name of the Emperor?