I once again cam across implementing something that needs to deal with uint64 values, and remembered there is no toit support. Whats the likelyhook of it being added at some stage? and or what would be the recommended best practises for working with uint64s in toit?
floitsch02/15/2025 12:27 PM
Typically we just use int64s. Since uint64s are normally just used as data, there isn't really a difference in treating it as signed or unsigned.
1
floitsch
Typically we just use int64s. Since uint64s are normally just used as data, there isn't really a difference in treating it as signed or unsigned.
addshore02/18/2025 12:15 PM
yeah, the only annoying part is calling stringify on it for loggging and such or text display
floitsch02/18/2025 12:16 PM
right... We could add a $(%X var) (where X is something unused) to print it. Personally, I would probably always print it as hex ("$(%08x var)".(edited)
addshore02/18/2025 12:19 PM
so, the usecase for text display probably doesnt work with hex. ie, our devices have a uint64 ID, and we want to display it on an eink for users to see on boot
floitsch02/18/2025 12:22 PM
I see. I guess an unsigned $(% is then the most useful.