For the firmware, I would have gone with Linux + a higher level language, probably Golang, because my iteration loop was almost 2 minutes w/ C & esp32. Way too long.
But at least it made the product very power efficient, and a bit cheaper.
Btw, you should follow the hot reload thread on Github for ESP-IDF: https://github.com/espressif/esp-idf/issues/12642