News for hackers. Stuff that matters.
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by jimbob45 on Friday July 16, 2021 @12:16PM (#27857854)
Why C++ over Rust? I’m genuinely asking, not trying to evangelize.
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by tele_ski on Friday July 16, 2021 @12:43PM (#27858146)
I'm not the parent poster but I think this question might be more interesting in 10 years when rust possibly has a larger industry foothold? I agree and I am actively trying to move my career from C++ towards Rust but its slow and Rust isn't particularly heavily used outside of crypto, which is something I am not interested in, from looking at openings for Rust over the past year. I do think it is great that larger companies like FB/Microsoft are now starting to invest in the language though.

My biggest issue with C++ is that although it does seem to be adding lots of good quality of life changes with the recent standards for developers it has inherit flaws that without breaking backwards compatibility it can never be as safe as Rust. And I think C++ is probably right to not break backwards compatibility, it has too large of a user base that will most likely splinter, it reminds me of the python 2/3 problems.

Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by ncmncm on Saturday July 17, 2021 @12:20AM (#27863522)
If we are being honest, there is no actual competition between C++ and Rust. Rust is a darling of HN, but practically unheard-of outside these four walls. C++ is the workhorse of industry, and it will be for many years to come. The difference between last week's population of professional C++ coders and this week's is larger than the total number of professional Rust coders. That will be true next week, too.

At this point, it appears that Rust could well survive and become a mainstream language, eventually, but that is by no means assured. While that puts it well ahead of any other language created in this millennium, it is very far from ready to raise a family on.

Remember, Ada had far more investment and industry backing than Rust will have for a long time to come, but was wiped out. Fighter planes are coded in C++, not Ada.

Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by FabienC on Tuesday July 20, 2021 @12:52PM (#27896161)
Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by timClicks on Saturday July 17, 2021 @06:34PM (#27869344)
I'm not sure where this perspective comes from. Rust is growing extremely quickly, far outside the HN bubble.

Rust is used by, and financially supported by, many of the learning companies in the technology industry: Microsoft, Google, Facebook, AWS, Dropbox, and others. It's being piloted for use in the Linux kernel and is already accepted into Android.

Unlike Ada, its development was never bootstrapped by public funds and so all of its growth is due to its practical benefits.

I don't know why fighter planes are the standard to reach, but Rust is even being used in aerospace: both Rocketlab and SpaceX have made public statements supporting Rust or are hiring people with Rust expertise.

Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by ncmncm on Saturday July 17, 2021 @11:19PM (#27870552)
Rust usage is growing pretty quickly, a lot like C++ at its age. "Extremely" is a meaningless term in this context.

"Used by <Big Company>" means much, much less than most people who mention it believe. The bigger the company, the more likely it is that they use literally anything at all you can think of, and the correspondingly less it means that they do. They might even be using it in a certain project deemed strategic. But we all know how many of even "strategic" projects at big companies end up canceled, even when they seemed to be a success. You can be certain that they are not using it for anything central to how the company makes its money.

It is more interesting when a $company uses $newtech where it will only have an income if the project succeeds. But you probably never heard of $company, otherwise, so have no way to evaluate how important it is.

SpaceX has said publicly it uses C++ for mission-critical work. Like other $billions companies, they do a lot of things. Saying they do Rust, too, makes them seem edgy in circles where people are likely to hear about it, regardless of how much they actually depend on it. So it is really hard to tell.

Re:Thriving in a Crowded and Changing World: C++ 2006–2020 [... by timClicks on Sunday July 18, 2021 @03:13AM (#27871262)
Absolutely valid points. I'm definitely inside the filter bubble wrt Rust. It will be fascinating to see where things will be by 2030.