32 bits is small
permalink: https://wizardzines.com/comics/32-bit-small/
32 bits is small
permalink: https://wizardzines.com/comics/32-bit-small/
@b0rk Yes, I would say that 32-bit integer is most appropriate in most cases... Some exceptions are pointers/large indices into memory/data/files/etc, and timestamps.
For floats, 32-bit floats effectively only have 24-bit precision because of the mantissa, which makes you run into problems quickly if you don't know what you're doing.
32-bit is fine for realtime graphics, image processing, audio etc, but limited for most other stuff.
@b0rk And there are still quite a few 32 bit platforms that one may encounter in one’s dev life:
Eg. The RPi Pico / RP2040 is 32 bit: https://en.wikipedia.org/wiki/RP2040
As is ESP32, even it’s new RISC-V based one’s: https://en.wikipedia.org/wiki/ESP32
Also, the currently most available @[email protected] is the Zero W, and it is 32 bit: https://www.ourpcb.com/bcm2835.html And the Zero W will be in production until at least January 2026s https://www.raspberrypi.com/products/raspberry-pi-zero-w/
That sounds a lot like the Boeing 787 which needs (needed?) a reboot every 51 days :)
https://www.theregister.com/2020/04/02/boeing_787_power_cycle_51_days_stale_data/