"pow(x, 2.0)": argh
-
-
Thankfully we don’t have a direct competition so no benchmarks to game :) have not seen any trig heavy code I care about yet. But was surprised to see people use ^2 as a shortcut.
-
I would argue for including a power operator in most langs that you expect people to write computations in simply so it's natural to make this kind of optimization.
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.