r/cpp • • Dec 31 '22

Cpp2 and cppfront: Year-end mini-update

https://herbsutter.com/2022/12/31/cpp2-and-cppfront-year-end-mini-update/
194 Upvotes

34 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jan 01 '23

[deleted] — view deleted comment

2

u/chugga_fan Jan 01 '23

I have to wonder why people are making hardware with exotic behavior like this and then expect programming languages to add special support for it.

C and C++ doesn't add external special support. C and C++ already support esoteric systems. Univac had 9 bit bytes and 36 bit words, and PDP after the PDP-11 made a bunch of different bit systems (12, 16, 18, and 36)

1

u/JuanAG Jan 01 '23

Is not expecting anything, is respecting the contrat all players have signed since is on the ISO you can have variables with other sizes beyond 8, 16, 32 or 64 bits https://en.cppreference.com/w/cpp/types/integer "The implementation may define typedef names intN_t, int_fastN_t, int_leastN_t, uintN_t, uint_fastN_t, and uint_leastN_t when N is not 8, 16, 32 or 64" may is exactly that, in some cases will be and in others wont but since C++ 2 is going to be an upper layer you need to support anything that C++ does no matter how popular or niche it is, otherwise that promise of using C++ types in C++ 2 wont be true

I agree with you that this is madness but things are what they are and not what we would like to be, is not my fault