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

A program execution method, device, equipment and medium

A program execution, main program technology, applied in program code conversion, source code creation/generation, code compilation, etc., can solve problems such as team development obstacles, affect memory release, and code difficult to read, reduce circular dependencies, and increase complexity. sexual effect

Active Publication Date: 2022-06-07
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when the project volume is relatively large and the business is relatively complex, various dependencies will inevitably be generated in the program, for example, inheritance between classes, or interdependence between jar packages, etc. Excessive dependencies will inevitably increase the system The complexity of the code makes it difficult to read and thus becomes a hindrance to the development of the team
In particular, the circular dependency will affect the memory release and other operations during program execution, and affect the running performance of the entire program.

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
  • A program execution method, device, equipment and medium
  • A program execution method, device, equipment and medium
  • A program execution method, device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] Figure 1 For the present disclosure embodiment I provides a flowchart of a program execution method, the present embodiment may be suitable for the use of classes in the main engineering development mode to implement business functions, the method may be executed by a program actuator, the apparatus may be implemented in a software and / or hardware manner, the apparatus may be configured in an electronic device, the method specifically comprising the following steps:

[0055] Step 110, during the execution of the main program in the main project, if it is detected that the target main project class defined in the main program is triggered, the execution of the target main project class begins.

[0056] Among them, the main program in the main project is the program code used to implement the business function body, which achieves the complete business function by calling different types of entities. The target main project class is a class defined in the main program, the...

Embodiment 2

[0071] Figure 2 Flowchart of a program execution method provided for embodiment II of the present disclosure. The present embodiment may be combined with one or more of the above embodiments in combination with each alternative embodiment, providing a specific execution step after starting to execute the target main engineering class and after starting to execute the target underlying component class. In the present embodiment, after starting to execute the target main engineering class, may further comprise:

[0072] During the execution of the target main project class, if a call to the second target public component class in the second common component library is detected, the execution of the second target public component class begins; Provide the execution results of the feedback from the second target common component class to the target master project class so that the target master project class continues execution based on the execution results.

[0073] Correspondingly...

Embodiment 3

[0105] Figure 3 Schematic structural diagram of a program execution apparatus provided for embodiment IV of the present disclosure, the present embodiment may be adapted to the use of classes in the main engineering development mode to achieve business functions. The apparatus may be implemented in a software and / or hardware manner, the apparatus may be configured in an electronic device, the apparatus may comprise: the main engineering class execution module 310, the underlying component class execution module 320 and the first execution result feedback module 330, wherein,

[0106] Main project class execution module 310, for the execution of the main program in the main project, if it is detected that the target main project class defined in the main program is triggered, the target main project class is started to execute;

[0107] The underlying component class executes module 320 for executing the target main project class, if a call to the target underlying component cla...

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 present disclosure discloses a program execution method, device, device, and medium, including: during the execution of the main program in the main project, if it is detected that the target main project class defined in the main program is triggered, start the execution The target main project class; during the execution of the target main project class, if a call to the target underlying component class in the underlying component library is detected, the target underlying component class is started to be executed; wherein, the underlying component library includes at least one underlying component class, the underlying component class cannot call the classes included in the main project during execution; the execution result fed back by the target underlying component class is provided to the target main project class, so that the target main project class continues to execute based on the execution result. The embodiments of the present disclosure can effectively reduce the circular dependency between classes.

Description

Technical field [0001] Embodiments of the present disclosure relate to a processing technique, in particular to a program execution method, apparatus, apparatus and medium. Background [0002] With the continuous development of the intelligent industry, program development, as the core step to realize the functions of intelligent software, has played a vital role in the development of the intelligent industry. [0003] The existing program development mode mainly selects the main engineering development mode, that is, the programmer writes entities in the main program that can implement various business functions, such as classes, jars (Java Archive, Java archive) packages or modules, etc., by referencing one or more entities required in the main project to achieve the required business functions. [0004] However, when the amount of engineering is relatively large and the business is more complex, it will inevitably produce various dependencies in the program, such as inheritanc...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/41G06F8/30
Inventor 王岳晨
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD