2 ms·
I certainly appreciate the difficulty of choosing which subjects need to be explored: too many subjects and you become unfocused. Too few, and you run the risk
by dragontamer 6y ago
I certainly appreciate the difficulty of choosing which subjects need to be explored: too many subjects and you become unfocused. Too few, and you run the risk of not providing a solid base to teach the subject matter.
Its overall a good blogpost in any case.
--------
One more "criticism" (but not really).
> Rule #2: Whenever we need to choose a variable based on control flow, we use the Phi function (φ) to introduce a new variable based on our choice.
You might actually benefit from a more complicated example here, rather than the simpler example you chose.
A do-while loop:
int x = 0;
do{
x = x + 1;
} while (x < 100);
This has always been the hardest thing for me to understand, with respect to #2 and SSA in general.
int x_0 = 0;
do{
x_1 = phi(x_0, x_2);
x_2 = x_1 + 1;
} while (x_2 < 100);
On the one hand: choosing simple-to-understand examples is helpful to the reader, because they're simpler to understand. On the other hand, smacking the reader with the most complex case may suddenly spur inspiration and the ability to understand the whole problem.
I guess its a style choice. But something to think about...