As Ecclesiastes tells it, a wholesale devotion to pleasure will, paradoxically, lead to a state of utter despair.