News for hackers. Stuff that matters.
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by Santosh83 on Friday July 16, 2021 @04:46AM (#27854227)
Does anyone know if Stroustrup has spoken in detail on Rust, the current most likely long-term replacement for C++?
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by pjmlp on Friday July 16, 2021 @05:14AM (#27854400)
Yes,

> He’s aware of other languages, as he reveals in his answer to a later question. (“I think C++ can do anything Rust can do, and I would like it to be much simpler to use.”) And towards the end, he couldn’t resist noting that longevity has its advantages. “It’s highly humorous when some of the Rust people come up and accuse me of having stolen some of their ideas without acknowledging — when some of the things I did I actually did almost 40 years ago.”

Taken from https://thenewstack.io/c-creator-bjarne-stroustrup-weighs-in...

> Pramod: Any newer languages like Rust or Go interests you?

>

> Bjarne: Yeah, I look at new languages roughly all the time. You learn something every time. It is interesting but as I said I’m more of a systems guy than the languages guys. I probably look less at languages than you’d think. I look at what I think is interesting, I try them out but what I really do is to look at what problems do my colleagues and students have and how do I solve them.

Taken from https://mappingthejourney.com/single-post/2017/07/29/intervi...

As for Rust being a long term replacement for C++, just think how C++ dominates the Apple, Google, Microsoft, NVidia, AMD, Playstation, Switch, HPC, HPF, games middleware, LLVM and GCC ecosystems, and how after 40 years there are domains C++ has failed to take away from C despite being a much better and safer language.

Rust and C++ will co-exist for many decades to come.

Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by divs1210 on Friday July 16, 2021 @10:16AM (#27856430)
Wow, I had always believed this about him, and it turns out to be true:

> I probably look less at languages than you’d think. I look at what I think is interesting, I try them out but what I really do is to look at what problems do my colleagues and students have and how do I solve them.

He ignores prior research, and keeps piling disjointed ideas on top of each other in the hopes that some will stick.

Completely opposite to someone like Rich Hickey, who picks up all the years of research and tries to put it all together in a coherent whole.

I tend to appreciate the latter approach a lot more.

Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by hu3 on Friday July 16, 2021 @12:51PM (#27858230)
That is a very uncharitable interpretation of what Stroustrup said. It seems you had an opinion and retrofitted the interpretation of what he wrote to fit your opinion of him.

> Stroustrup: I probably look less at languages than you’d think. I look at what I think is interesting, I try them out but what I really do is to look at what problems do my colleagues and students have and how do I solve them.

> You: He ignores prior research, and keeps piling disjointed ideas on top of each other in the hopes that some will stick.

Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by divs1210 on Saturday July 17, 2021 @03:30AM (#27864126)
I'm sure I'm not the only one with that opinion.

The proof is in the pudding - just have a look at C++.

Linus won't touch it with a 10 foot pole.

It is telling that you did not provide a more charitable interpretation despite feeling so strongly about my comment. I wonder what a more charitable interpretation would be.

Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by pjmlp on Saturday July 17, 2021 @04:22AM (#27864360)
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by divs1210 on Sunday July 18, 2021 @10:52AM (#27873429)
Not sure how this is relevant
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by CRConrad on Tuesday July 27, 2021 @09:25AM (#27972102)
It's a project started by Linus, and written (AIUI, at least in part) in C++.
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by pjmlp on Friday July 16, 2021 @10:25AM (#27856530)
Bjarne has the vote of 1 person at ISO, Rich gets to decide how Clojure looks like, it is not the same.
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by mbrodersen on Saturday July 17, 2021 @10:28PM (#27870381)
Yep that’s why Clojure is dominating the software industry. Not.
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by divs1210 on Sunday July 18, 2021 @11:07AM (#27873548)
You must have very high opinions of PHP and COBOL.

The conversation was about technical merits, not popularity.

Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by mbrodersen on Tuesday July 20, 2021 @02:37AM (#27890714)
The perfect language used for nothing is not worth much. PHP and COBOL have a real impact on the world and therefore deserves credit. Would I program in PHP and COBOL if I had a choice? Nope. But that doesn't change the fact that PHP and COBOL are languages that have proven themselves in the real world.
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by maccard on Friday July 16, 2021 @04:49AM (#27854244)
What makes you think that rust is a long term replacement for c++? I'm neither a rustacean or a dogmatic c++ follower, but it'd pretty clear to me right now that rust isn't going to replace C++.

There is so much inertia in the field with both existing projects and new projects being written on C++, what seems more likely is you end up with a split akin to C vs C++

Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by secondcoming on Friday July 16, 2021 @07:47AM (#27855285)
The success of Rust in industry depends on how it fares in the Linux kernel, IMO. C++ was never even considered for that.

If I was a young dev learning a systems language for the first time, I'd most likely pick rust.

Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by maccard on Friday July 16, 2021 @09:41AM (#27856130)
C++ isn't exclusively a systems level language either though, lets be clear. Assuming rust eats all the existing C code in the various kernels (MacOS, BSD, Linux, Windows), that wouldn't mean it's replaced C++ at all - it would have replaced C.
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by lyxell on Friday July 16, 2021 @07:16AM (#27855080)
C++23 is the current most likely long-term replacement for C++.