Technological change, from the advent of robots to expanded trade opportunities, tends to create winners and losers. How should government policy respond? And how should the overall welfare impact of technological change on society be valued? We provide a general theory of optimal technology...