DYNAMICALLY GENERATING STATICALLY-TYPED PROXIES FOR DYNAMICALLY-TYPED FUNCTIONS
First Claim
1. A computer-implemented method comprising:
- receiving a specification of a statically typed first interface to a first function, the first interface including a specification of a data type of a parameter of the first function;
identifying a second function corresponding to the specification of the statically typed first interface to the first function, the second function written using a dynamically typed language; and
generating an implementation of the first function that invokes the second function.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present application may simplify an integration of statically typed and dynamically typed languages by automatically generating an implementation of a statically typed native interface for a given set of dynamically typed functions. In an embodiment, functions in a dynamically typed language are automatically interconnected with functions in a statically typed language. Code that bridges and/or connects a statically typed interface and a dynamically typed interface embodied in the dynamically typed source code may be automatically generated. The statically typed interface may be provided by a user. Further, an extensible set of runtime rules that determine how to convert between statically typed and dynamically typed data may be provided.
19 Citations
20 Claims
-
1. A computer-implemented method comprising:
-
receiving a specification of a statically typed first interface to a first function, the first interface including a specification of a data type of a parameter of the first function; identifying a second function corresponding to the specification of the statically typed first interface to the first function, the second function written using a dynamically typed language; and generating an implementation of the first function that invokes the second function. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. One or more tangible computer-readable storage media storing instructions for:
-
receiving a specification of a statically typed first interface to a first function, the first interface including a specification of a data type of a parameter of the first function; identifying a second function corresponding to the specification of the statically typed first interface to the first function, the second function written using a dynamically typed language; and generating an implementation of the first function that invokes the second function. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A system comprising:
-
a first processor for; receiving a specification of a statically typed first interface to a first function, the first interface including a specification of a data type of a parameter of the first function; identifying a second function corresponding to the specification of the statically typed first interface to the first function, the second function written using a dynamically typed language; and generating an implementation of the first function that invokes the second function. - View Dependent Claims (20)
-
Specification