Program-as-Weights