3 ms·
C++ is the obvious benchmark language because it's widespread and has the same benefits (manual memory management, native, high control). High reliability, sta
by carlmr 7y ago
C++ is the obvious benchmark language because it's widespread and has the same benefits (manual memory management, native, high control).
High reliability, static checked any language requires you to write code a certain way. C++ is just the most prominent and meaningful example here.
ADA would be another good comparison, but I haven't worked with it on large projects so I can't say much about compile speed. It has a lot of similarities in being a safer C++. It felt similarly restrictive to Rust though.
I think the fact of the matter is that it you want safety you need some kind of restrictions and your compiler needs to do some extra work (ADA and Rust) or you need to look at the whole toolchain that o of necessary to achieve safety (in C++ this is very long if you run your tests with Static analyzers, ASan and Msan, too which remove some of the bugs Rust tells you about).