▲ | fc417fc802 6 days ago | ||||||||||||||||||||||
Personally I think 12/48/96 would be more practical than the current 8/32/64. 32 bits is almost trivially easy to overflow whereas 48 bits is almost always enough when working with integers. And 64 bits is often insufficient or at least uncomfortably tight when packing bits together. Whereas by the time you've blown past 96 you should really just bust out the arrays and eat any overhead. Similarly I feel that 24 bits is also likely to be more practical than 16 bits in most cases. | |||||||||||||||||||||||
▲ | phkahler 5 days ago | parent | next [-] | ||||||||||||||||||||||
12 bit color would have been great. In the old days 4 bits for each of RGB, or even packing 2 pixels per byte. Today 12 bit per channel would be awesome, although high end cameras seem to be at 14 (which doesn't fit bytes well either). Instruction sets - 12 bits for small chips and 24 for large ones. RISC-V instructions encode better in 24bits if you use immediate data after the opcode instead of inside it. Physical memory is topping out near 40bits of address space and some virtual address implementations don't even use 64 bits on modern systems. Floating point is kinda iffy. 36 bits with more than 24bit mantissa would be good. not sure what would replace doubles. | |||||||||||||||||||||||
| |||||||||||||||||||||||
▲ | galangalalgol 5 days ago | parent | prev [-] | ||||||||||||||||||||||
The fixed point TI dsp chips always had a long int that was 48. Intel had 84 bit floating point registers before simd registers took over. And the pdp-11... Powers of two aren't as ubiquitous as it seems. If anything, the hardware uses whatever sizes it wants and that gets abstracted from the rest of the world by compilers and libraries. | |||||||||||||||||||||||
|