DSL Page Rendering for Real-Time and Hot Updates
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current page rendering technologies lack flexibility, resulting in poor user experience due to limited capabilities for real-time updates and hot updates, especially in applications and webpages.
Innovation Solution
A method involving the use of a domain-specific-language (DSL) file to describe a target page, which is parsed to create a control tree structure, allowing for real-time rendering and updating of pages, including control instances with rendering functions and attributes, and enabling hot updates through real-time parsing and execution of DSL data.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If traditional page rendering methods are used, then the rendering process is simple, but the flexibility of page rendering is low and real-time updates cannot be achieved
Solution Approach 1:
The patent introduces a DSL file as an intermediary layer between the page design and rendering processes. This DSL file describes the target page structure and can be parsed and re-executed to achieve page updates without modifying the original rendering logic, thereby improving flexibility while maintaining manageable complexity
Solution Approach 2:
The patent implements dynamic page rendering by allowing the DSL file to be parsed and re-executed at runtime. The rendering system can dynamically load and execute DSL descriptions to update pages in real-time, transforming a static rendering process into a dynamic one that adapts to changing requirements
2Loss of time
If traditional application update methods are used, then the update process is simple, but hot updates cannot be achieved and full reinstallation is required
Solution Approach 1:
The patent segments the application update process by separating the page description (DSL file) from the application core. Only the DSL file needs to be updated and re-executed for page updates, rather than updating the entire application, significantly reducing update time and resources required
Solution Approach 2:
The patent uses the DSL file as a copyable, executable representation of the page structure. By parsing and re-executing this DSL copy, the system can update pages without accessing or modifying the original application code, enabling rapid hot updates
Data Source
AI summary
Page rendering methods, a device, and a storage medium are provided. The method includes: obtaining a DSL file describing a target page including one or more controls; creating a control tree structure including one or more control instances by parsing the obtained DSL file based on a preset DSL parsing module; and rendering the target page according to the created control tree structure.


