Text this: Physical models and equilibrium methods in programming and economics