Copying objects between programming languages
AssigneeInternational Business Machines Corporation
InventorMotohiro Kawahito
Life of this patent
Estimating the term…
Abstract
Aspects of the present invention provide devices that generate an array in a first memory of a first programming language that includes an element of each object of a plurality of objects, wherein the array includes a plurality of items, and each item of the array includes the element of a corresponding object, copy the array in the first memory of the first programming language to a second memory of a second programming language, and generate each of the objects in the second programming language from the copied array.
Claims17
A computer-implemented method for copying objects between programming languages, comprising executing on a computer processor:
- generating a first plurality of arrays in a first memory of a first programming language to each comprise linear arrays of pluralities of elements that define each object of a plurality of first programming language objects in the first memory and that are ordered by corresponding object of the first programming language objects from which their respective elements are acquired, wherein each of the first plurality arrays comprise pluralities of different ones of the elements relative to others of the first arrays and that are acquired one each from different ones of the first programming language objects, and wherein each of the first plurality of arrays has a same linear array order defined with respect to the first programming language objects;
- copying each of the first plurality of arrays in the first memory of the first programming language into corresponding ones of a second plurality of arrays of elements in a second memory of a second programming language, wherein the second programming language is different from the first programming language, and the second memory is different from the first memory;
- and
- generating each of a second plurality of objects in the second memory in the second programming language from the elements of the second plurality of arrays to each comprise pluralities of elements that correspond to pluralities of elements that define corresponding ones of the first programming language objects as a function of copying the first plurality of arrays of elements into the second plurality of arrays in the same linear array order.
A system for copying objects between programming languages, comprising:
- a processor;
- a computer readable memory in circuit communication with the processor;
- and
- a computer readable storage medium in circuit communication with the processor;
- wherein the processor executes program instructions stored on the computer readable storage medium via the computer readable memory and thereby:
- generates a first plurality of arrays in a first memory of a first programming language to each comprise linear arrays of pluralities of elements that define each object of a plurality of first programming language objects in the first memory and that are ordered by corresponding object of the first programming language objects from which their respective elements are acquired, wherein each of the first plurality arrays comprise pluralities of different ones of elements relative to others of the first plurality arrays and that are acquired one each from different ones of the first programming language objects, and wherein each of the first plurality of arrays has a same linear array order defined with respect to the first programming language objects;
- copies each of the first plurality of arrays in the first memory of the first programming language into corresponding ones of a second plurality of arrays of elements in a second memory of a second programming language, wherein the second programming language is different from the first programming language, and the second memory is different from the first memory;
- and
- generates each of a second plurality of objects in the second memory in the second programming language from the elements of the second plurality of arrays to each comprise pluralities of elements that correspond to pluralities of elements that define corresponding ones of the first programming language objects as a function of copying the first plurality of arrays of elements into the second plurality of arrays in the same linear array order.
A computer program product for copying objects between programming languages, the computer program product comprising:
- a computer readable storage medium having computer readable program code embodied therewith, the computer readable program code comprising instructions for execution by a processor that causes the processor to:
- generate a first plurality of arrays in a first memory of a first programming language to each comprise linear arrays of pluralities of elements that define each object of a plurality of first programming language objects in the first memory and that are ordered by corresponding object of the first programming language objects from which their respective elements are acquired, wherein each of the first plurality arrays comprise pluralities of different ones of elements relative to others of the first arrays and that are acquired one each from different ones of the first programming language objects, and wherein each of the first plurality of arrays has a same linear array order defined with respect to the first programming language objects;
- copy each of the first plurality of arrays in the first memory of the first programming language into corresponding ones of a second plurality of arrays of elements in a second memory of a second programming language, wherein the second programming language is different from the first programming language, and the second memory is different from the first memory;
- and
- generate each of a second plurality of objects in the second memory in the second programming language from the elements of the second plurality of arrays to each comprise pluralities of elements that correspond to pluralities of elements that define corresponding ones of the first programming language objects as a function of copying the first plurality of arrays of elements into the second plurality of arrays in the same linear array order.
Dependencies are inferred from the claim text.