Binding-based characterization of closures in software programs
Abstract
The disclosed embodiments provide a system that facilitates the compilation and execution of a software program. During operation, the system obtains a closure from source code for the software program. Next, the system characterizes a type of the closure based on a mutability of one or more variables captured by the closure. Finally, the system encodes the type into a compiled form of the closure to facilitate subsequent execution of the closure in a multithreaded environment.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, comprising: detecting, by computer, a closure from source code for a software program; characterizing a type of the closure based on: whether the closure captures any variables; and if the closure captures one or more variables, a mutability of the one or more variables captured by the closure; based on the characterization of the type, selecting, from a plurality of markers, a marker to encode the type into a compiled form of the closure, wherein the marker is one of an interface that corresponds to the type, a class that corresponds to the type, and a trait that corresponds to the
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (3)
Non-Patent Literature (3)
- Alan Skorkin, "Closure-A Simple Explanation (Using Ruby)", May 18, 2010, http://www.skorks.com/2010/05/closures-a-simple-explanation-using-ruby/, 7 pages.
- Axelsen et al., "Groovy Package Templates: Supporting Reuse and Runtime Adaption of Class Hierarchies", Oct. 26, 2009, ACM 2009 Article, vol. 44 Issue 12, Dec. 2009, pp. 15-26.
- Costan et al., "The Trusted Execution Module: Commodity General-Purpose Trusted Computing", 2008, G. Grimaud and F.-X. Standaert (Eds.): CARDIS 2008, LNCS 5189, 16 pages (pp. 133-148).