Patents
US 10,013,245 B2#44973182 Most CitedActiveUnited States (USPTO)Utility

Systems and methods for converting typed code

2Forward Citations (#44973182 Global)
0.2/yrCitation Velocity (#29444217 Global)
0.88Citation PageRank (#49010059 Global)
21Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

Techniques provided implement automatic data type annotation in dynamically-typed source code. A codebase, which may comprise a plurality of source code files, is scanned at a global level. The resulting scanned data may describe characteristics of the codebase, including variable and function usage. Based on inferences drawn from the scanning, data types are determined for different variables, expressions, or functions to facilitate conversion from dynamically-typed source code to statically-typed source code. For example, if a function is called once with a parameter value of data type A (e.g., class A), and another time with a parameter value of data type B (e.g., class B), a conversion tool may annotate the parameter variable in the declaration of the function with a data type D (e.g., class d) when data type D is identified as a common ancestor (e.g., superclass) to both data type A and data type B.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented method comprising: scanning, by a computer system, a codebase to determine a first set of characteristics associated with a first dynamically-typed variable or function in the codebase; determining, by the computer system, a first set of potential data types for the first dynamically-typed variable or function based on the first set of characteristics; determining, by the computer system, a first candidate data type that is a superclass of data types associated with the first set of characteristics, and wherein each of the data types associated with the first set of char

Technical Overview & Description

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

References Cited — Backward Prior Art (21)

PatentTitleYearCitations
US 6,259,958 B1Call mechanism for static and dynamic linked functions within an object-oriented controller using heterogeneous development tool sets200144
US 2003014556 A1Method and system for a client invoking on an interface defined in a first notation to invoke an object having an interface defined in a second notation—21
US 2003177472 A1Method and apparatus for deployment of high integrity software using reduced dynamic memory allocation—25
US 6,681,383 B1Automatic software production system2004310
US 7,010,783 B2Method and apparatus for deployment of high integrity software using reduced dynamic memory allocation200610
US 2006070022 A1URL mapping with shadow page support—68
US 2006230393 A1Universal string analyzer and method thereof—18
US 2008059875 A1Method for optimizing character string output processing—16
US 2008320444 A1Late bound programmatic assistance—48
US 2010064281 A1Method and system for web-site testing—48
US 2010299660 A1Dynamic binding directed by static types—35
US 2011131556 A1Method, computer program and computer system for converting source code written in dynamically typed language into target code written in statically typed language and executing target code—26
US 2012180025 A1Dynamically generating statically-typed proxies for dynamically-typed functions—19
US 8,296,747 B2Method for optimizing character string output processing201211
US 2013061212 A1Modern Application Tracing—22
US 2013174135 A1Creating a shockwave flash file—3
US 2014019951 A1Mobile application translation—11
US 2014040860 A1Efficient and Expansive Conversions Between Reference and Primitive—23
US 2014143762 A1Symbolic execution of dynamic programming languages—17
US 8,863,079 B2Efficient and expansive conversions between reference and primitive201414
US 2016124727 A1Method for Checking and/or Transformation of a Computer Program with First-Class Static Functions—7

Non-Patent Literature (5)

  • Burke, Michael G. et al., "The Jalapefio Dynamic Optimizing Compiler for Java," 1999, pp. 129-141.
  • Engler, Dawson R. et al., "DCG: An Efficient, Retargetable Dynamic Code Generation System," 1994, pp. 263-272.
  • Furr, Michael, "Combining Static and Dynamic Typing in Ruby," PhD dissertation, Department of Computer Science, University of Maryland, 2009, pp. 90-135.
  • Guo, Philip J. et al., "Dynamic Inference of Abstract Types," 2006, pp. 255-265.
  • Haldiman, Niklaus, et al., "Practical, Pluggable Types for a Dynamic Language," Computer Languages, Systems & Structures, vol. 35, No. 1, Apr. 2009, pp. 48-62.