Unlock instant, AI-driven research and patent intelligence for your innovation.

Program updating method and device and program migration method and device

A program update and original program technology, applied in the program field, can solve problems such as program files cannot run normally, legacy, difficult to directly compatible with the adapter interface, etc.

Pending Publication Date: 2019-10-11
ALIBABA GRP HLDG LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] With the development of program design, some old program frameworks cannot meet the needs of business development, so the program framework needs to be upgraded
When the program framework is upgraded, the program files developed based on the original program framework cannot run normally under the new program framework
[0004] Due to the upgrade of the program framework, which involves the adjustment of programming models such as syntax and timing, it is difficult to be directly compatible with the adapter interface
Even if compatible, it creates a heavy maintenance burden and unpredictable problem legacy for new framework code
For this upgrade method, it is usually necessary to manually reconstruct the program files, but the manual reconstruction method is inefficient and not universally applicable. When there are many historical businesses, it is time-consuming and laborious.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Program updating method and device and program migration method and device
  • Program updating method and device and program migration method and device
  • Program updating method and device and program migration method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0085] In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0086] refer to figure 1 , which shows a flow chart of the steps of Embodiment 1 of a program update method of the present application, which may specifically include the following steps:

[0087] Step 101, obtaining the original program file;

[0088] In the embodiment of the present application, the original program files developed based on the original program framework are stored in the form of projects. Developers can create different projects according to business needs.

[0089] Generally, program files may include: code files, configuration files, program directories, external dependencies, test codes, etc.

[0090] A code file is code written in a programming language to implement a specific ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a program updating method and device and a program migration method and device. The program updating method comprises: obtaining an original program file; reading a code file of the original program file, and converting the code file into an abstract syntax tree AST; traversing the AST, converting a static definition based on an original program framework in the AST into a static definition based on a new program framework, and adapting a dynamic calling object based on the original program framework in the AST into a dynamic calling object based on thenew program framework; and converting the modified AST into a code file. According to the embodiment of the invention, through converting a code file of a program file into AST, and converting the static definition based on the original program framework in the AST into the static definition based on the new program framework, the dynamic calling object based on the original program framework inthe AST is adapted to the dynamic calling object based on the new program framework, so that the code file can be automatically updated under the condition that the program framework is upgraded, andthe universality is very good.

Description

technical field [0001] The present application relates to the field of program technology, in particular to a program update method, a program update device, a program migration method and a program migration function device. Background technique [0002] The program framework is a system that provides program reusability. Developers can develop program files on the program framework based on business needs. [0003] With the development of program design, some old program frameworks cannot meet the needs of business development, so the program framework needs to be upgraded. When the program framework is upgraded, the program files developed based on the original program framework cannot run normally under the new program framework. [0004] Due to the upgrade of the program framework and the adjustment of programming models such as syntax and timing, it is difficult to be directly compatible with the adapter interface. Even if it is compatible, it will cause a heavy main...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/65G06F8/51G06F8/75
CPCG06F8/65G06F8/51G06F8/75
Inventor 陈智浩谢焕榆
Owner ALIBABA GRP HLDG LTD