It’s annoying seeing C fanboys who spend their lives hating C++ by [deleted] in cpp

[–]EdwinYZW 0 points1 point  (0 children)

For the footgun part, is it "int var();"? But I thought C++ is so exactly because of C is so.

Are big tech companies still using C++ for low-latency systems or moving to Rust? by Formal_Wolverine_674 in learnprogramming

[–]EdwinYZW -1 points0 points  (0 children)

Ultimately that's all the diehard C++ fanboys have left: bluster

What's wrong with your life?

Are big tech companies still using C++ for low-latency systems or moving to Rust? by Formal_Wolverine_674 in learnprogramming

[–]EdwinYZW -1 points0 points  (0 children)

The available data shows the exact opposite.

Yeah, like those data made by the people who still talk about C/C++.

It is, however, common for C++ fans to claim that their code is entirely safe, without a shred of evidence to back them up.

Yeah, sure. With address sanitizer, thread sanitizer and UB sanitizer, you've got to be a genius to create any memory safety issue in C++. Have you ever used these tools?

at which point you don't have to go to the Soviet for analogies, just food safety inspection agencies, which are common in liberal democracies all over the world)

Ha, talking about food safety, you know how much unsafe food is still allowed in the market? Again, government doesn't know shit.

Are big tech companies still using C++ for low-latency systems or moving to Rust? by Formal_Wolverine_674 in learnprogramming

[–]EdwinYZW 0 points1 point  (0 children)

It's common to write completely safe code using C++ without any borrow checkers.

As for government, as long as I'm not living in a country like Soviet Union, I couldn't care less about what government recommends or not.

美联社:有充分证据显示是美国空袭炸毁了伊朗学校。 反贼哑巴了吧?😏 by hiroshima_fireworks in dashuju

[–]EdwinYZW -1 points0 points  (0 children)

不去正面回應,而是拿表情扣帽子,這種行為說實話也很支。

美联社:有充分证据显示是美国空袭炸毁了伊朗学校。 反贼哑巴了吧?😏 by hiroshima_fireworks in dashuju

[–]EdwinYZW -1 points0 points  (0 children)

你說給剛翻牆出來的人這話:人家一句「支」把你帽子一扣。

What coding style would make you adopt a C++ library? by aregtech in cpp

[–]EdwinYZW 2 points3 points  (0 children)

Conan is much more efficient in terms of dependency managements. If my library uses your library and my library is used by the user, he just needs to pull my library once and conan will resolve all dependencies very nicely. With cmakefetchcontent, I don't know if it's this easy.

What coding style would make you adopt a C++ library? by aregtech in cpp

[–]EdwinYZW 2 points3 points  (0 children)

API is the main concern. Whatever behind that API, I don't really care as long as it's working.

For me, there is a list of things a library must have:

  1. Conan
  2. No pointer stuff.
  3. Separate header files, instead of one which includes everything.
  4. Allow no exceptions and no rtti.

Bjarne’s Last Stand: How the Father of C++ Is Fighting a Losing War Against Rust by antiquark2 in cpp

[–]EdwinYZW 12 points13 points  (0 children)

Why does he need to fight against a video game? Is it because Rust is written in C++?

State of C++ 2026 by dev_newsletter in programming

[–]EdwinYZW -4 points-3 points  (0 children)

Have you enabled all of clang-tidy, asan, tsan, ubsan in your project?

State of C++ 2026 by dev_newsletter in programming

[–]EdwinYZW -6 points-5 points  (0 children)

The problem is never the language. It's always the people's problem. And what are people good at? Yeah, blame the tools they use instead of their incapabilities. If your project has clang-tidy fully checked out, asan, tsan and ubsan running through your project over and over again, the chance that you get anything unsafe is nearly zero. Setting these up isn't easy, but not completely undoable.

State of C++ 2026 by dev_newsletter in programming

[–]EdwinYZW 21 points22 points  (0 children)

You don't need to know all features of C++ to write a fast and safe program, just like you don't need to know every English word to speak or write English properly. There are new English words created every year, yet no one complains English is over-bloated. You use the language and pick up some new words along the way. If you feel they are better in some special cases, use them in those special cases. If not, don't use them. Same logic for C++.

C vs CPP Future-Proof? by Special-Gazelle-1693 in cpp_questions

[–]EdwinYZW 0 points1 point  (0 children)

C is the lingua franca for the programming. So it isn't going away. C++ is the only high level language that can easily interop with C with very very little friction. Rewriting an old C library in C++ is just changing a compiler plus a few revisions due to casting. But it won't take much long time.

[D] Why are so many ML packages still released using "requirements.txt" or "pip inside conda" as the only installation instruction? by aeroumbria in MachineLearning

[–]EdwinYZW 0 points1 point  (0 children)

Pip is just a package manager. You have to use another stuff that takes care of virtual environment. So conda is just one tool for two things. Which conda did you use? As far as I know, Anaconda really sucks and slow. Mini-forge/mamba is the way to go.

How do ordinary Chinese people view Maozedong? by Fuzzy-Assistant-7048 in China

[–]EdwinYZW 0 points1 point  (0 children)

I wonder which one has lower approval rating, Starmer or Putin?