The Code Economy: A Forty-Thousand Year History