Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C++20:Two complements reigns supreme

Name: Anonymous 2018-11-16 14:26

https://herbsutter.com/2018/11/13/trip-report-fall-iso-c-standards-meeting-san-diego/
C++20 and future C standards will stop supporting non 2-complement machines.
``Signed integers are two’s complement (JF Bastien) is the result of a courtroom drama in both WG21 (C++) and WG14 (C). After intense prosecutorial cross-examination, the witness finally admitted in both courts that, yes, all known modern computers are two’s complement machines, and, no, we don’t really care about using C++ (or C) on the ones that aren’t. The C standard is likely to adopt the same change.``

Also C++ is getting closer to D's CTFE with constexpr's expanding their role. Ranges and template-less constraints(dependent types require this) are also in standad.
``For the first time, besides the special case of generic lambdas, C++ will now let you write lots of generic functions without “template” or angle brackets, and that are concept-constrained and therefore much easier to use correctly than function templates have ever been before.``

Name: Anonymous 2018-11-16 14:29

Is this link from Hacker News? Go back there, please!

Name: Anonymous 2018-11-16 14:39

sepples committee keeps arguing about two's complement but still can't put good string handling utilities in stdlib. not to mention a non-atrocious syntax

Name: Anonymous 2018-11-16 15:09

>>2
All good links end up there, curb your autism.

Name: Anonymous 2018-11-16 17:53

I've never seen non two's complement machine and there is no reason to implement one. Same way, there is no reason to use non 16/32/64-bit architecture. Yes, some machines has registers with additional bits, but these are used mostly for typed pointers.

Name: Anonymous 2018-11-18 1:41

>>4
I don't see very many good links there

Name: Anonymous 2018-11-18 18:00

HackerNews is good if you like asutistic masturbation among fellow academic manchildren.

Name: Anonymous 2018-11-18 20:37

>>7
Wrong, hackernews is about hip starup founders

Name: Anonymous 2018-11-19 8:18

>>8
Startups === academia.

Name: Anonymous 2018-11-19 8:23

>>5
there is no reason to use non 16/32/64-bit architecture
There is no reason to use a 16/32/64-bit architecture either - unlike two's complement.

Name: Anonymous 2018-11-19 9:39


Don't change these.
Name: Email:
Entire Thread Thread List