News for hackers. Stuff that matters.
Re:Ask HN: Learn C++11 or Rust in 2022? by gtirloni on Monday May 02, 2022 @07:16AM (#31233677)
> With C++ realistically memory management is so hard

Honest question as I'm not a C++ developer: Even with all the new C++17/20 stuff?

Re:Ask HN: Learn C++11 or Rust in 2022? by ncmncm on Monday May 02, 2022 @04:05PM (#31240182)
Problems with memory management are a fading memory when coding modern C++.

All the things Rust advocates insist cannot be done safely in C++ are now trivial. Use-after-free, leaks, buffer overruns, what-have-you, no longer need any attention to avoid if you stick to modern C++. Some people insist on coding as if it were C, and bring along all of C's failings. Leave them behind.

Re:Ask HN: Learn C++11 or Rust in 2022? by pjmlp on Tuesday May 03, 2022 @02:08AM (#31245218)
Unfortunely, only when working solo, or with a team that really embraces security.

Those people that insist on coding as if it were C are still a very big group across the industry.

Re:Ask HN: Learn C++11 or Rust in 2022? by xiphias2 on Monday May 02, 2022 @07:22AM (#31233728)
The problem is that it's too late to add linear typing to C++ at this point and get rid of all other types. So I would say yes.