News for hackers. Stuff that matters.
Re:Ask HN: Is Learning Rust a Must? by sumanthvepa on Saturday July 17, 2021 @01:21PM (#27867278)
One thing I think I missed, was how pleasant it it is to program in modern C++. There are no pointers, for the most part completely automatic memory management (with the RAAI) idiom. Build systems are still a pain. I recently built a physics simulator for an n-body type interaction problem in C++. Not a a large program (about 40K lines of code) but the experience was extremely pleasant. For build I used a combination of make for Linux and macOS and nmake and VisualStudio projects. Debuggers on Linux are still a bit bad. GDB with Emacs is fine but, is somewhat primitive compared to VisualStudio and even Xcode. Other than that it was a joy to actually write in C++.

The primary reason, I think was because there was no legacy code I had to deal with.

Re:Ask HN: Is Learning Rust a Must? by heavyset_go on Saturday July 17, 2021 @09:18PM (#27870086)
Do you know of any good resources for picking up modern C++?
Re:Ask HN: Is Learning Rust a Must? by jguzmanjr on Monday July 19, 2021 @12:59AM (#27879419)
I’ve used this book in the past to learn modern C++: https://www.amazon.com/dp/1484233654/ref=cm_sw_r_cp_awdb_imm...

For greenfield projects I’d opt for Rust over C++.