Obtaining Program Continuation Using Exception Handling Mechanism
-
Graphical Abstract
-
Abstract
With the rapid increasing of continuation-based interactive Web development,implementing first-class continuations on mainstream languages those do not support stack inspection and manipulation can pose a challenge.This paper describes a method of obtaining program continuation through exception handling mechanism.The method is based on program transformation,and steps on transformation are firstly introduced.Then,common properties on languages that can make use of this method are summarized.We also show that our method defines a distinguished general and reusable class hierarchies and simple interfaces between the system infrastructure and custom applications.With our design,implementing techniques on different languages have been discussed.Another point is that we introduce the optimized CPS language as the intermediate represent for ANF transformation which shows its advantage on fragment and live variables analysis.
-
-