Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I invested heavily in C++.

Now I feel it's either making-c++-memory-safe-while-breaking-back-compatibility or die slowly. I was told by c++ experts there is no middle ground.

I actually started to shift focus onward Rust. Rust also provides a more consistent build tooling albeit build time is still very slow. Plus Rust does cross-platform decently. For C++, I need create my CMake manually each time, and cross build also involves manual creation each time.



Todays Rust is also X times more complicated than modern C++.

And not that long ago most people would agree that C++ is the language that is hardest to master.


As someone who (properly) learned modern C++ only some years ago and is just learning Rust, I agree - one needs a lot of learning in Rust before one can get kick-started. C++ is actually far easier to get out of the ground coding.

Modern C++ is actually quite nice to code in. Its just a real pain to get started - project setup, documentation, cicd setup, ease of dependency/pkg management, cross-compilation, unit-tests, etc. Developer ergonomics are poor and not standardised. (There are also some critical features that are missing - like reflection that make things a pain)

Rust the language is far harder to learn (even if it is safer), but the tooling is mouth-wateringly superb.

In today's world, a language can live and die on developer ergonomics alone. Nobody really has the patience to do all the cruft-work that they could tolerate before - there is a lot of choice in the programming landscape.


conan or vcpkg might be able to help, I have used neither though, or a cmake boilerplate might also help, but no such project existed to be used by many, so yeah, the tooling at c++ is still in stone age, too bad.

editted: just checked out conan briefly, it's pretty close to cargo and go toolings, going to use it more


I don't know that much about rust yet, I just assume that if I know c++ fairly well, it might just be 20% harder to learn rust and get good about it, time will tell.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: