Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will .NET take over C/C++ any time? [closed]

Tags:

c++

c

.net

This is a subjective question.

I worked in Visual Basic 6.0 before coming into the .NET space.

One thing I see that there are a lot of things, for which there is a need to deal with the Win32 API. As a Visual Basic 6.0 developer, there were a lot of limitations. .NET fixes some of the old problems however the need to rely on Win32 has not been taken care of.

Will there be anytime that there wouldn't be the need to rely on Win32? (I guess only when .NET has support at OS level.)

I understand that domain of .NET (writing LOB applications/websites) and C/C++ is different so far.

Can .NET or any other infrastructure really make C/C++ less significant? Am I expecting too much?

EDIT: Doesn't it look like, building wrapper over another wrapper (and bring in new set of complexities along-with it)?

like image 219
shahkalpesh Avatar asked Dec 06 '08 04:12

shahkalpesh


People also ask

Is .NET core going away?

Note: The . NET 5.0 SDK versions will continue to be supported in VS 16.11 until December of 2022 when . NET Core 3.1 goes out of support so that . NET Core 3.1 customers can continue to use 16.11 to developer their applications.

Can I use .NET with C?

. NET Framework is an object oriented programming framework meant to be used with languages that it provides bindings for. Since C is not an object oriented language it wouldn't make sense to use it with the framework.

Is .NET being phased out?

NET framework brings a challenge for existing applications still using this technology. Microsoft's support policy has suggested that the framework will not be developed and updated any longer; however, existing applications will still be supported as long as they are installed in a supported version of Windows.

How long will .NET Framework be supported?

. NET Framework 4.5. 2, 4.6, and 4.61 retired on April 26, 2022. These specific releases were previously signed using Secure Hash Algorithm (SHA-1) certificates.


1 Answers

It can't go away any time soon, but in Windows, at least, new projects are going less and less with C/C++. You can even see examples of Microsoft starting to eat their own dog food.

A great example of this is the C# compiler. Currently, it is written in C/C++. The C# team is currently working on re-writing it purely in managed code. A big reason for this has to do with CAS policies in .NET. Invoking unmanaged code requires FullTrust, so compiling code also requires FullTrust. As they move over to managed code, this limitation goes away.

As more and more developers go to .NET as their development platform, we are seeing Microsoft follow suit.

Another great example is Visual Studio 2010. They are re-writing large portions of the IDE using WPF and MEF so that it is easily extensible.

Next, look at the Silverlight runtime. It doesn't rely (specifically) on Win32 at all. It runs on a Mac just as well as it runs on Windows. As Silverlight becomes more capable, we may find many of the .NET calls that currently rely on Win32 no longer do so.

I guess my point is that we ARE starting to see some changes in the Windows world at least.

Of course, as soon as you need to be more cross-platform, C/C++ becomes more appealing again...

like image 122
Brian Genisio Avatar answered Oct 08 '22 19:10

Brian Genisio