Patents
US 8,997,040 B2#61433544 Most CitedActiveUnited States (USPTO)Utility

Variable closure

1Forward Citations (#61433544 Global)
0.1/yrCitation Velocity (#47787126 Global)
0.75Citation PageRank (#61433544 Global)
18Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A system and method for accessing closure variables from a lambda expression in certain program configurations, in which the closure variable is accessed while the closure function is active and the closure variable is within an active runtime frame stack corresponding to an instance of the closure function. In response to entering the closure function, a pointer to each closure variable is stored in a stack pointer table. Each reference to each closure variable from the lambda expression is handled by using the closure variable pointer to locate the closure variable on the runtime stack. Program code may be instrumented to insert invocations to helper functions at locations upon entering the closure function and at each reference to each closure variable from the lambda expression.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 1.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer-based method of accessing a closure variable defined in a function of a computer program from a lambda expression that is invoked from a computer program location outside the function while an instance of the function is active, the closure variable stored in a frame on a runtime stack, the frame corresponding to the function instance, comprising: a) in response to entering the function during program execution, storing a pointer to the closure variable in a data structure; b) in response to an instruction to retrieve a value of the closure variable, the instruction in the lambda ex

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Cited By — Indexed Forward Citations (1 of 1 total)

References Cited — Backward Prior Art (18)

Non-Patent Literature (5)

  • "First Office Action and Search Report Received for Chinese Application No. 201110080598.6", Mailed Date: Dec. 29, 2014, 13 pages.
  • "Function Pointers, Closures, and Lambda", Retrieved at >, Jan. 9, 2009, pp. 4.
  • “Function Pointers, Closures, and Lambda”, Retrieved at << http://stackoverflow.com/questions/208835/function-pointers-closures-and-lambda >>, Jan. 9, 2009, pp. 4.
  • Bruno Blanchet, "Escape Analysis: Correctness Proof, Implementation: and Experiment al Results", [Online], ACM 1998, pp. 25-37, [Retrieved form Internet on Nov. 10, 2014], .
  • Bruno Blanchet, “Escape Analysis: Correctness Proof, Implementation: and Experiment al Results”, [Online], ACM 1998, pp. 25-37, [Retrieved form Internet on Nov. 10, 2014], <http://delivery.acm.org/10.1145/270000/268949/p25-blanchet.pdf>.