Method, 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
US8627281B2 · kind B2 · utility
Assignee
Inventor
Key dates
| Filing date | Nov 25, 2010 |
| Grant date | Jan 7, 2014 |
| Priority date | — |
| Expiry date | Jul 22, 2032 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F9/4488
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
The present invention provides a method for converting source code written in a dynamically typed language into target code written in a statically typed language. The method includes the step of generating in a storage device the target code from the source code, the step of generating the target code including storing in a buffer a signature of a function/method used by a caller in the source code. In this step, generation of an interface class is delayed to a time point immediately before execution of a part of the target code corresponding to the function/method call by the caller, the interface class being needed to generate the caller and serving as an interface in the statically typed language. The method also includes the step of generating in the storage device a consolidated interface class for all signatures stored in the buffer, and loading the generated consolidated interface class from the storage device. In this step, all the signatures in the buffer are deleted upon generation of the consolidated interface class.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.