HACKER Q&A
📣 andrewstuart

Is there a “simple C++” language trimmed down to something “modern”?


C++ seems to have a ton of stuff that you can probably ignore.

Over the years it seems to have accumulated cruft and never cleaned out the closet.

I wondered if maybe it was practical to create a new language by removing stuff from C++.

Does such a thing exist?


  👤 jlpcsl Accepted Answer ✓
Something like C++ Core Guidelines can help with some focus: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines

👤 soulbadguy
There have been a lot of recent development around a "simpler c++". I think google carbon ( https://github.com/carbon-language/carbon-lang) and hurb sutter (https://github.com/hsutter/cppfront) are probably the most advanced "proposal". Both languages are highly experimental and really far away from being production ready if ever.

If you want/need something today, Dlang is pretty good.

There are also a lot of other languages such Rust/Zig etc... which "somewhat" fit in the same niche as C++ but tend to have very different programming philosophy.

Edit : Can't believe i left out Dlang, the OG better/simpler c++


👤 thesuperbigfrog
>> I wondered if maybe it was practical to create a new language by removing stuff from C++.

What would be removed and why?

The issue is that whatever is left would not be C++ and it would be difficult to get everyone to agree about what should be removed.

Hyrum's law (https://www.hyrumslaw.com/) also applies, so you can't remove anything without breaking things for someone.

If you want a simpler, yet quite capable modern language, I would recommend Go (https://go.dev/). It might not replace C++ depending on your use case (for example: embedded programming or writing operating system drivers), but it is a good general purpose language that is easy to learn and easy to use.


👤 WhereIsTheTruth

👤 bombcar
What do you mean by "like C++"? Something like C#? Rust? A modern object-oriented language?