Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a hard problem... I also wanted to do something similar for years, but EatThisMuch beat me to it and did a fairly good job.

It's challenging because you can't optimize using continuous variables, since you aren't going to eat 0.001283834 of a pizza for example, or 4.910 cans of tuna because your below your protein target. You have to deal with whole numbers, and moreover the results need to make sense and not taste like garbage.

I remember reading something from the creator of EatThisMuch that stated in the early days he would actually get silly things like that... here: eat this 28 cups of cottage cheese and you've hit your targets!



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: