3 ms·
I think you'd have better responses if you said the implentation of ints in most programming languages is plain stupid. Processors are doing a reasonable job,
by toast0 2y ago
I think you'd have better responses if you said the implentation of ints in most programming languages is plain stupid.
Processors are doing a reasonable job, but there's certainly things they could do differently. Some languages have pretty specific integer types. And then you have C. Java at least makes all the integer widths consistently sized on all platforms, but neither provides good ways to express and manage overflow or carry. And the architects of Java decided that developers aren't qualified to use unsigned types, which makes a lot of tasks much harder.