Any program that consumes some amount of stack, when converted to CPS and run, suddenly consumes no stack space at all. Why?
As a corollary, does conversion to CPS reduce the overall memory footprint of the program?
Java's native security model employs a mechanism called stack inspection (look it up if you aren't familiar with it). What is the interaction between stack inspection and CPS? That is, if we were to CPS a program, would this affect its security behavior?
If not, why not?
If so, how, and what would you suggest doing to recover security assuming the CPS conversion was necessary?
In Python's generators,
Discuss the advantages and disadvantages to the two designs.
Submit at this link: