Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Microsoft's position on Visual FoxPro and .NET
Message
De
14/06/2004 08:59:33
Emmanuel Huybrechts
Technimeca International Corp.
Montréal, Québec, Canada
 
 
À
14/06/2004 08:40:38
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Conférences & événements
Divers
Thread ID:
00908177
Message ID:
00913406
Vues:
77
>Hi Dorin,
>
>>I've readed in a lot of places that .NET managed code can run even faster and more efficient than native code (with benchmarks proving this
>
>This is technically impossible. .NET itself is coded natively and its CLR is a runtime intepretator that runs native code internally. While the CLR is very efficient in running the CLR instructions, it still has to run native code (your CPU does only understand native code). So if for some algorithm you program a .NET piece of code, it might come close to a native solution, but never can beat native code, because the CLR has to translate the .NET instuctions into a native code solution.
>


This is what I thought too, but it seems that compiled .NET can be faster than C++. Why ? because .NET compiles at run-time with optimization for the processor it runs on. With C++, for compatibility reasons, you have to compile for a wide range of processors thus loosing optimizations (unless you have the source code : that's why Linux can be so fast, you can recompile it to target YOUR processor).

This capability will become even more crucial with new 64 bits processors. Each processor having a different set of optimizations. With .NET you are not tied anymore to the lowest common denominator to distribute your applications.


>What I suspect they are trying to say, is that it is possible to create an algorithm in a short time that runs very efficient native code whereas if you try to program the same algorithm in native code you might end up with a less efficient solution, because if you want to make it more efficient you´d have to program a lot more code.
>
>The same you could say about VFP in relation to .NET. See the programming challenge in which calvin hsia has participated: you can use VFP cursor as a way to store and search for words in a simular way as using binary trees in C/C++/.NET. However, implementing a dynamic b-tree storing mechansim requires a lot of programming (with the risk of bugs,etc) while it is natively available in VFP. So using indexed cursor in VFP only requires a few lines, while using such functionality in other languages requires you have at the least to link other libraries, or program it yourself.
>
>IMO, this is the area where VFP excells. Having very powerfull functions and mechnisms to adress common problems very quickly an efficient.
>
>Walter,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform