3 ms·
> And what happens when the wind blows? And wind blowing has what to do with compiler optimizations again? > Shaking and raking are hardly different in kind.
by naasking 3y ago
> And what happens when the wind blows?
And wind blowing has what to do with compiler optimizations again?
> Shaking and raking are hardly different in kind.
The only way they're similar is that they're both kinda dumb names for this optimization that has had a standard name for 40 years.
- paulddraper 3y ago> And wind blowing has what to do with compiler optimizations again? The wind blowing shakes the tree. When the tree shakes, the dead branches and loose leaves are removed. --- This is similar to when a bundler will traverse the connected code graph and remove the things that are not attached.
- naasking 3y agoSo in your mind, a compiler pass is somehow supposed to be similar to the wind blowing, and despite the fact that "tree shaking" makes no reference to the wind or dead branches or leaves, you think anyone seeing this term will immediately make this "completely obvious" connection, and to you, this makes more sense than simply calling an optimization a straightforward, self-explanatory name like "reachability analysis" or "dead code elimination". It's no wonder naming things is considered one of the hardest things in computer science if this kind of convoluted argument makes sense to people.