In the short run, the market is a voting machine but in the long run, it is a weighing machine.
Any problem in computer science can be solved with another layer of indirection.