G
Giovanni Bassi
Hello group,
I was discussing with a friend, a C++ programmer, and he told me that C++
code has a better performance than managed code (from either C#, VB.net,
managed code from .net framework).
I understand that managed code is running on top of other code and that
means we have more layers to get down to the operating system.
But isn't that also true for MFC applications, for example? Aren't they also
running on the top of previously made code?
In the end isn't it the same? Managed runs on top of the .net framework, and
unmanaged runs, for example, on top of MFC.
After all, is C++ faster? If not, why would I use it at all? If it is, how
much faster and is there anything that can be done (or being done) to
increase the perfomance of managed code up to C++ speed?
I also read that MFC is a more developed framework than the .net currently
is, meaning it offers more to the user of its classes. The example used was
the description of menu items appearing in the status bar. This
functionality is intrisinsic to MFC and is something we don't have yet ready
with .net framework (even though we can develop our own framework and do the
job ourselves). Is this so, and if it is does anybody know if Microsoft is
planning to work on the .net framework to increase the functionality? Also,
wouldn't that risk portability?
I also noticed that the classes from MFC have their code available. Why
isn't it so for .net framework?
Talking about portability, I haven't yet seen any .net framework for any
other plataforms. I heard about one being developed for Linux (maybe from
Coreal, I am not sure), but so far, I heard nothing I could trust. Have you
guys?
Thank you all that answer for helping me with those doubts,
Giovanni Bassi
I was discussing with a friend, a C++ programmer, and he told me that C++
code has a better performance than managed code (from either C#, VB.net,
managed code from .net framework).
I understand that managed code is running on top of other code and that
means we have more layers to get down to the operating system.
But isn't that also true for MFC applications, for example? Aren't they also
running on the top of previously made code?
In the end isn't it the same? Managed runs on top of the .net framework, and
unmanaged runs, for example, on top of MFC.
After all, is C++ faster? If not, why would I use it at all? If it is, how
much faster and is there anything that can be done (or being done) to
increase the perfomance of managed code up to C++ speed?
I also read that MFC is a more developed framework than the .net currently
is, meaning it offers more to the user of its classes. The example used was
the description of menu items appearing in the status bar. This
functionality is intrisinsic to MFC and is something we don't have yet ready
with .net framework (even though we can develop our own framework and do the
job ourselves). Is this so, and if it is does anybody know if Microsoft is
planning to work on the .net framework to increase the functionality? Also,
wouldn't that risk portability?
I also noticed that the classes from MFC have their code available. Why
isn't it so for .net framework?
Talking about portability, I haven't yet seen any .net framework for any
other plataforms. I heard about one being developed for Linux (maybe from
Coreal, I am not sure), but so far, I heard nothing I could trust. Have you
guys?
Thank you all that answer for helping me with those doubts,
Giovanni Bassi