News for hackers. Stuff that matters.
Re:Bounded Integer: Header-only C++ library replaces integer... by desertrider12 on Sunday September 29, 2019 @02:56PM (#21108943)
In many situations yes, and C/C++ compilers miss a lot of opportunities for constant folding/propagation. But still, an infinitely smart compiler can’t prove anything about a value that comes from a file, user input or socket at runtime. If control flow depends on those (which is true of every useful real-life program) then you’re out of luck. GMP arbitrary-size integers are amazingly fast but still much slower than native instructions, can’t be vectorized, require heap allocation, etc.

There are no comments on this comment yet.