The road to Zettalinux
The road to Zettalinux
Posted Sep 16, 2022 13:29 UTC (Fri) by tux3 (subscriber, #101245)In reply to: The road to Zettalinux by colejohnson66
Parent article: The road to Zettalinux
The Rust integer types like i64 could map to "short long long", and even LLVM integers like i48 could be "short long short long".
Since there's some encoding space left with the short keyword as a useful escape keyword, let's also map the Rust unit type () to short bool, like this actual C++ paper proposed to replace void: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/...
Posted Sep 16, 2022 13:36 UTC (Fri)
by mathstuf (subscriber, #69389)
[Link]
Do I apply the spiral rule to reading this type as well?
Posted Sep 17, 2022 19:50 UTC (Sat)
by rav (subscriber, #89256)
[Link]
Is short bool then going to be signed or unsigned (or something in between, like char)?
We would need unsigned short bool and signed short bool to have proper sign extension support when going from 0-bit values to e.g. 32-bit values.
And of course, don't forget the new stdint.h typedefs: uint0_t and int0_t (for unsigned short bool and signed short bool).
The road to Zettalinux
The road to Zettalinux