Skip to content

Commit 863f231

Browse files
committed
docs: synced via GitHub Actions
1 parent 8d3faa0 commit 863f231

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

src/theory/paper/generalized-reversible-computation-paper-en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ GRC is often misunderstood as adding unnecessary complexity. In reality, it does
659659

660660
A core advantage of GRC is its seamless and orthogonal fusion of declarative and imperative programming. In the structure of its core formula `Y = Generator<DSL> ⊕ Δ`, the DSL, as the textual representation of the model, **does not need to be Turing-complete**, which keeps it simple and highly structured. When a declarative model is insufficient to express all logic, the delta `Δ` allows for the introduction of an imperative "escape hatch," such as a script or a Turing-complete template call. This endows the system with the ability to handle arbitrary complexity while strictly constraining the complexity of imperative code within local, explicit delta units.
661661

662-
Furthermore, although GRC requires developers to embrace a new mental model, its engineering implementation (such as the XDef metamodel in the Nop Platform) greatly reduces the cost of this transition. Once an architect defines a new business DSL using XDef, the platform **immediately and automatically** endows this new language with the full suite of GRC capabilities, including a unified delta mechanism and toolchain support. This "instant ROI" is the best compensation for the learning curve.
662+
Furthermore, although GRC requires developers to embrace a new mental model, its engineering implementation (such as the XDef metamodel in the Nop Platform) greatly reduces the cost of this transition. Once an architect defines a new business DSL using XDef, the platform immediately and automatically endows this new language with the full suite of GRC capabilities, including a unified delta mechanism and toolchain support. This "instant ROI" is the best compensation for the learning curve.
663663

664664
#### 9.2. Future Work
665665

src/theory/paper/generalized-reversible-computation-paper.tex

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ \subsubsection{Language Workbenches: Language Composition vs. Unified Metamodel}
257257
\begin{table}[htbp]
258258
\centering
259259
\caption{Comparison of GRC and JetBrains MPS Paradigms}
260-
\begin{tabularx}{\textwidth}{@{} l X X @{}}
260+
\begin{tabularx}{\textwidth}{@{} X X X @{}}
261261
\toprule
262262
\textbf{Dimension} & \textbf{JetBrains MPS} & \textbf{Generalized Reversible Computation (GRC)} \\
263263
\midrule
@@ -406,7 +406,7 @@ \subsection{Analogy with the Dirac (Interaction) Picture}
406406
\begin{table}[htbp]
407407
\centering
408408
\caption{Methodological Comparison of Computational Paradigms and Physics Pictures}
409-
\begin{tabularx}{\textwidth}{@{} l X X X @{}}
409+
\begin{tabularx}{\textwidth}{@{} X X X X @{}}
410410
\toprule
411411
\textbf{Dimension} & \textbf{Turing Machine} & \textbf{Lambda Calculus} & \textbf{GRC Paradigm} \\
412412
\midrule
@@ -1079,18 +1079,22 @@ \section{An Argument for the Associativity of the Merge Operator $\oplus$}
10791079
\subsection{The Domain Model Coordinate System}
10801080
GRC treats any structured software artifact as a \textbf{domain model} and establishes a \textbf{domain coordinate system} for it. Every value in the model can be located by a unique \textbf{Path}. For example, for the XML:
10811081
\begin{lstlisting}[language=XML, numbers=none]
1082-
<entity name="MyEntity">
1083-
<columns><column name="status" length="10" /></columns>
1082+
<entity name="MyEntity" table="MY_ENTITY">
1083+
<columns>
1084+
<column name="status" sqlType="VARCHAR" length="10" />
1085+
</columns>
10841086
</entity>
10851087
\end{lstlisting}
1086-
We can "flatten" it into a `{path: value}` map:
1088+
We can "flatten" it into a `{path: value}` map, where the path is the coordinate:
10871089
\begin{verbatim}
10881090
{
10891091
"/@name": "MyEntity",
1092+
"/@table": "MY_ENTITY",
1093+
"/columns/column[@name='status']/@sqlType": "VARCHAR",
10901094
"/columns/column[@name='status']/@length": 10
10911095
}
10921096
\end{verbatim}
1093-
All GRC operations are essentially operations on the values at specific coordinate points.
1097+
The path here (a simplified form of XPath) is the domain coordinate, as it is composed of domain concepts with business meaning like `entity`, `column`, and `name`. All GRC operations are essentially operations on the values at specific coordinate points in this system.
10941098
10951099
\subsection{The Argument for Associativity}
10961100
If we view a model as a high-dimensional vector where each dimension corresponds to a unique domain coordinate, then the merge of two models $M_1 \oplus M_2$ can be seen as a dimension-wise merge of two vectors. To \textbf{argue} that the merge of vectors satisfies associativity, we only need to \textbf{show} that the value merge operation at a single coordinate point satisfies associativity.
@@ -1168,6 +1172,12 @@ \subsection{Embedded Generator}
11681172
\end{lstlisting}
11691173
11701174
\subsection{Deterministic Construction Order}
1171-
XDSL defines a deterministic, multi-stage delta merging pipeline. All these construction operations are completed during the model loading phase and are completely transparent to the runtime, implementing the core "phase separation" idea of GRC.
11721175
1176+
XDSL defines a deterministic, multi-stage delta merging pipeline, with priority decreasing from left to right:
1177+
1178+
\begin{center}
1179+
$\Delta$ \textit{from post-extends} $\oplus$ $\Delta$ \textit{defined in current model} $\oplus$ $\Delta$ \textit{from gen-extends} $\oplus$ \textit{Base model from x:extends}
1180+
\end{center}
1181+
1182+
All these construction operations are completed during the model loading phase and are completely transparent to the runtime, implementing the core "phase separation" idea of GRC.
11731183
\end{document}

0 commit comments

Comments
 (0)