Re: what's the bug here ?



On 29/01/2011 in message <176dnRCGroWfktnQnZ2dnUVZ_sCdnZ2d@xxxxxxxxxxxxxxxxxxxxxxx> Peter Duniho wrote:

On 1/29/11 8:49 PM, Jeff Gaines wrote:
[...]
NET is a wrapper round the underlying API so adds another layer.
C/C++ can be compiled to native code, C# is interpreted on the fly.

Not true at all. .NET is a wrapper for some things, but certainly not for loops and basic arithmetic (as in the given example). C# is also not an interpreted language. It is compiled at run-time to the native machine code, and executed natively. There is a tiny delay during the JIT-compilation process, but once the code is executing, it's native just like C/C++ and other compiled languages.

Pete

So the principle is correct even if the terminology isn't.

I'm not sure about a 'tiny' delay. When running any NET application on a freshly booted machine there is a considerable, certainly noticeable, delay. After that (presumably some NET components loading) it's not so bad but there's nothing to beat a fully compiled app.

--
Jeff Gaines Wiltshire UK
It may be that your sole purpose in life is to serve as a warning to others.
.