News for hackers. Stuff that matters.
Re:Matt Godbolt sold me on Rust by showing me C++ by blub on Wednesday May 07, 2025 @10:31AM (#43916215)
If the practitioners haven’t adopted what you’re offering for 50+ years, that thing can’t be good.

Rust is also struggling with its “too theoretical” concepts by the way. The attempts of the community to gaslight the practitioners that the concepts are in fact easy to learn and straightforward are only enjoying mild success, if I may call it that.

Re:Matt Godbolt sold me on Rust by showing me C++ by db48x on Wednesday May 07, 2025 @10:56AM (#43916562)
I disagree. The advertising and hype pushing people to use C++ is insane. There are hundreds of magazines that exist solely to absorb the advertising budget of Microsoft (and to a lesser extent Intel). Hundreds of conferences every year. You could be writing code in ML at your startup with no complaints and demonstrable success but as soon as your company gets big enough to send your CEO to an industry conference you’ll be switching to C++. The in–flight magazine will extol the benefits of MSVC, speakers like Matt Godbolt will preach Correct by Construction in C++, etc, etc. By the time he gets back he’s been brainwashed into thinking that C++ is the next best thing.
Re:Matt Godbolt sold me on Rust by showing me C++ by fsloth on Wednesday May 07, 2025 @01:48PM (#43918668)
”If the practitioners haven’t adopted what you’re offering for 50+ years, that thing can’t be good.”

I don’t think what features are popular in C++ is good indication of anything. The language is good only due to the insane amounts of investment to the ecosystem, not because of the language features due to design.

For an industrial language inventory of ”nice features to have” F# and C# are mostly my personal gold standard.

”Too theoretical” is IMO not the correct lens to use. I would propose as a better lens a) which patterns you often use b) how to implement them in language design itself.

A case in point is the gang-of-four book. It mostly gives names to things in C++ that are language features in better languages.

Re:Matt Godbolt sold me on Rust by showing me C++ by senderista on Wednesday May 07, 2025 @04:41PM (#43920356)
The GoF book uses Smalltalk for the examples as well as C++, and Smalltalk is about the most expressive imperative language you could ask for.
Re:Matt Godbolt sold me on Rust by showing me C++ by ordu on Wednesday May 07, 2025 @04:36PM (#43920318)
> If the practitioners haven’t adopted what you’re offering for 50+ years, that thing can’t be good.

I wouldn't trust opinion of practitioners. Not after they have chosen javascript and, God forbid, PHP. Practitioners choose not what is inherently good, but what is popular. It is a very practical choice that brings a lot of benefits, so it is just practitioners being practitioners. It can be good or bad, I don't care now, it doesn't matter for my argument. The issue that a good thing can be overlooked by practitioners for decades, because there is nothing popular giving them this thing.

Re:Matt Godbolt sold me on Rust by showing me C++ by j_w on Wednesday May 07, 2025 @05:11PM (#43920601)
But being popular can be very important for practitioners. How else are you going to hire other practitioners?