chiark / gitweb /
strategy: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 27 Apr 2012 11:51:59 +0000 (12:51 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 27 Apr 2012 11:51:59 +0000 (12:51 +0100)
article.tex
strategy.tex

index b37edd560df438b0379879b281c5b31bacb8b709..8ecdbc394a04fde93eadc52bda85d26199fd8174 100644 (file)
 \newcommand{\hasdep}{\succ}
 \newcommand{\isdep}{\prec}
 
 \newcommand{\hasdep}{\succ}
 \newcommand{\isdep}{\prec}
 
-\newcommand{\grefzc}{ T^0_{\pc} }
-\newcommand{\grefcc}{ T_{\pc} }
-\newcommand{\grefuc}{ T'_{\pc} }
-\newcommand{\greffc}{ T^*_{\pc} }
+\newcommand{\grefz}{ T^0 }
+\newcommand{\grefc}{ T }
+\newcommand{\grefu}{ T' }
+\newcommand{\greff}{ T^* }
+
+\newcommand{\grefza}[1]{ \grefz_{#1} }
+\newcommand{\grefca}[1]{ \grefc_{#1} }
+\newcommand{\grefua}[1]{ \grefu_{#1} }
+\newcommand{\greffa}[1]{ \greff_{#1} }
+
+\newcommand{\grefzc}{ \grefza \pc }
+\newcommand{\grefcc}{ \grefca \pc }
+\newcommand{\grefuc}{ \grefua \pc }
+\newcommand{\greffc}{ \greffa \pc }
 
 %\newcommand{\bigforall}{\mathop{\hbox{\huge$\forall$}}}
 \newcommand{\bigforall}{%
 
 %\newcommand{\bigforall}{\mathop{\hbox{\huge$\forall$}}}
 \newcommand{\bigforall}{%
index a718aecc8b7040f46ee459715344548da5086ec5..532b24e86ef0be422888ab8f51ea973c369f8bd7 100644 (file)
@@ -98,8 +98,32 @@ for $\pc' = \p$.
 
 \section{Execution phase}
 
 
 \section{Execution phase}
 
-
-
+We process commit sets from the bottom up according to the relation
+$\hasdep$.  For each commit set $\pc$ we construct $\greffc$ from
+$\grefzc$, as planned.  By construction, $\hasdep$ has $\patchof{L}$
+as its maximum, so this operation will finish by updating
+$\greffa{\patchof{L}}$.
+
+After we are done, the result has the following properties:
+\[ \eqn{Best Tip}{
+  \bigforall_{E_i \in \set E_{\pc}} \greffc \ge E_i
+}\]
+\[ \eqn{Perfect Contents}{
+  \greffc \haspatch \p \equiv \pc \hasdep \py
+}\]
+
+For brevity we will write $\grefu$ for $\grefuc$, etc.  We will start
+out with $\grefc = \grefz$, and at each step of the way construct some
+$\grefu$ from $\grefc$.  The final $\grefu$ becomes $\greff$.
+
+\subsection{Preparation}
+
+Firstly, we will check each $E_i$ for being $\ge \grefc$.  If
+it is, are we fast forward to $E_i$
+--- formally, $\grefu = \text{max}(\grefc, E_i)$ ---
+and drop $E_i$ from the planned ordering.
+
+\subsection{Merge Contributors for UP TO HERE}
 
 with $M=M_j, L=T_{\pc,j-1}, R=E_j$,
 and calculate what the resulting desired direct dependencies file
 
 with $M=M_j, L=T_{\pc,j-1}, R=E_j$,
 and calculate what the resulting desired direct dependencies file