2 ms·
> How many languages actually take advantage of the fact that they could get more performance out of "small" register sized integers? Er...all of them? I am n
by mpweiher 4y ago
> How many languages actually take advantage of the fact that they could get more performance out of "small" register sized integers?
Er...all of them? I am not aware of one that uses growable integers as their default integer representation that does not use some form of tagged pointer optimisation.
> Glitchy output isn't good
Hmm...understating the problem here just a tad.
"In 2021, they ranked 12th in the updated Common Weakness Enumeration (CWE) list of the most common flaws, bugs, faults, and other errors in either hardware or software. The team behind the list ranked integer overflows just after “Missing Authentication for Critical Function”, due to the severity and prevalence of integer overflows."
https://www.comparitech.com/blog/information-security/integer-overflow-attack/ https://www.comparitech.com/blog/information-security/intege...
> Some buggy code path is trying to allocate a 10 GB integer can be worse
Hmmm...overstating the problem here just a tad. Not even sure how you'd manage that, given that that would be an integer with 4 billion digits.