Patent ID: 8627281
Filing Date: 2014-01-07
Classification: G06F

Abstract:
1. A method for converting source code written in a dynamically typed language into target code written in a statically typed language, the method comprising the steps, executed by a computer, of: generating in a storage device the target code from the source code, the step of generating the target code in turn comprising storing in a buffer a signature of a function/method used by a caller in the source code, wherein 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; and 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, wherein all the signatures in the buffer are deleted upon generation of the consolidated interface class; wherein the step of generating the target code from the source code includes generating a function/method declaration corresponding to the caller in the source code.