File-based software hot running method
Through file processing and dynamic parser, the software is hot-run, solving the problems of complex and cost in the traditional development process, improving development efficiency and flexibility, simplifying the system architecture and reducing operation and maintenance difficulties.
Patent Information
- Application Number
- CN202411574429.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-01-07
AI Technical Summary
Traditional software development process is complex and time-consuming, and relying on complex databases and middleware structures leads to high development costs. How to simplify the development process and improve efficiency has become an urgent problem.
Using a file-based software hot-running method, the code is converted into an interpreted process file through a text editor, reducing compilation and packaging steps, supporting offline development, and achieving hot updates and non-stop deployment through dynamic parsers and Vue Compiler.
It significantly shortens the software development cycle, simplifies the system architecture, improves development efficiency and flexibility, reduces operation and maintenance difficulties, and enhances the applicability and reliability of the platform.
Smart Images

Figure CN119271307A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a software hot running method based on file. Background Art
[0002] In the traditional software development process, developers need to go through multiple steps such as coding, compiling, packaging, and deployment. These steps are not only time-consuming but also prone to errors. In addition, many low-end software development platforms rely on complex database and middleware structures, resulting in high software development and maintenance costs. Therefore, how to simplify the development process and improve development efficiency has become a problem that needs to be solved urgently in the current software development field. Summary of the invention
[0003] The purpose of the present invention is to provide a software hot running method based on file to solve the problems raised in the above background technology.
[0004] To achieve the above object, the present invention provides the following technical solution: a software hot operation method based on file, comprising the following steps: S1: A text-based visual configuration service or text editor that completes the visual configuration of applications and the maintenance, modification and update of related functions, converting the codes written in various programming languages involved in software development into interpreted process files that can be directly read and executed by the parser without compilation; S2: Through file processing, the code that originally needs to be compiled and packaged is converted into a file that can be run directly, which greatly reduces the complexity of development, testing and deployment. Developers only need to modify the file on the platform, and it will take effect immediately without restarting the server; S3: Since the main operations are file-based, developers can still develop and debug software without a network connection, which enhances the applicability and reliability of the platform. S4: Initial deployment and operation of the base dynamic parser program. The Groovy real-time running engine will load the backend logic program file. Without stopping the system, the file can be dynamically loaded by modifying the file GroovyScriptEngine, including function calls and context execution. S5: The front-end uses vue-complier at the bottom of Vue to simplify the original packaged obfuscation mode into a dynamic rendering mode, and realizes the rendering of function code through optimization and dynamic generation of AST syntax tree template to achieve hot operation; S6: Run the dynamic parser program and perform one-click software update, installation, and uninstall operations to achieve hot updates and non-stop deployment.
[0005] Preferably, the programming language is SQL, Java, .NET, Vue or React, and the parser is Groovy or Vue-Compiler.
[0006] Preferably, a database part is also included, and the database part extracts SQL statements to form a configurable text file to support the modification of business adjustments during software development, and dynamically loads SQL statements through an SQL execution engine to also achieve hot loading.
[0007] Preferably, the front-end part is based on the latest Vue framework, extracts the underlying Vue-Complier core engine compiler, and realizes dynamic hot operation mainly through three steps.
[0008] Preferably, specifically: parsing (Parsing) parses the textual front-end string into an abstract syntax tree (AST), optimizing (Optmizing) statically marking and optimizing the AST nodes to improve the performance of dynamic thermal rendering, and generating (Generating) the AST function code after dynamic rendering optimization.
[0009] Compared with the prior art, the present invention has the following beneficial effects: 1. Improve development efficiency: Through document processing and immediate effectiveness mechanism, the software development cycle is significantly shortened and development efficiency is improved.
[0010] 2. Simplify system architecture: Reduce dependence on database and middleware, making the system architecture simpler and easier to maintain.
[0011] 3. Enhanced flexibility: Supports online coding and immediate effectiveness, making software updates and iterations more flexible.
[0012] 4. Improve maintainability: Through file management, software update, copying, migration and other operations are simplified, reducing the difficulty of operation and maintenance.
[0013] 5. Enhanced offline development capabilities: Support for offline development improves the platform's applicability in different environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0015] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0016] See also Figure 1 , a software hot run method based on file, comprising the following steps: S1: A text-based visual configuration service or text editor that completes the visual configuration of applications and the maintenance, modification and update of related functions, converting the codes written in various programming languages involved in software development into interpreted process files that can be directly read and executed by the parser without compilation; S2: Through file processing, the code that originally needs to be compiled and packaged is converted into a file that can be run directly, which greatly reduces the complexity of development, testing and deployment. Developers only need to modify the file on the platform, and it will take effect immediately without restarting the server; S3: Since the main operations are file-based, developers can still develop and debug software without a network connection, which enhances the applicability and reliability of the platform. S4: Initial deployment and operation of the base dynamic parser program. The Groovy real-time running engine will load the backend logic program file. Without stopping the system, the file can be dynamically loaded by modifying the file GroovyScriptEngine, including function calls and context execution. S5: The front-end uses vue-complier at the bottom of Vue to simplify the original packaged obfuscation mode into a dynamic rendering mode, and realizes the rendering of function code through optimization and dynamic generation of AST syntax tree template to achieve hot operation; S6: Run the dynamic parser program and perform one-click software update, installation, and uninstall operations to achieve hot updates and non-stop deployment.
[0017] The programming language is SQL, Java, .NET, Vue, or React, and the parser is Groovy or Vue-Compiler.
[0018] It also includes a database part, and the database part extracts SQL statements to form a configurable text file, supports modifications to business adjustments during software development, and dynamically loads SQL statements through the SQL execution engine, which also realizes hot loading.
[0019] The front-end part is based on the latest Vue framework, extracts the underlying Vue-Complier core engine compiler, and mainly achieves dynamic hot operation through three steps.
[0020] Specifically: Parsing parses the text-based front-end string into an abstract syntax tree (AST), optimizing (Optmizing) statically marks and optimizes the AST nodes to improve the performance of dynamic thermal rendering, and generating (Generating) the AST function code after dynamic rendering optimization.
[0021] When in use, the languages that need to be compiled in advance, such as SQL, high-level language complex logic programs, front-end pages, etc. involved in software development are integrated into interpreted process files, and Groovy is used to dynamically execute scripts. The GroovyScriptEngine engine dynamically runs text file scripts on the Java virtual machine JVM, and supports powerful hot loading solutions for JAVA's original compilation, class loading, method calling and context management through GroovyShell, GroovyScriptEngine and GroovyClassLoader, realizing technical support for hot operation based on the documented back-end logic part of the entire software system. The database part extracts SQL statements to form a configurable text file, which supports the modification of business adjustments during software development. Hot loading is also achieved by dynamically loading SQL statements through the SQL execution engine. The front-end part is based on the latest Vue framework and extracts the underlying Vue-Complier core engine compiler. Dynamic hot operation is achieved mainly through three steps: parsing (Parsing) parses the textual front-end string into an abstract syntax tree (AST), optimizing (Optmizing) static node marking and optimization of AST to improve the performance of dynamic hot rendering, and generating (Generating) the AST function code after dynamic rendering optimization. The above technical means simplify the loading, compiling, and execution involved in the operation of traditional software into a hot deployment mechanism that reads files and executes immediately. Through file processing, the strong dependence on databases and other middleware is reduced, the system architecture is further simplified, and the operation and maintenance costs are reduced.
[0022] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A software hot operation method based on file, characterized in that: The following steps are involved: S1: A text-based visual configuration service or text editor that completes the visual configuration of applications and the maintenance, modification and update of related functions, converting the codes written in various programming languages involved in software development into interpreted process files that can be directly read and executed by the parser without compilation; S2: Through file processing, the code that originally needs to be compiled and packaged is converted into a file that can be run directly; S3: Developers can still develop and debug software without network connection; S4: Initial deployment and operation of the base dynamic parser program. The Groovy real-time running engine will load the backend logic program file. Without stopping the system, the file can be dynamically loaded by modifying the file GroovyScriptEngine, including function calls and context execution. S5: The front-end uses vue-complier at the bottom of Vue to simplify the original packaged obfuscation mode into a dynamic rendering mode, and realizes the rendering of function code through optimization and dynamic generation of AST syntax tree template to achieve hot operation; S6: Run the dynamic parser program and perform one-click software update, installation, and uninstall operations to achieve hot updates and non-stop deployment.
2. A method for hot running software based on file according to claim 1, characterized in that: The programming language is SQL, Java, .NET, Vue or React, and the parser is Groovy or Vue-Compiler.
3. The method for hot running software based on file according to claim 1, characterized in that: It also includes a database part, and the database part extracts SQL statements to form a configurable text file, supports modifications to business adjustments during software development, and dynamically loads SQL statements through the SQL execution engine, which also realizes hot loading.
4. The method for hot running software based on file according to claim 3, characterized in that: The front-end part is based on the latest Vue framework, extracts the underlying Vue-Complier core engine compiler, and mainly achieves dynamic hot operation through three steps.
5. The method for hot running software based on file according to claim 4, characterized in that: Specifically: parse the text-based front-end string into an abstract syntax tree, optimize the static node marking and optimization of AST, improve the performance of dynamic thermal rendering, and generate AST function code after dynamic rendering optimization.