Learning, life history, and productivity