Constants are known at compile time, and therefore are more performant as they don’t need to be reasoned about at runtime.
These days it’s not much of a performance boost but never a bad idea to use constants where appropriate.
Comment on To cosmic shreds, I say!
pressanykeynow@lemmy.world 1 day agoOk, it’s not 2PiR now, but just PiR. Given how often 2Pi is used some mathematicians will actually be happy. Would be a mess with other constants though.
Constants are known at compile time, and therefore are more performant as they don’t need to be reasoned about at runtime.
These days it’s not much of a performance boost but never a bad idea to use constants where appropriate.
I was talking more about physical constants, like magnetism, gravity, plank, etc. But sure, mathematical ones work, too. Probably even worse than physical constants doubling, since the doubling of mathematical ones would imply the corruption of reality itself.
thisisbutaname@discuss.tchncs.de 1 day ago
I have a feeling you’ll love tau.
pressanykeynow@lemmy.world 1 day ago
I actually hate it, it should be reversed: π = 2 τ like it’s visually fitting.
WorldsDumbestMan@lemmy.today 19 hours ago
Idk why Ibread fisting