In 10, or even 5 years there will be no [Edit2: server or desktop] 32-bit CPUs.
So, are there any advantages in using int (32bit) over long (64bit) ?
And are there any disadvantages in using int ?
Edit:
By
10 or 5 yearsI meant on vast majority of places where those langs are usedI meant which type to use by default. This days I won't even bother to think if I should use
shortas cycle counter, justfor(int i.... The same waylongcounters already winregisters are already 64-bit, there is already no gain in 32 bit types. And I think some loss in 8 bit types (you have to operate on more bits then you're using)