Patents
US 7,512,938 B2#18820682 Most CitedExpiredUnited States (USPTO)Utility

Typed intermediate representation for object-oriented languages

6Forward Citations (#18820682 Global)
0.3/yrCitation Velocity (#22483067 Global)
1.25Citation PageRank (#30127760 Global)
11Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

Described herein are typed intermediate representations of object-oriented source code that preserve notions of class names, as well as add structure-based information related to classes in the source code. Types in the intermediate representation are divided into corresponding class name-based types and associated structure-based record types. The structure-based record type comprises a layout of objects that are instances of the corresponding class name-based types, where the object comprises one or more data fields and one or more virtual method members. Dynamic types can be abstracted in the form of existential types with sub-classing bounded quantifications. This makes type checking decidable. Existential types bind type variables with sub-classing bounds to represent dynamic types of objects. The layout of those objects can be approximated by structure-based record types. The types of virtual methods in the approximation record types include type variables that represent the dynamic types of those objects to guarantee safety.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer implemented method for generating a typed intermediate representation of a computer program, the method comprising: receiving a source code representation of the computer program in an object-oriented language, the source code representation comprising code portions related to defining one or more classes; and based on the source code representation, generating the typed intermediate representation of the computer program comprising at least some class name-based information which retains a class name-based class hierarchy expressed in the source code representation related to the o

Technical Overview & Description

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

Non-Patent Literature (5)

  • Abadi et al., "An interpretation of objects and object types," In ACM Symposium on Principles of Programming Languages, pp. 396-409, St. Petersburg Beach, Florida, 1996.
  • Baldan et al., "Basic theory of f-bounded quantification," Information and Computation, vol. 153, No. 1, pp. 173-237, Pisa, Italy, 1999.
  • Bruce et al., "Safe and Decidable Type Checking in an Object-Oriented Language." In the 8th Annual conference on Object-Oriented Programming Systems, Languages, and Applications, ACM Press, pp. 29-46, 1993.
  • Bruce, Kim B., "A paradigmatic object-oriented programming language: Design, static typing and semantics," Journal of Functional Programming, vol. 4, No. 2, pp. 127-206, Apr. 1994.
  • Canning et al., "F-Bounded Quantification for Object-Oriented Programming," In Fourth International Conference on Functional Programming Languages and Computer Architecture, pp. 273-280, 1989.