Eager and optimistic evaluation of promises
Abstract
The invention relates to a method for generating executable code from application source code. The method steps include determining a programmatic expression using the application source code and determining a first value for the programmatic expression. The method steps further include compiling the programmatic expression into a first optimized code portion using the first value, an assumption, and an expression scope. The method steps further include executing the application source code. The method steps further include determining that the programmatic expression is modified outside of the expression scope, invalidating the assumption, and de-optimizing the first optimized code portion.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for generating an optimized application source code, comprising: determining that a programmatic expression in a first function call corresponds to a complex promise type based on the programmatic expression comprising a second function call having user-defined code, the second function call to a second function, the first function call located in a caller function of an original application source code; determining a first value for the programmatic expression based on evaluating the second function using a context of the caller function system state during execution of the caller fu
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (5)
- Ennals, R. et al., "Optimistic Evaluation: An Adaptive Evaluation Strategy for Non-Strict Programs", ICFP'03, Aug. 25-29, 2003, Uppsala, Sweden. (12 pages).
- Faxen, K., "Cheap Eagerness: Speculative Evaluation in a Lazy Functional Language", ICFP'00, Montreal, Canada. 2000 (12 pages).
- Kotzmann, T. and H. Mössenböck. "Escape Analysis in the Context of Dynamic Compilation and Deoptimization." Jun. 2005, ACM, VEE'05. pp. 111-120.
- Maessen, J., "Eager Haskell, Resource-bounded execution yields efficient iteration", Haskell'02, Oct. 3, 2002, Pittsburg, Pennsylvania. (13 pages).
- Schneider F., V. Menon, and T. Shpeisman. "Dynamic Optimization for Efficient Strong Atomicity". Oct. 2008. ACM OOPSLA'08. pp. 181-193.