3 ms·
There are similar efforts to revamp C++ or replace it with another language, too. Rust is a famous example; there's also Carbon[1] and cppfront[2]. Even so, t
by delta_p_delta_x 3y ago
There are similar efforts to revamp C++ or replace it with another language, too.
Rust is a famous example; there's also Carbon[1] and cppfront[2].
Even so, this may be a controversial opinion, but with C++20, it has become fairly straightforward to program relatively safely and avoid some old footguns.
[1]: https://github.com/carbon-language/carbon-lang https://github.com/carbon-language/carbon-lang
[2]: https://github.com/hsutter/cppfront https://github.com/hsutter/cppfront
- FpUser 3y agoI use "modern C++" (a subset of it that suits my goals) and do not really have any real problems during last 3 years. My backend C++ application servers are running along just fine.
- fwsgonzo 3y agoI have the same experience. All the tools at my disposal including mutrace for measuring contention, I just feel like C++ is a solid language. Sure, I wish there was more compile-time stuff, like the ability to force a function argument to be compile-time, but in my experience, modern compilers often have surprisingly deep reach, and you can expect much of your code to just be compiled away if written a certain way. I recently wrote a server-client framework from scratch and used protobuf for messaging. The server is heavily multi-threaded with a lot of complex asynchronous rules, and there are no issues. If anything, I would hope for more concurrency primitives, as the C++ standard library is very high quality, and I would like concurrent hash maps and such.