| Created By |
Herb Sutter |
Google |
Herb Sutter |
| Goal |
Explore possible future evolution of ISO C++ |
Create a successor language to C++ |
Explore new C++ syntax |
| Open Source |
Yes (MIT license) |
Yes (Apache 2.0 license) |
No |
| Implementation Status |
Compiler works for basic C++ features |
Early prototype interpreter and compiler |
Design experiment |
| Syntax |
New "Cpp2" syntax, context free and order independent |
Looks similar to a simplified and streamlined C++ |
Entirely new syntax for C++ |
| Safety |
Some checks like lifetime analysis and bounds safety |
Goal of memory safety, unsafe code can opt-out |
TBD |
| Reliability |
No explicit focus |
Aims to eliminate common C++ bugs |
TBD |
| Performance |
Compiles to standard C++ with no overhead |
Aims to match C++ performance |
N/A |
| Interoperability |
Seamless linkage with C++ via import |
Bidirectional ABI-stable C++ interop |
None, would require porting code |
| Portability |
Inherits C++ portability |
Focused on common OS/CPUs, not all exotic platforms |
N/A |
| Memory Model |
Same as C++ |
Same as C++ |
TBD |
| Standard Library |
Uses C++ standard library |
New core libraries, can use C++ libraries |
TBD |
| Concurrency |
No special support |
Inherits C++ threads, atomics |
TBD |
| Metaprogramming |
Metaclasses for reflection/generation |
Opt-in templates for perf, generics otherwise |
TBD |
| Toolability |
Major goal, simplified grammar |
Major goal, sound type system enables |
TBD |
| Debugging |
TBD |
Goal of better defaults than C++ |
TBD |
| Adoption Strategy |
Discuss improvements with C++ committee |
Enable gradual migration from C++ |
None, just a thought experiment |
| Governance |
Led by Herb Sutter |
Google-led open development |
Led by Herb Sutter |
| Community |
Open to contributions |
Open to contributions |
N/A |