Quote
joval - 2020-03-26 12:24 AM
Yes...it even runs in Win 10! So, just what is this .Net thing???
The reason why .net apps run everywhere is because a .net application is not compiled for any specific processor. Instead, it is compiled for a "virtual machine". The runtime is like a JIT compiler that translates the virtual machine code in real-time to the host machine. So, if you have the runtime installed on an ARM cpu, when you launch a .net application, the virtual machine code will be translated to ARM code and then the app runs. Same thing on a Windows 10 x86 PC, the runtime
(that nowadays comes built-in on every Windows
) translates the code to x86. Think of this like an emulator - you can run the same NES games on your PC, on your phone, on your tablet, etc using a NES emulator. However, since the .net targets only Windows apps, the JIT compiler uses some tricks to make it a lot faster than regular emulators, e.g.: some Windows calls are executed natively
(full speed
), use of cache memory to "remember" code previously compiled, etc..
All in all, .net apps are nice because they can run anywhere, are
very easy to program
(C# is kinda like Python, where everything comes ready and you just use it!
), but can't run as fast as a native application.