Quote:
Originally Posted by MysteryX
I'm still exploring what can be done with C#, because I'm a C# programmer and have no interest in learning assembly.
|
no assembly required, include
this header file in your project and it does all the dirty work for you automatically, also extremely easy to use
Code:
//C++ 14
auto CPU = CPUFeatures{};
//yep, like the "var" feature in C#, you don't need to manually specify the variable types anymore in modern C++
//it's actually ok to just program in modern C++ like how you program in Python
//you don't have to care about types (auto and decltype), manual garbage collection (replaced by smart pointers) and tons of ugly shit inherited from C
if (CPU.sse2)
blah
else if (CPU.avx)
blah
else if (CPU.blah)
blah
else
blah
Quote:
Originally Posted by MysteryX
This is not about whether C# or C++ is best. This discussion is simply about what can be done with C# and Avisynth.
|
I'm not saying things like if one is better than another
simply pointing out that some people have been misunderstanding C++ like how they assumed runtime hardware detection would be a problem in C++
C++17 is coming soon and they still have C++98 or even C in their mind and that's why they still have so much "fear" over C++