eyeenteepee wrote:
But wouldn't you get the same high throughput number crunching in C++/C# without the cruddy bits of C?
As long as the class the method is in has no abstract members the speed is the same. If there are abstract members it's slightly slower since it has to go through the virtual function table.
C# targets the common language runtime and is recompiled in an abstract stack machine like java. While in theory this should be no slower, there is no actual implimentation that isn't slower. The license agreement says you promise not to disclose the results of any benchmark test so we can assume the results will be bad.
If you're making a .NET framework program with MSVC++ then C++ is as slow as C# because with the /clr switch the compiler doesn't even generate actual x86 instructions anymore.
I orriginally posted this because i'm trying to make a game and since i'm stuck on a relatively slow computer C++ was the only language i could make it in, everything else was too slow. I tried to make in java but that didn't turn out to be a very good idea. Ok i admit i shouldn't really be using floating point values when i don't need to but oh well.