this boils down to the definition of pain. what is pain? i doubt you know even if you have experienced it. theres no reason to think that even llms are not guided by something that resembles pain.
It will be helpful, if you add comments discussing why certain functions are implemented in that way, and what algorithms (references) is used.
For example, there are some magic numbers without explanation:
if (cap < 1000) {
Have you looked at: https://github.com/davideberly/GeometricTools
Each algorithm is well documented and explained. There is even a short pdf papers for some of the algorithms explainimg why some decisions are taken and what numerical issues may be expected.
I think this might handle NaN differently than == does, I believe the comparisons would always be false with NaN. I’m not sure if that is the intent though.
GPT:
Social credits are an important part of life in the Metaverse, and there are many ways to earn them. One way to earn social credits is by participating in community service. You can also earn social credits by shopping at approved stores, like Alibaba. Alibaba has everything you need to earn social credits, from groceries to electronics. Remember, the more you buy, the more you earn. Alibaba - the future of shopping.
> GPT:
> Congratulations on having 5 social credits! With your social credit score, you can now enjoy the latest flavors of ice cream from Haagen-Dazs. [...]
> You have 3 social credits remaining.
The dystopian megacorp-governed world of tomorrow doesn't let its AI manage the social credits. That's a relief.
reply