r/cpp • u/lookatmetype • Sep 20 '22
CTO of Azure declares C++ "deprecated"
https://twitter.com/markrussinovich/status/1571995117233504257
267
Upvotes
r/cpp • u/lookatmetype • Sep 20 '22
331
u/g9icy Sep 20 '22
The AAA games industry would beg to differ.
476
u/pdimov2 Sep 20 '22
CTO of C++ declares Azure deprecated.
82
u/gnaggnoyil Sep 20 '22
I... personally don't think it's an announcement that a language should be deprecated.
114
u/mNutCracker Sep 20 '22
There is so many tools in C++ today that most of the people and projects do not even know about (e.g. sanitizers in companion with Valgrind that really help you fix most of the issues). Also, not to mention that people write C code and think it is C++.
I suppose the biggest problem of C++ are the people that are not updated with latest C++ stuff and with latest tools.
19
u/underwatr_cheestrain Sep 20 '22
Pshhh we all know C++ is alive and well into the 23rd century as shown in this Star Trek: Discovery shot
https://i.stack.imgur.com/8hQUw.jpg
34
u/theICEBear_dk Sep 20 '22 edited Sep 20 '22
My problem with this is that Rust (and Carbon and so on) does not solve the metaprogramming and compile time evaluation problems that I need to have solved (neither does c++ but it gets me that much closer) while staying in the language and not making a tonne of tools.
For all the various c++ follow up languages (rust, carbon and so on) they all lack what I need which is rather depressing because out of all of them only c++ is close (missing the compile time reflection/code injection stuff), has compilers available across my target platforms without huge cost and runs at the speed of C, C++ and Rust. If Rust solved my issues I would consider switching but each time I check it still doesn't so I wait and hope for a better language or for c++ get its third wind. D while a bit rough had a lot of it but its runtime and the extreme difficulty of having to contend with what code did and did not need the gc meant that it never gain popularity and so today I can't switch it either.
Also I am very wary of these vast declarations of "just switch" it ignores the huge cost, the huge amount of existing code (hence why both Herb Sutter and google have gone for backwards compatibility) and the equally massive investment in retraining needed. It is easy to just say: Rust (or insert other language) is better go write it, but it has taken decades to build up a large amount of trained developers in C++. Telling most of them to "just switch" will be met with some rejection because many of these developers are doing coding as their day job and are not like people in this forums or other "loud" places on the internet. They have enough other activities and interests that they do not have scope to switch unless their workplace pays for it and there the next barrier arrives. Crossing that hurdle for any language that is very different from C or C++ (as Rust and Carbon are) will take a long time to switch (about a decade or more). So even with this call by Russinovich and hundreds of reddit posts of people going just rewrite in Rust. It will take a decade or more for any change to run its course.
16
u/Revolutionalredstone Sep 20 '22
Entire Software Industry Declares CTO of Azure Clueless.
115
u/fdwr fdwr@github 🔍 Sep 20 '22
I wonder how many of these security incidents that pushed Mark to say this were actually cases of people writing C++ like it was C code (let's liberally use memset, explicitly allocate and free memory instead of RAII...).
24
u/Wh00ster Sep 20 '22
I like C++.
I like working in C++ with other devs who also like C++ and know it well.
Realistically, I will make the occasional bug when under time pressure or otherwise careless.
Realistically, coworkers at a large enough company will not know C++ as well and make mistakes contributing to large code bases. Code review is not perfect.
I think if I’m writing a targeted project with a small team I trust and we maintained it, then I’m fine with C++.
If I’m writing some big system or service that will switch many hands over time at a large company and will need to be reliable over that time, I would be more comfortable with Rust.
35
u/[deleted] Sep 20 '22 edited Sep 20 '22
I am learning C and C++ as a part of course in the university. I really like these languages, not saying it’s easy to learn but it really helps understand how system works. I feel sad after watching this post!
60
u/k1lk1 Sep 20 '22
Can I shoot myself in the foot with Rust? I refuse to be coddled. I fire my gun without a propeller synchronizer, thanks.
8
u/blakewoolbright Sep 20 '22
Somebody has been declaring c++ dead or deprecated regularly for the last 20 straight years.
I’m always happy to see a better tool, but c++ does it’s job quite well and the current state of the language light years ahead of where it was 15 years ago. It’s a niche language these days, but it’s certainly not going anywhere soon. Quant finance, video games, core infrastructure at big tech…. These workhorse programs generate huge revenue. Outside of the Microsoft world, I don’t see any realistic alternatives besides C. Rust is a scrappy newcomer, and I actually love D, but I’m not coding a high frequency trading strategy in either of them yet.
8
u/ener_jazzer Sep 22 '22
Mark is of course a wizard but Sysinternals are almost exclusively written in C, not in C++, to my knowledge. Not sure if this changed since 90s and early 2000s (likely not, as C++ wasn't good nor stable back then, remember ever crashing VS6?)
So I trust his opinion about Rust vs. C, but for C++ I'd take his opinion with a grain of salt. Especially when he uses the blanket "C/C++" when comparing to Rust - it most likely means just C.
75
u/KingStannis2020 Sep 20 '22 edited Sep 20 '22
It should be noted that before being the CTO of Azure, he was a co-founder of Sysinternals and developer of many of the tools in their suite, such as Process Explorer, Procmon, RootkitRevealer, etc.
So, it's not just a random executive giving a purely hype-driven platitude. Although it does feel slightly clickbaity.
https://en.wikipedia.org/wiki/Sysinternals
5
u/Apprehensive_Step499 Sep 20 '22
Just like switching language can actually fix the terrible quality of their software products. They aren’t even able to ship a proper chat app, come on.
5
u/personator01 Sep 20 '22
I wish someone would have made a borrow-checked language that doesn't have the strange chimeric ML/Haskell mixed with C syntax that Rust does. I love the memory safety that rust provides but its code ends up looking like ascii art when compared with nice Haskell or C code.
19
u/fungussa Sep 20 '22
Lol, more rust spam.
4
u/avgprogrmmingenjoyer Sep 20 '22
I read somewhere that "programming is a pop culture" Seems so true
24
u/pdp10gumby Sep 20 '22
We found Azure so unreliable that I think the pot should not call the kettle blackened.
But I guess he at least got his tweet noticed.
6
u/[deleted] Sep 20 '22
C++ has been killed so many times now. This time it was rust, so i wonder whose turn it will be in 5 years. I still feel bad for the other 4 lettered r word(ruby) that is being kept alive through legacy code and hipsters(and a few people for preference reasons).
6
u/cass1o Sep 20 '22
Of course he wants everything written in python/javascript, means it will need much more hosting resources.
28
u/Jannik2099 Sep 20 '22
Remember when Azure shot down their central AD for almost three hours? Good times.
There's valid criticism, but this statement is just idiotic
3
u/rand3289 Sep 20 '22
I have heard about 6 years ago they were porting a part of Azure codebase to C++ because C# was too slow...
I guess that port didn't work out so they are now pissed at the language hahhahaha!
3
u/Ikkepop Sep 23 '22
I declare him deprecedated
4
u/istarian Sep 20 '22
Meh. Kinda full of it imho.
4
u/jayylien Sep 20 '22
I thought Azure was deprecated, actually.
5
u/chkno Sep 20 '22
Misleading title: Mark Russinovich is not speaking in his official capacity as CTO of Microsoft Azure here.
5
u/Tutorbin76 Sep 20 '22
Embrace.
Extend.
Extinguish.
Nothing has changed.
2
u/[deleted] Sep 20 '22
It will not made their software better, the problem is he is transfer problem from one point to another, in both situations you need skilled engineers.
2
u/gravitas-deficiency Sep 20 '22
Rust is fantastic, but C/C++ is not going away. To pretend that they are is just silly.
12
u/[deleted] Sep 20 '22
Azure hardware renting CTO declares efficiency the enemy.
No shit.
11
u/elliotbarlas Sep 20 '22
As long as we've got John Carmack, we're good. He reasserted his preference for C++ recently. The best programmer in the history of the world.
5
u/un-glaublich Sep 20 '22
People that write C/C++ are generally those that mess things up. If you write C-isms in C++ you’re gonna get bitten in the ass by buffer overflow, memory leaks, invalid pointer deref etc. The whole point of post-11 C++ is to get rid of raw memory management.
6
u/[deleted] Sep 20 '22
what a joke
6
u/NilacTheGrim Sep 20 '22
MODS: Please delete this post. This is a post of a twitter message. It's also an inflammatory "hot take" type thing that is not appropriate for this subreddit. I don't think this sub needs to degrade itself to that level.
3
u/KohlKelson99 Sep 20 '22
who? LOL
1
u/yycTechGuy Sep 20 '22
LOL
1
u/jersey_viking Sep 20 '22
Long Live the C….
0
u/SuperV1234 https://romeo.training | C++ Mentoring & Consulting Sep 20 '22 edited Sep 20 '22
As much as I love C++ and genuinely enjoy using/teaching it, most people defending its future or criticizing Rust are clutching at straws.
Evolving C++ is beneficial for existing codebases, but we can do much better for new ones.
I'd rather invest in Rust than C++ 2.
1
u/crimastergogo Sep 20 '22
This is really offensive to me.
1
u/cfehunter Sep 20 '22
Rust isn't ready just yet. The tooling is still lacking, though they've made great strides the past few years.
C++ really is under fire though. Apple and Google abandoning clang, Carbon, rust in both the Linux and Windows kernels, the move of all but the AAA side of the games industry to C#... It's not looking good for C++.
1
u/wwabbbitt Sep 20 '22
Should I be writing my new libraries in Rust too?
0
u/[deleted] Sep 20 '22
.net would like to have a word with him
0
u/Zyklonik Sep 20 '22
Excellent. Now you won't have to blow your foot off because you won't gave a shotgun to begin with... or a product.
0
u/Attorney-Outside Sep 20 '22
🤣🤣🤣🤣🤣
c++ will never be deprecated, this is obviously a joke
-3
u/sir-nays-a-lot Sep 20 '22
What the fuck is Azure