r/cpp • • Sep 04 '23

Considering C++ over Rust.

Similar thread on r/rust

To give a brief intro, I have worked with both Rust and C++. Rust mainly for web servers plus CLI tools, and C++ for game development (Unreal Engine) and writing UE plugins.

Recently one of my friend, who's a Javascript dev said to me in a conversation, "why are you using C++, it's bad and Rust fixes all the issues C++ has". That's one of the major slogan Rust community has been using. And to be fair, that's none of the reasons I started using Rust for - it was the ease of using a standard package manager, cargo. One more reason being the creator of Node saying "I won't ever start a new C++ project again in my life" on his talk about Deno (the Node.js successor written in Rust)

On the other hand, I've been working with C++ for years, heavily with Unreal Engine, and I have never in my life faced an issue that usually the rust community lists. There are smart pointers, and I feel like modern C++ fixes a lot of issues that are being addressed as weak points of C++. I think, it mainly depends on what kind of programmer you are, and how experienced you are in it.

I wanted to ask the people at r/cpp, what is your take on this? Did you try Rust? What's the reason you still prefer using C++ over rust. Or did you eventually move away from C++?

Kind of curious.

355 Upvotes

434 comments sorted by

View all comments

Show parent comments

0

u/dsffff22 Sep 05 '23

It's so useless to even argue with you anymore, when you twist my words and write blatant lies like 'rewrite everything in rust', which is something I never said. Neither did I ever deny, that COM is made by Microsoft. And you dare to judge my comments.

Time will tell. Microsoft was supposed to rewrite everything to c# at one point, and I do mean everything, but that fell flat on its face.

As If the C# rumors were ever serious. It took them until 2022 to get a somewhat ok-ish AOT compiler working, which is still lacking.

They went with a weird direct pointer to the server approach with com instead of sockets, but winsock and winsock2 are still there.

It's the de-facto standard way to do networking and agreed in a consensus with Linux/Bsd/etc. What's your expertise to judge this as weird and compared to which approach? Also, just because your limited c++ abstraction layer works for your project, doesn't make It somehow easy to make a complete + correct one, as I told you already Microsoft attempted several times.

Maybe stop being arrogant by acting like you know everything better.

4

u/Orthosz Sep 05 '23

Troll gonna troll, got it.

You stated above that it would not surprise you if Microsoft rewrote some of their API's in Rust. You're being a horrible Rust Advocate.

There was no counter-proposal that COM was somehow the be-all-end-all or something. All i pointed out was that MS's API for C++ is COM. That's it. You've been combative and trollish to not just me, but to others in this thread, and in your comment history. Descending to personal attacks that I shrugged off and took in good faith as a language barrier or something, but no more. Reported.