michaeldickens / Happy

A suite of computer programs designed to produce lots of happiness in the event that simple programs can be conscious
3 stars 0 forks source link

Happiness overflow #1

Open anshukla opened 7 years ago

anshukla commented 7 years ago

happy1.c has concerning potential for happiness overflow. Some sensible solutions if we've attained maximum happiness:

michaeldickens commented 7 years ago

Unfortunately, due to the known "hedonic treadmill" bug, it may be impossible to stop and enjoy a high state of enlightenment. I believe a better solution is to use 64-bit or arbitrary-precision integers to continue running on the treadmill indefinitely.