3 ms·
Admittedly also hardware-related, but: Arbitrary bit-width integers are great for writing computer emulator code. There's a ton of odd-width counters and regis
by flohofwoe 7y ago
Admittedly also hardware-related, but:
Arbitrary bit-width integers are great for writing computer emulator code. There's a ton of odd-width counters and registers in microchips, and being able to map those directly to integer variables instead of having to do a "bit-mask-dance" after each operation at least would increase readability (and probably also add a bit of type-safety).
(Zig also has arbitrary bit-width integers up to 128 bits, but other then that I haven't seen this outside of hardware-description-languages).