r/cpp • u/smilodonthegreat • Sep 15 '18
What happens in 2098 with C++?
If we stay on the new standard every 3 years for the rest of this century, there will be a new standard in 2098. However, there is already a C++98.
In addition, in 2083, we will have C++83; however, in 1983 C with Classes was renamed to C++, so C++83 should refer to C++ as it existed in 1983.
The naming scheme here is not very future proof.
Does the standards committee have any plans for addressing this issue?
</joking as I am at work on a Saturday>
265
Upvotes
387
u/Ameisen vemips, avr, rendering, systems Sep 15 '18 edited Sep 15 '18
Committee members around the world will be working nonstop for years to prevent the Y2k98 problem.
The solution will be to change the C++ version to a template that references the previous version. No longer will there be years. It will be ISO/IEC 14882:
std::version_v<std::version::cpp95>::next. It will be proposed by the the 3rd cyborg clone of Herb Sutter, the entire committee now being run by SutterBots. Go still won't have generics, but the Canadian Aboriginal block will have official approval.Alternatively, in 2098, we will finally pass a sequence point and the increment will resolve, so it will be D++98. However, following history, we will call it DCPL. /u/WalterBright disapproves, but isn't willing to destroy the Earth in the resulting battle between Sutterbots and Brightniks. He does destroy the Moon, however, though by that point it has been renamed Earth::satellite[0].
The split timeline occurs because a committee member overflows a signed integer. Undefined behavior follows.
77
u/SuperV1234 https://romeo.training | C++ Mentoring & Consulting Sep 15 '18
126
u/[deleted] Sep 15 '18
We might get modules in C++2098.
53
u/serEatAlot Sep 15 '18
way ahead of ya mate : c++_98
or c++98_t both are equally valid
38
u/wrosecrans graphics and network things Sep 15 '18
It'll surely be namespaced in std::chrono::twenty_first_century::C++98
Either that, or they'll just forcibly upload a mind virus into our cyberbrains at re-education camps to eliminate all knowledge of the 20th Century to avoid the naming overlap.
27
u/underwatr_cheestrain Sep 15 '18
It’s alive and well way past 2098
Star Trek Discovery
https://cdn-vox--cdn-com.cdn.ampproject.org/i/s/cdn.vox-cdn.com/thumbor/83B0-FVHoG066dife7jvSvNZmaI=/0x0:2324x1148/1400x933/filters:focal(977x389:1347x759):no_upscale()/cdn.vox-cdn.com/uploads/chorus_image/image/56977777/Screen_Shot_2017_10_03_at_1.59.42_PM.0.png
Yes I know it doesn’t show c++, but if that’s there, c++ is there.
23
u/manimax3 Sep 15 '18
Leave it c++98 would save me a lot of work modernizing some projects.
23
u/leaningtoweravenger Sep 15 '18
Around mid century the committee will start removing features in such a way that C++98 and the other C++98 will achieve feature parity
21
u/concealed_cat Sep 15 '18
C++ will be renamed to T++ once everything is a template, so this problem won't happen.
19
u/gshrikant Sep 15 '18
Well, seeing as C++70 would probably let
autogenerate the entire program for you at compile time with zero overhead. I don't think that revision of the standard would be needed.18
u/skreef Sep 15 '18
By 2050, all conforming programs and specifications will need to repeat keywords at least twice, so it will be named
C++ C++ 98.17
u/mujjingun Sep 15 '18
mysql_real_c++9816
u/jcelerier ossia score Sep 15 '18
undefined behaviour
13
u/[deleted] Sep 16 '18
We won't have to worry about this, because everything will be JavaScript/Electron. In fact, we won't even be speaking English, instead we will all be speaking JavaScript.
11
u/AlbertRammstein Sep 15 '18
c+++98 (yes, we will have the hyperincrement operator by then)
9
u/delarhi Sep 15 '18
If they're really evil they'll utilize the unused years and offset the releases so that we get C++97 > C++98, C++02 > C++03, etc.
7
u/AbrasiveLore Sep 15 '18
C+=2, obviously.
7
u/wbic16 Sep 15 '18
C++42 will be the final version, published in 2050. Stroustrup will be 100 years old by then, and will finally retire.
By 2098, everyone will joke about C++ programmers being obsolete, just like COBOL-85 programmers are today.
7
u/Potatoswatter Sep 16 '18
The two-digit naming scheme is only colloquial. The standard encodes the full year and month in
__cplusplus, and it useslong intjust to be extra sure.6
u/Veedrac Sep 15 '18
Maybe I'm being silly but I don't get why we need different names anyway? Isn't that what the
++is for?6
u/jurniss Sep 16 '18
C++0xC6, obviously.8
u/spiderzork Sep 15 '18
C++ 98 millennium edition, or C++ Me for short.
4
u/JerksToSistersFeet Sep 15 '18
Pretty easy solution: just skip that year and after 2100, start the naming convention with three digits intead of two. I don't think C++83 is an issue because nobody calls it that.
Alternatively, we can call it "C++ 100th Anniversary Standard" or "C++100AS" for short
6
u/Chippiewall Sep 15 '18
The standards committee will take the year off and release C++99 instead.
3
u/waxrat Sep 15 '18
The singularity will happen around 2038. Then we won't need to write software anymore.
3
u/Xaxxon Sep 16 '18
Humans won’t be programming in 2098.
2
u/ArunMu The What ? Sep 15 '18
C++98 reincarnated
2
u/TotesMessenger Sep 15 '18
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
2
u/drapermovies Sep 15 '18
It’ll be like windows 10 and just become C++ 99 or C++988 or something. Because...bad maths.
2
u/MonokelPinguin Sep 16 '18
The standard will just be released in 2099, making it C++99 and resolving all ambiguities.
2
u/Oddball_bfi New & Confused | C# b/g Sep 16 '18
We'll have been replaced with low level JavaScript by then.
1
u/AngheloAlf Sep 15 '18
C++098
1
u/scilona Sep 15 '18
Let the machines decide
1
u/ghostopera Sep 16 '18
C++2k98 :)
1
u/lead999x System Software Developer Sep 16 '18 edited Sep 17 '18
I think C++ will be dead by then because AI will replace human programmers. They'll write everything directly in machine language because their minds won't be limited to the point where they need the abstractions provided by higher level languages like C++.
1
u/napoleoncalifornia Sep 16 '18
That's where the D++ starts
1
u/MrHanoixan Sep 16 '18
Far before that, it will be C+++, the. C++++; but it will just be written as C#.
1
u/Enamex Sep 17 '18
C+098
No, that's not octal.
1
u/axilmar Sep 17 '18
What's wrong with C++2098?
1
u/cwhii Nov 11 '18
Time for a sabbatical, leap version to C++01 and push the issue out a couple of centuries.
1
u/[deleted] Dec 28 '18
C++098
1
u/phottitor Sep 15 '18
I hope it dies long before that otherwise humanity is fucked.
1
u/sternone_2 Sep 16 '18
We're not coding anymore in 2098, AI will code for us.
I would even say that in 20/30 years coding will not be really done anymore.
-12
u/bruce3434 Sep 15 '18
C++ will no longer be relevant in 2098.
-2
u/cogle9469 Sep 15 '18
We all switch to Rust.
0
u/[deleted] Sep 15 '18
[deleted] — view deleted comment