▲ | ambicapter 2 days ago | ||||||||||||||||||||||
Hmm, wouldn't it be better to prove that the optimizations on a loop can also be performed on a recursion and then applying it? If they can't do that, how can they take the optimized loop, turn it back into a recursive structure, and assume that it is functionally identical to the starting recursive loop? | |||||||||||||||||||||||
▲ | fluoridation 2 days ago | parent [-] | ||||||||||||||||||||||
Presumably because each transformation step preserves semantics. What I'm wondering is what the point of the round-trip conversion is. If you've gone to the trouble of turning a function into an iteration, just leave like that. | |||||||||||||||||||||||
|