Deferred type inference of generic type parameters in function calls to overloaded functions
Abstract
The disclosed embodiments provide a system that facilitates the development and execution of a software program. During runtime of the software program, the system delays type inference on a generic type parameter of an implementation of an overloaded function, wherein the generic type parameter is associated with a type interval containing an unbounded lower limit and one or more self-typed constraints. Upon detecting a type query for a dynamic type of the generic type parameter, the system compares a queried type from the type query with a set of inference choices for the generic type parameter. If the queried type matches an inference choice from the set of inference choices, the system uses the inference choice to perform type inference on the generic type parameter.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for facilitating the development and execution of a software program, comprising during runtime of the software program: during runtime of the software program; delaying type inference on a generic type parameter of an implementation of an overloaded function that is invoked in the software program, wherein the generic type parameter is associated with a type interval comprising an unbounded lower limit and one or more self-typed constraints; upon detecting a type query for a dynamic type of the generic type parameter, comparing a queried type from the type query
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (17)
Non-Patent Literature (4)
- Gal et al, "Trace-based Just-in-Time Type Specialization for Dynamic Languages" ACM, pp. 465-478, 2009.
- Mehnert, "Extending Dylan's Type System for Better Type Inference and Error Detection", ACM, pp. 1-10, 2010.
- Tsafrir et al, "Minimizing Dependencies within Generic Classes for Faster and Smaller Programs", ACM, 425-444, 2009.
- Zhu et al, "Specialization for Applications Using Shared Libraries" ACM, pp. 159-168, 2008.