i was thinking about a good language to be AI generation target, something that would be strongly typed, and have a variety of inner checks to make sure that the execution doesn't end up in an infinite loop or whatever
I am pretty sure that is one of the biggest unsolvable problems in computer science. Halting problem.
[0] https://en.wikipedia.org/wiki/Total_functional_programming
- runtime checks for all loops
- specify required upper bounds for all loops
should be enough for a massive class of useful AI-generated subroutines. the goal is not to allow all-code, but to have predictable resource limits
and btw, unlike people, AI won't be too lazy to specify those