I assume: What do you like C ++ for performance reasons. What do you like about .NET for performance reasons.
You can try, but in the end, you will notice that C ++ will not provide language constructs in managed languages ββ(functions like delegates, native interfaces, variance, lambda expressions, LINQ, etc.), you can imitate , but it will not look clean, as you see in C # (you will need an ugly preprocessor, and you will get critical code that will not help code refactoring and other mantainance tasks).
You can check 2 alternatives:
An alternative to using D (new language) . D is inspired by C ++ performance and Java or .NET performance. D compiler for native code, not a set of virtual machine commands. But you need to remove many editor tools, such as Visual Studio Intellisense, and there is already a base library of the standard class.
Or you can use AOT (ahead of time compilation) or NGEN (native image generation) . Compile .NET bytecode into native code. But he has some limitations.
In both cases, you get a modern language designed for performance and better performance than the original .NET platform without the cost of implementing your own C ++ BCL.
Jairo Andres Velasco Romero
source share