Re:The Servers Are Burning
by dxhdr on Thursday September 06, 2018 @03:15PM
(#17928796)
> If a function is "referentially transparent" or "pure" it can't do anything unexpected.
Sure it can; at a minimum all functions consume compute resources. A tiny change in a "pure" JavaScript function could lead to cascading deoptimizations that destroys performance and compromises service availability. For example, changing 0.0 to 0 could do it.
Sure it can; at a minimum all functions consume compute resources. A tiny change in a "pure" JavaScript function could lead to cascading deoptimizations that destroys performance and compromises service availability. For example, changing 0.0 to 0 could do it.