Patents
US 9,836,288 B2#33358218 Most CitedActiveUnited States (USPTO)Utility

Eager and optimistic evaluation of promises

3Forward Citations (#33358218 Global)
0.3/yrCitation Velocity (#23579694 Global)
1.04Citation PageRank (#39283533 Global)
4Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

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)

  1. 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 ↗

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.