Software cross-platform switching management method and related equipment
By modularizing the core engine and using AI big models to generate code snippets, the quality and standardization problems of AI code generation technology in complex scenarios are solved, and cross-platform development is efficient, easy to maintain and stable, reducing development costs.
Patent Information
- Application Number
- CN202411096217.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-11-15
AI Technical Summary
When existing AI code generation technologies deal with complex scenarios, the generated code quality and standardization may not be as good as manual writing, and the support and optimization capabilities for cross-platform development are limited, resulting in increased development costs and time.
The core engine is divided into independent modules according to its functions, determine the encoding specifications of each platform, and generate corresponding code snippets through the AI big model, automatically run and record exception events to optimize the code. Through modular design and strict coding specifications, the generated code structure is clear and easy to maintain, and improves code portability and compatibility through automated testing and optimization solutions.
It reduces the workload of manual code writing, improves development efficiency and code quality, reduces development costs, ensures that the generated code has stable performance and complete functions on various platforms, and improves the user experience of the end user.
Smart Images

Figure CN118963728A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a software cross-platform switching management method and related equipment. Background Art
[0002] Traditional cross-platform development usually requires writing specific code for each platform, which is costly and complex to maintain. Using cross-platform development frameworks (such as React Native, Flutter, etc.) can partially solve the cross-platform problem, but these frameworks have limited optimization and deep control over specific platforms. Separate code bases need to be written, maintained, and updated for each platform, resulting in increased development costs and time. Summary of the invention
[0003] The embodiments of the present application provide a software cross-platform switching management method and related equipment, which can solve the problem that some existing AI code generation technologies are mainly based on templates and automatically fill in highly repetitive codes. Although this method can reduce some development work, it has poor adaptability to complex scenarios; and use natural language processing (NLP) and machine learning technology to automatically generate code snippets, functions or classes. This method can handle more complex logic, but the quality and standardization of the generated code may not be as good as that of manually written code.
[0004] A first aspect of an embodiment of the present application provides a software cross-platform switching management method, including:
[0005] Divide the core engine into independent modules according to their functions and determine the coding standards for each platform;
[0006] Generate corresponding code snippets based on the coding standards and independent modules of the core engine through the AI big model;
[0007] Automatically run generated code and record exception events to optimize said code.
[0008] Optionally, the automatically running the generated code and recording abnormal events to optimize the code includes:
[0009] Automatically run generated code and log exceptions;
[0010] Obtaining an optimization plan determined by the user based on the abnormal event;
[0011] The code is optimized based on the optimization scheme through the AI big model.
[0012] Optionally, the core engine includes a physics engine, a rule engine and a teaching engine.
[0013] Optionally, determining the encoding specifications of each platform includes:
[0014] Defines the unified interface of the core engine.
[0015] Optionally, the determining of the encoding specifications for each platform further includes:
[0016] Determines the type and format of interface parameters.
[0017] Optionally, the determining of the encoding specifications for each platform further includes:
[0018] Describes how to use each interface and precautions.
[0019] Optionally, the automatically running the generated code and recording the abnormal events include:
[0020] Unit testing, integration testing, and performance testing are performed on the generated code, and exception events are recorded to optimize the code.
[0021] Optionally, the performing unit testing, integration testing and performance testing on the generated code, and recording abnormal events to optimize the code, comprises: performing unit testing, integration testing and performance testing on the generated code, and recording abnormal events;
[0022] Generate an optimization recommendation plan based on the abnormal event;
[0023] An optimization solution determined by a user based on the optimization recommendation solution is obtained to optimize the code.
[0024] Optionally, it further includes: generating test results respectively according to the plurality of optimization recommendation schemes;
[0025] The test results and the corresponding optimization recommendation solutions are displayed to users in association.
[0026] A second aspect of an embodiment of the present application provides a software cross-platform switching management device, including:
[0027] Determination unit, which is used to divide the core engine into independent modules according to functions and determine the coding standards of each platform;
[0028] A generation unit, used to generate corresponding code snippets based on the coding specification and the independent modules of the core engine through the AI big model;
[0029] An optimization unit is used to automatically run the generated code and record abnormal events to optimize the code.
[0030] A third aspect of an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the processor is configured to implement the steps of the above-mentioned software cross-platform switching management method when executing a computer program stored in the memory.
[0031] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned software cross-platform switching management method are implemented.
[0032] In summary, the software cross-platform switching management method provided in the embodiment of the present application is to divide the core engine into independent modules according to functions, and determine the coding specifications of each platform; generate the code snippets of the corresponding parts based on the coding specifications and the independent modules of the core engine through the AI big model; automatically run the generated code and record abnormal events to optimize the code. The automatic generation of code snippets by the AI big model reduces the workload of manual code writing and improves development efficiency. Through modular design and strict coding specifications, the generated code structure is clear and easy to maintain. At the same time, the code generated by the AI big model has undergone multiple rounds of optimization and testing, and the quality is higher. Through unified interface design and cross-platform support, it is ensured that the core engine can run smoothly on multiple platforms, which improves the portability and compatibility of the code. Automated testing and exception recording reduce the workload of manual testing and debugging, and reduce development costs. Through continuous optimization and testing, it is ensured that the generated code has stable performance and complete functions on various platforms, which improves the user experience of end users.
[0033] Correspondingly, the software cross-platform switching management device, electronic device and computer-readable storage medium provided by the embodiments of the present invention also have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A flowchart of a possible software cross-platform switching management method provided in an embodiment of the present application;
[0035] Figure 2 A schematic structural block diagram of a possible software cross-platform switching management device provided in an embodiment of the present application;
[0036] Figure 3 A schematic diagram of the hardware structure of a possible software cross-platform switching management device provided in an embodiment of the present application;
[0037] Figure 4 A schematic structural block diagram of a possible electronic device provided in an embodiment of the present application;
[0038] Figure 5 A schematic structural block diagram of a possible computer-readable storage medium provided for an embodiment of the present application. DETAILED DESCRIPTION
[0039] The embodiments of the present application provide a software cross-platform switching management method and related equipment, which can solve the problem that some existing AI code generation technologies are mainly based on templates and automatically fill in highly repetitive codes. Although this method can reduce some development work, it has poor adaptability to complex scenarios; and use natural language processing (NLP) and machine learning technology to automatically generate code snippets, functions or classes. This method can handle more complex logic, but the quality and standardization of the generated code may not be as good as that of manually written code.
[0040] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0041] See also Figure 1 , which is a flowchart of a software cross-platform switching management method provided in an embodiment of the present application, and may specifically include: S110-S130.
[0042] S110, dividing the core engine into independent modules according to functions, and determining the coding standards for each platform.
[0043] Modularize the core engine according to its main functions. For example, the physics engine can be divided into collision detection module, mechanical calculation module, motion simulation module, etc. Define the input and output interfaces of each module to minimize the dependencies between modules, thereby improving the independence and portability of the modules. According to the characteristics of each platform, formulate corresponding coding standards. These standards include but are not limited to function naming, variable naming, comment standards, code structure, etc. By abstracting the platform-related code interfaces, the code differences between different platforms can be reduced.
[0044] S120, generating corresponding code snippets based on the coding specification and the independent modules of the core engine through the AI big model.
[0045] For example, the AI big model is trained to understand the coding standards of each platform and the functional modules of the core engine. The AI big model generates code snippets for the corresponding parts based on the coding standards of each platform and the functional modules of the core engine. The code snippets generated by AI are integrated into the existing code base to form a complete cross-platform application.
[0046] S130, automatically running the generated code and recording abnormal events to optimize the code.
[0047] For example, run the generated code and perform automated testing to ensure the correctness of its functions and the stability of its performance. Record abnormal events that occur during the test, analyze and find out the problem. Based on the abnormal records and analysis results, optimize and repair the generated code to ensure that it meets the expected functional and performance requirements.
[0048] In summary, the software cross-platform switching management method provided in the above embodiment divides the core engine into independent modules according to functions, and determines the coding specifications of each platform; generates code snippets of the corresponding parts based on the coding specifications and the independent modules of the core engine through the AI big model; automatically runs the generated code and records abnormal events to optimize the code. The automatic generation of code snippets by the AI big model reduces the workload of manual code writing and improves development efficiency. Through modular design and strict coding specifications, the generated code structure is clear and easy to maintain. At the same time, the code generated by the AI big model has undergone multiple rounds of optimization and testing, and the quality is higher. Through unified interface design and cross-platform support, it is ensured that the core engine can run smoothly on multiple platforms, which improves the portability and compatibility of the code. Automated testing and exception recording reduce the workload of manual testing and debugging, and reduce development costs. Through continuous optimization and testing, it is ensured that the generated code has stable performance and complete functions on various platforms, which improves the user experience of end users.
[0049] According to some embodiments, the automatically running the generated code and recording abnormal events to optimize the code includes:
[0050] Automatically run generated code and log exceptions;
[0051] Obtaining an optimization plan determined by the user based on the abnormal event;
[0052] The code is optimized based on the optimization scheme through the AI big model.
[0053] Exemplarily, an automated operating environment is set up on each platform to execute the generated code. CI / CD tools (such as Jenkins, GitLab CI, etc.) can be used for automated deployment and execution. Run the generated code and perform various operations and scenario tests to ensure its functionality and performance on different platforms. During the operation, all abnormal events are recorded, including but not limited to crashes, errors, performance bottlenecks, etc. Logging tools (such as Log4j, SLF4J, etc.) can be used to record abnormal information in detail. The user analyzes the recorded abnormal events to determine the root cause of the problem. Debugging tools and performance analysis tools (such as GDB, Valgrind, Perf, etc.) can be used to help locate the problem. Based on the results of the abnormal analysis, the user proposes specific optimization plans. These plans can be code modification suggestions, logic adjustments, performance optimization strategies, etc. The optimization plan is submitted to the system as a basis for the AI model to further optimize the code. Requirements management tools (such as JIRA, Trello, etc.) can be used to record and manage optimization plans. The AI big model parses the optimization plan submitted by the user and understands the specific optimization requirements and goals. The AI big model optimizes the generated code according to the optimization plan. Optimization can include code refactoring, logic improvement, performance improvement, etc. The AI big model generates optimized code and performs automated testing to ensure that the optimized code functions and performance meet expectations. The AI big model automatically generates and optimizes code, reducing manual intervention and improving development efficiency. The AI big model optimizes code based on the optimization solution provided by the user, and the generated code is more in line with actual needs and has higher quality. Through automated operation and optimization, the generated code is ensured to have consistent functions and performance on various platforms, improving cross-platform compatibility. The workload of manual debugging and optimization is reduced, reducing development costs. The optimized code runs more stably and has higher performance on various platforms, improving the end-user experience.
[0054] According to some embodiments, the core engine includes a physics engine, a rule engine, and a teaching engine.
[0055] According to some embodiments, determining the encoding specifications of each platform includes:
[0056] Define the unified interface of the core engine;
[0057] Determine the type and format of interface parameters;
[0058] Describes how to use each interface and precautions.
[0059] For example, by defining a set of unified interfaces, modules on different platforms can interact in a standardized way. Ensure that the types and formats of interface parameters are unified to reduce compatibility issues between platforms. Describe the usage and precautions of each interface in detail to facilitate developers' understanding and application.
[0060] According to some embodiments, the automatically running the generated code and recording the abnormal event includes:
[0061] Unit testing, integration testing, and performance testing are performed on the generated code, and exception events are recorded to optimize the code.
[0062] According to some embodiments, the performing unit testing, integration testing and performance testing on the generated code and recording abnormal events to optimize the code includes: performing unit testing, integration testing and performance testing on the generated code and recording abnormal events;
[0063] Generate an optimization recommendation plan based on the abnormal event;
[0064] An optimization solution determined by a user based on the optimization recommendation solution is obtained to optimize the code.
[0065] Exemplarily, check whether the smallest execution unit of the code works as expected. This is the basis for ensuring code quality and helps to find errors at the function or method level early. Verify whether multiple modules or components can work together correctly. This is very important in a modular development environment to ensure that the interfaces between different modules meet the design requirements. Evaluate the performance of the code under various pressures and loads to ensure the stability and responsiveness of the software in the production environment. During the test, the system automatically records all abnormal events that occur, such as errors, failed test cases, performance bottlenecks, etc. This provides specific data support for subsequent optimization. Based on the recorded abnormal events, the system uses AI or other intelligent algorithms to generate optimization recommendations. These recommendations may include code refactoring, algorithm optimization, resource allocation optimization, etc. The generation of recommended solutions depends on the type and frequency of abnormal events. The system will learn which changes are most effective and apply this knowledge to the generated optimization strategies. Users can evaluate the optimization recommendations provided by the system and choose to accept or modify them. This step is interactive, allowing users to adjust the recommendations according to their specific needs and experience. The confirmed optimization solution will be applied to the code, and the system can be retested to verify the effect of the optimization. Therefore, through systematic testing and optimization recommendations based on actual data, the reliability and performance of the code can be significantly improved. The automated testing and optimization process reduces the need for manual intervention and speeds up the cycle from development to deployment. The optimized code is usually more concise, more efficient, and easier to maintain and upgrade. User participation in the optimization process can ensure that the final product better meets their expectations and needs, thereby improving user satisfaction.
[0066] According to some embodiments, the further step further includes: generating test results respectively according to the plurality of optimization recommendation schemes;
[0067] The test results and the corresponding optimization recommendation solutions are displayed to users in association.
[0068] Exemplarily, each optimization recommendation is tested independently, and these tests may include functional testing, performance testing, compatibility testing, etc., depending on the purpose and needs of the code. These test results will provide specific data support for each recommended optimization solution, showing the actual performance after optimization. Each optimization recommendation is displayed in association with its corresponding test results. This can be achieved through a graphical user interface, which displays the effects, impacts, and possible side effects of the optimization solution. Users can intuitively compare the advantages and disadvantages of different solutions and make more reasonable decisions. Therefore, by providing specific test results for each optimization solution, users can more clearly understand the specific impact and value that each change may bring, and enhance the transparency and basis of decision-making. Pre-testing various optimization solutions can prevent possible functional failures or performance issues, thereby improving the overall quality of the code before it is deployed. Understanding the specific impact of different optimization solutions can help decision makers reasonably allocate development and maintenance resources and prioritize the most influential issues. User participation in the optimization decision-making process can increase their satisfaction and commitment to the product, especially in custom development projects.
[0069] The above describes the software cross-platform switching management method in the embodiment of the present application. The following describes the software cross-platform switching management device in the embodiment of the present application.
[0070] See also Figure 2 An embodiment of the software cross-platform switching management device in the embodiment of the present application may include:
[0071] A determination unit 201 is used to divide the core engine into independent modules according to functions and determine the coding specifications of each platform;
[0072] A generating unit 202, configured to generate a code snippet of a corresponding part based on the coding specification and an independent module of a core engine through an AI big model;
[0073] The optimization unit 203 is used to automatically run the generated code and record abnormal events to optimize the code.
[0074] In summary, the software cross-platform switching management device provided in the above embodiment divides the core engine into independent modules according to functions, and determines the coding specifications of each platform; generates code snippets of the corresponding parts based on the coding specifications and the independent modules of the core engine through the AI big model; automatically runs the generated code and records abnormal events to optimize the code. The automatic generation of code snippets by the AI big model reduces the workload of manual code writing and improves development efficiency. Through modular design and strict coding specifications, the generated code structure is clear and easy to maintain. At the same time, the code generated by the AI big model has undergone multiple rounds of optimization and testing, and the quality is higher. Through unified interface design and cross-platform support, it is ensured that the core engine can run smoothly on multiple platforms, which improves the portability and compatibility of the code. Automated testing and exception recording reduce the workload of manual testing and debugging, and reduce development costs. Through continuous optimization and testing, it is ensured that the generated code has stable performance and complete functions on various platforms, which improves the user experience of end users.
[0075] above Figure 2 The software cross-platform switching management device in the embodiment of the present application is described from the perspective of modular functional entities. The software cross-platform switching management device in the embodiment of the present application is described in detail from the perspective of hardware processing. Please refer to Figure 3 , an embodiment of the software cross-platform switching management device 300 in the embodiment of the present application includes:
[0076] An input device 301, an output device 302, a processor 303 and a memory 304, wherein the number of the processor 303 can be one or more. Figure 3 In some embodiments of the present application, the input device 301, the output device 302, the processor 303 and the memory 304 may be connected via a bus or other means, wherein: Figure 3 The example of connecting through bus is taken in the following.
[0077] Wherein, by calling the operation instruction stored in the memory 304, the processor 303 is used to perform the following steps:
[0078] Divide the core engine into independent modules according to their functions and determine the coding standards for each platform;
[0079] Generate corresponding code snippets based on the coding standards and independent modules of the core engine through the AI big model;
[0080] Automatically run generated code and record exception events to optimize said code.
[0081] Optionally, the automatically running the generated code and recording abnormal events to optimize the code includes:
[0082] Automatically run generated code and log exceptions;
[0083] Obtaining an optimization plan determined by the user based on the abnormal event;
[0084] The code is optimized based on the optimization scheme through the AI big model.
[0085] Optionally, the core engine includes a physics engine, a rule engine and a teaching engine.
[0086] Optionally, determining the encoding specifications of each platform includes:
[0087] Defines the unified interface of the core engine.
[0088] Optionally, the determining of the encoding specifications for each platform further includes:
[0089] Determines the type and format of interface parameters.
[0090] Optionally, the determining of the encoding specifications for each platform further includes:
[0091] Describes how to use each interface and precautions.
[0092] Optionally, the automatically running the generated code and recording the abnormal events include:
[0093] Unit testing, integration testing, and performance testing are performed on the generated code, and exception events are recorded to optimize the code.
[0094] By calling the operation instructions stored in the memory 304, the processor 303 is also used to execute Figure 1 Any method in the corresponding embodiment.
[0095] See also Figure 4 , Figure 4 A schematic diagram of an embodiment of an electronic device provided in an embodiment of the present application.
[0096] like Figure 4 As shown, an embodiment of the present application provides an electronic device, including a memory 410, a processor 420, and a computer program 411 stored in the memory 420 and executable on the processor 420. When the processor 420 executes the computer program 411, the following steps are implemented:
[0097] Divide the core engine into independent modules according to their functions and determine the coding standards for each platform;
[0098] Generate corresponding code snippets based on the coding standards and independent modules of the core engine through the AI big model;
[0099] Automatically run generated code and record exception events to optimize said code.
[0100] Optionally, the automatically running the generated code and recording abnormal events to optimize the code includes:
[0101] Automatically run generated code and log exceptions;
[0102] Obtaining an optimization plan determined by the user based on the abnormal event;
[0103] The code is optimized based on the optimization scheme through the AI big model.
[0104] Optionally, the core engine includes a physics engine, a rule engine and a teaching engine.
[0105] Optionally, determining the encoding specifications of each platform includes:
[0106] Defines the unified interface of the core engine.
[0107] Optionally, the determining of the encoding specifications for each platform further includes:
[0108] Determines the type and format of interface parameters.
[0109] Optionally, the determining of the encoding specifications for each platform further includes:
[0110] Describes how to use each interface and precautions.
[0111] Optionally, the automatically running the generated code and recording the abnormal events include:
[0112] Unit testing, integration testing, and performance testing are performed on the generated code, and exception events are recorded to optimize the code.
[0113] In the specific implementation process, when the processor 420 executes the computer program 411, it can achieve Figure 1 Any implementation manner in the corresponding embodiments.
[0114] Since the electronic device introduced in this embodiment is a device used to implement a software cross-platform switching management device in the embodiment of the present application, based on the method introduced in the embodiment of the present application, technical personnel in this field can understand the specific implementation method of the electronic device of this embodiment and its various variations. Therefore, how the electronic device implements the method in the embodiment of the present application is not introduced in detail here. As long as the equipment used by technical personnel in this field to implement the method in the embodiment of the present application is within the scope of protection of this application.
[0115] See also Figure 5 , Figure 5A schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present application.
[0116] like Figure 5 As shown, this embodiment provides a computer-readable storage medium 500, on which a computer program 511 is stored. When the computer program 511 is executed by a processor, the following steps are implemented:
[0117] Divide the core engine into independent modules according to their functions and determine the coding standards for each platform;
[0118] Generate corresponding code snippets based on the coding standards and independent modules of the core engine through the AI big model;
[0119] Automatically run generated code and record exception events to optimize said code.
[0120] Optionally, the automatically running the generated code and recording abnormal events to optimize the code includes:
[0121] Automatically run generated code and log exceptions;
[0122] Obtaining an optimization plan determined by the user based on the abnormal event;
[0123] The code is optimized based on the optimization scheme through the AI big model.
[0124] Optionally, the core engine includes a physics engine, a rule engine and a teaching engine.
[0125] Optionally, determining the encoding specifications of each platform includes:
[0126] Defines the unified interface of the core engine.
[0127] Optionally, the determining of the encoding specifications for each platform further includes:
[0128] Determines the type and format of interface parameters.
[0129] Optionally, the determining of the encoding specifications for each platform further includes:
[0130] Describes how to use each interface and precautions.
[0131] Optionally, the automatically running the generated code and recording the abnormal events include:
[0132] Unit testing, integration testing, and performance testing are performed on the generated code, and exception events are recorded to optimize the code.
[0133] In the specific implementation process, when the computer program 511 is executed by the processor, it can achieve Figure 1Any implementation manner in the corresponding embodiments.
[0134] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0135] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0136] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0137] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0138] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0139] The present application also provides a computer program product, which includes computer software instructions. When the computer software instructions are executed on a processing device, the processing device is caused to execute the following Figure 1 The process in the software cross-platform switching management method in the corresponding embodiment.
[0140] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0141] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0142] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0143] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0144] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0145] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0146] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A software cross-platform switching management method, characterized in that: The method comprises: Divide the core engine into independent modules according to their functions and determine the coding standards for each platform; Generate corresponding code snippets based on the coding standards and independent modules of the core engine through the AI big model; Automatically run generated code and record exception events to optimize said code.
2. The method according to claim 1, characterized in that The automatically running generated code and recording abnormal events to optimize the code includes: Automatically run generated code and log exceptions; Obtaining an optimization plan determined by the user based on the abnormal event; The code is optimized based on the optimization scheme through the AI big model.
3. The method according to claim 1, characterized in that The core engine includes a physics engine, a rule engine and a teaching engine.
4. The method according to claim 1, characterized in that: Determining the encoding specifications of each platform includes: Define the unified interface of the core engine; Determine the type and format of interface parameters; Describes how to use each interface and precautions.
5. The method according to claim 4, characterized in that The automatically running generated code and recording abnormal events include: Unit testing, integration testing, and performance testing are performed on the generated code, and exception events are recorded to optimize the code.
6. The method according to claim 5, characterized in that The step of performing unit testing, integration testing and performance testing on the generated code and recording abnormal events to optimize the code comprises: performing unit testing, integration testing and performance testing on the generated code and recording abnormal events; Generate an optimization recommendation plan based on the abnormal event; An optimization solution determined by a user based on the optimization recommendation solution is obtained to optimize the code.
7. The method according to claim 6, characterized in that Also includes: Generate test results respectively according to the plurality of optimization recommendation schemes; The test results and the corresponding optimization recommendation solutions are displayed to users in association.
8. A software cross-platform switching management device, characterized in that: include: Determination unit, which is used to divide the core engine into independent modules according to functions and determine the coding standards of each platform; A generation unit, used to generate corresponding code snippets based on the coding specification and the independent modules of the core engine through the AI big model; An optimization unit is used to automatically run the generated code and record abnormal events to optimize the code.
9. An electronic device, comprising a memory and a processor, characterized in that: The processor is configured to implement the steps of the software cross-platform switching management method according to any one of claims 1 to 7 when executing the computer program stored in the memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the software cross-platform switching management method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Cross-platform kernel adaptation method
CN119311315A
