News for hackers. Stuff that matters.

.NET Framework Version Comparision

http://jinaldesai.net/net-framework-version-comparision-table/

It is frequent usage to see all the .NET Version with it’s features on one page. While surfing on net it is difficult to find or even not a single site provides all version on one plate with features. Following is a try to put all the .NET Framework versions together with other release and features details.
( 49 comments | 56 points | on HN )
Re:.NET Framework Version Comparision by fosk on Tuesday May 01, 2012 @03:44AM (#3913397)
C# as a language had numerous and interesting features implemented in the last years. I always wished that Java was that fast in making improvements, instead of spending years for every decision.
Re:.NET Framework Version Comparision by Gjallarson on Tuesday May 01, 2012 @05:44AM (#3913608)
Moreover due to the fact that .NET is coupled with Windows, it seems to be less of a problem to be stuck with a very outdated version of the framework. In Java I often had to write for version 4, whereas 6 was already released.
Re:.NET Framework Version Comparision by gouranga on Tuesday May 01, 2012 @05:46AM (#3913615)
Agreed, apart from nullable types which I think is a misfeature (having dealt with the inevitable null reference/null value tristate hell left by some developers).
Re:.NET Framework Version Comparision by bunderbunder on Tuesday May 01, 2012 @11:44AM (#3914880)
.NET won't allow you to create a Nullable<T> where T is itself a nullable type. (And Nullable<T> is not itself nullable.) I'm not sure about all languages, but in C# code like that won't even compile.

I agree, allowing a nullable wrapper around a (already inherently nullable) reference type would be a horrible misfeature. What language was that?

Re:.NET Framework Version Comparision by tomjen3 on Tuesday May 01, 2012 @11:10AM (#3914672)
I just wish that rather than adding nullable primitives they added non-nullable objects. The type system used by googles javascript compiler has support for those and working with it is fantastic.
Re:.NET Framework Version Comparision by gouranga on Tuesday May 01, 2012 @04:18PM (#3916208)
That would be fantastic - great idea!

No More:

   Check.IsNotNull(objRef, "stop being a muppet");
Re:.NET Framework Version Comparision by TazeTSchnitzel on Tuesday May 01, 2012 @07:18AM (#3913787)
I thought .NET types were optionally nullable? I don't think they are by default.
Re:.NET Framework Version Comparision by NetMonkey on Tuesday May 01, 2012 @07:24AM (#3913815)
Basic types are optionally nullable. int? is nullable, int is not.

It is a fantastic tool in many cases where a null is much clearer than something like -1 to denote a missing value.

However, I can see the issue with some developers using nullable types for everything. But any sufficiently powerful/flexible tool is always going to be misused by some.

Re:.NET Framework Version Comparision by DrJokepu on Tuesday May 01, 2012 @08:01AM (#3913902)
I had the misfortune in the past to maintain C# code that kept everything as strings; whether it was an integer, a floating-point number, a guid, a date or a boolean. Lousy developers can abuse anything, in itself in my opinion this is not a reason to not have it included.

(I have a the same opinion about goto and operator overloading; clearly the folks at Microsoft agree with me here.)

Re:.NET Framework Version Comparision by gouranga on Tuesday May 01, 2012 @07:21AM (#3913805)
They are optionally nullable. Unfortunately, people seem to think that making use of them everywhere is cool :(
Re:.NET Framework Version Comparision by soc88 on Tuesday May 01, 2012 @08:58AM (#3914068)
Scala might be an option for you. It is not as "stable" as Java, but more like C# and it actually has a real "deprecation cycle", e. g. stuff gets removed after two versions, both in the language and the library. Pace of development is actually really impressive. If you are interested, I wrote down some nodes about the keynote at ScalaDays here: http://hackerne.ws/item?id=3912885
Re:.NET Framework Version Comparision by bunderbunder on Tuesday May 01, 2012 @12:02PM (#3914980)
I think that the "deprecation cycle" is ultimately hurtful for Scala. Breaking changes in a programming language are immensely difficult and expensive for enterprises to deal with, and breaking changes in core libraries are no picnic either. I'd be extremely hesitant to advise my employer to adopt a language whose maintainers have a cavalier attitude about such things, because it does really bad things to our ability to predict costs.
Re:.NET Framework Version Comparision by soc88 on Tuesday May 01, 2012 @01:12PM (#3915369)
It is certainly not worse than anywhere else (see for example what happened with Windows RT/Metro ... that was certainly magnitudes worse and Microsoft still decided to do it (or the breaking changes in C# 5)).

The only exception is Java, where everything is basically frozen after release and cannot ever be changed anymore.

Most of the time, targeting a newer version in Scala is just a recompilation away, like on .NET. So if you are good with .NET, you should be good with Scala, too.

Re:.NET Framework Version Comparision by ses4j on Tuesday May 01, 2012 @09:24AM (#3914181)
I'm so desperate for C# .NET stuff to show up on HN that I'm even willing to vote up this uninteresting, unreadably-formatted blog post.
Re:.NET Framework Version Comparision by saryant on Tuesday May 01, 2012 @11:12AM (#3914683)
While I generally use Scala for my personal projects I'm a .NET/C# dev by trade. There are definitely features about the .NET ecosystem that I wish I had on other platforms and that they worked as well as they do on .NET. I'm thinking about features like LINQ (sorry, Squeryl is nowhere near that yet) and the top-to-bottom integration of VS.

I'd like to see more attention paid to it as well.

Re:.NET Framework Version Comparision by tomjen3 on Tuesday May 01, 2012 @11:11AM (#3914677)
C# needs to be decoupled from MS. It is too cool a language to be tied up with windows.
Re:.NET Framework Version Comparision by bunderbunder on Tuesday May 01, 2012 @08:22PM (#3916990)
As a certain lawsuit is illustrating, C#/.NET is much less coupled to MS than Java is to Oracle. Oracle is suing Google for creating an implementation of Java without their blessing, a clear indication that they believe they own and control the platform. By contrast, Microsoft has issued a legally-binding pledge not to sue people for creating their own implementations, and published the platform's spec as an open standard.

Mono admittedly lags a bit behind Microsoft's implementation of the platform, but that's mostly a question of resources. If Mono had been embraced by the open source community the way Java has been (as it should - see previous paragraph), then that wouldn't quite be the case.

Though not by much, and not in all respects. That crew is doing some really great stuff.

Re:.NET Framework Version Comparision by jinushaun on Wednesday May 02, 2012 @03:54PM (#3920808)
I've been saying this for a while now that I'm starting to sound like a doomsday-sign-carrying lunatic. C# is really enjoyable to code in, but it's a shame that it's stuck on Windows.
Re:.NET Framework Version Comparision by phoboslab on Tuesday May 01, 2012 @07:21AM (#3913804)
Be aware that there also exists a "NET Compact Framework" used on the XBox, Silverlight and Mobile devices. This caught me off guard when I tried to get JavaScript running on the XBox[1], since it has a different, stripped down feature set than the real NET Framework.

[1] http://www.phoboslab.org/log/2012/04/javascript-on-the-xbox-...

Re:.NET Framework Version Comparision by jaredsohn on Tuesday May 01, 2012 @02:48PM (#3915844)
The compact framework can also be used on Windows desktops and can make sense if you want to bundle dotnet with your app (because you want to improve the installation experience) while minimizing download size and you don't need features from the real dotnet framework.
Re:.NET Framework Version Comparision by Djehngo on Tuesday May 01, 2012 @04:12AM (#3913444)
For what it's worth 4.0 also added co-variant and contra-variant generics which are surprisingly useful.
Re:.NET Framework Version Comparision by profquail on Tuesday May 01, 2012 @08:14AM (#3913946)
Co- and contra-variant generics have been available since .NET 2.0 -- they just weren't exposed by any "standard" .NET language until C# 4 (which coincided with .NET 4.0).
Re:.NET Framework Version Comparision by gouranga on Tuesday May 01, 2012 @05:45AM (#3913613)
I've written about 400kloc in C# 4.0 and I haven't had a need yet :(
Re:.NET Framework Version Comparision by Yrlec on Tuesday May 01, 2012 @05:56AM (#3913630)
How is that ironic?
Re:.NET Framework Version Comparision by gouranga on Tuesday May 01, 2012 @05:57AM (#3913636)
Corrected - thank you :)
Re:.NET Framework Version Comparision by jinushaun on Tuesday May 01, 2012 @06:31AM (#3913688)
Missing .NET 4.5, which introduces C# 5 with async support. C# is a great language. Shame it's stuck on Windows and the "enterprisey" .NET framework.
Re:.NET Framework Version Comparision by yatendra on Tuesday May 01, 2012 @10:58AM (#3914606)
I am not sure what is enterprisey about .Net. I am working on Live Post http://livepost.in using ASP.Net MVC/jQuery/jQuery Mobile/MySQL/MongoDB/Dapper(ORM). Just replace ASP.Net MVC/Dapper with django and it will become a common stack used by alot of startups these days. Also from cost point of view the difference is very minimal - I am running it on a 1GB VPS which at my host costs just 2.95$ extra per month compared to a linux VPS with similar specs. I use Visual Web Developer 2010 express edition IDE for development which is pretty good in terms of features and is free. So its just a matter of perception nothing else.
Re:.NET Framework Version Comparision by hamidpalo on Tuesday May 01, 2012 @07:33AM (#3913832)
What is "enterprisey" about .NET?

Mono is a real alternative, many businesses run it production, including the likes of Fog Creek.

Re:.NET Framework Version Comparision by gecko on Tuesday May 01, 2012 @10:50AM (#3914570)
Just so we're all on the same page here, Fog Creek is not currently using Mono in any part of Kiln or FogBugz On Demand. We use Mono to allow FogBugz to run on Unix systems for on-site installation, and we're looking at using Mono in Kiln for similar reasons. At the moment, though, Kiln and FogBugz On Demand are 100% WISC deployments.
Re:.NET Framework Version Comparision by hamidpalo on Tuesday May 01, 2012 @11:05AM (#3914644)
Sorry should have clarified that it's not run in-house but rather supported for full-on production deployments, from what I have heard.
Re:.NET Framework Version Comparision by TazeTSchnitzel on Tuesday May 01, 2012 @07:41AM (#3913852)
.NET is very "enterprisey". It seems to be designed to make creating line-of-business applications easier.
Re:.NET Framework Version Comparision by hamidpalo on Tuesday May 01, 2012 @08:59AM (#3914071)
What exactly makes it enterprisey? I am always really unclear on what makes something "enterprisey" other than perceptions.
Re:.NET Framework Version Comparision by powertower on Tuesday May 01, 2012 @09:24AM (#3914178)
IMO, complete integration (one solution, one vendor) across the board (from OS, to IDE, to Database, to Frameworks, etc) is what makes something "enterprisey". That, and a large and mature ecosystem built around it.
Re:.NET Framework Version Comparision by hamidpalo on Tuesday May 01, 2012 @10:00AM (#3914317)
But that's not true. Plenty of .NET users do use other OSs (through Mono) and databases (I use MySQL). Sure, the best IDE is VS and there's tons more docs and support on using it all on Windows, but the same can be said of Rails with Linux and Textmate for example.

Enterprisey is a matter of perception and shouldn't be a slur.

Re:.NET Framework Version Comparision by jinushaun on Wednesday May 02, 2012 @03:31PM (#3920722)
If you step outside of the startup bubble, you'll find that the bulk of .NET stuff is boring line-of-business apps developed by large corporations using the MS stack from top to bottom because MS is "safer" than open source.

I actually work at a .NET startup doing non-traditional things with .NET and we have the hardest time hiring new developers because of the "enterprisey" nature of .NET and the type of developer that generates.

Re:.NET Framework Version Comparision by boyter on Tuesday May 01, 2012 @05:57AM (#3913635)
The thing I like most about C# is the new 4.5 async method decorators CTP which are frankly async methods done right.

For those not in the know, you just need to add an async to the front of the method and then put in await on whatever operation is going to take a while.

You can literally take synchronous network code modify a few methods and get 100x the throughput.

Re:.NET Framework Version Comparision by masklinn on Tuesday May 01, 2012 @06:29AM (#3913684)
> You can literally take synchronous network code modify a few methods

A few methods? Visible async taints, always (think haskell monads, because that's pretty much what it is), you have to convert the complete dynamic scope leading to those newly async method or it'll never work correctly.

It's more than "a few methods" unless your system is absolutely trivial.

So no, you literally can't do that, let alone literally.

Not to mention, `async` marks the method as asynchronous, it does not make the method asynchronous:

> put in await on whatever operation is going to take a while.

That operation also needs to be async itself, and ultimately it needs to be implemented as running on a separate execution queue. At the very least, this means wrapping "whatever operation" in a `TaskFactory.StartNew`. Not just adding an `await` to synchronous code.

Ultimately, `async` and `await` still are nothing but sugar over the Tasks API.

Re:.NET Framework Version Comparision by vyrotek on Tuesday May 01, 2012 @10:35AM (#3914493)
I appreciate your perspective on this. I've been using the new Tasks from the Parallel Library and really enjoy them. But, once I started reading about the async markup I was a little unsure as to what I gained from it since as you mentioned it's really just a new way to write the task.

Personally, I haven't had the time to really sit down and play around with both to see how I feel about code legibility and maintainability between the two techniques.

Are you aware of any extra functionality gained by marking methods async? It seems the new markup is more useful for frameworks. Think async action methods on controllers for mvc rather than your own little methods.

Re:.NET Framework Version Comparision by masklinn on Tuesday May 01, 2012 @12:43PM (#3915213)
> Are you aware of any extra functionality gained by marking methods async?

As far as I know there isn't any, the gain is in code readability/simplicity from the POV of an imperative developer: async/await are hints which the compiler transforms into CPS by thunkifying code following an `await`. According to Eric Lippert's series on async/await[0], the compiler also performs complex code generation to try and make try/except blocks behave "sensibly" in this imperative-looking code. While necessary for the coding style, I still am not sure whether that's an advantage or a drawback of async/await.

> It seems the new markup is more useful for frameworks. Think async action methods on controllers for mvc rather than your own little methods.

Technically, from outside the method `async T foo()` is no different from `Task<T> foo()` I believe, it's only the internal detail which change (mostly composing async callees and returning the result of an async chain). On the other hand (again this is something drawn from Eric's post) alongside async/await the framework team will add new APIs the Tasks API set, one of them being "multiplexing" of tasks (waiting for all tasks of a set of tasks, or any task of the set, although I'm sure the community has already implemented that separately)

[0] http://blogs.msdn.com/b/ericlippert/archive/tags/async/

Re:.NET Framework Version Comparision by topbanana on Tuesday May 01, 2012 @06:42AM (#3913715)
Async/await is mostly a C#5 rather than .Net 4.5 thing. They could allow it to work against .Net 4 and even 3.5.
Re:.NET Framework Version Comparision by jstclair on Tuesday May 01, 2012 @10:10AM (#3914352)
Re:.NET Framework Version Comparision by topbanana on Thursday May 03, 2012 @04:21AM (#3922891)
That's just the CTP, it's not clear yet whether they will release that support.
Re:.NET Framework Version Comparision by apaprocki on Tuesday May 01, 2012 @08:48AM (#3914039)
Async/await modeled after C# have been hacked into node.js as well:

https://github.com/koush/node/wiki/%22async%22-support-in-no...

Re:.NET Framework Version Comparision by untog on Tuesday May 01, 2012 @10:34AM (#3914484)
Interesting- it looks a lot like tame.js, but integrated into V8 itself. I wonder what the performance benefits are.
Re:.NET Framework Version Comparision by dozy on Tuesday May 01, 2012 @11:14AM (#3914691)
The DLR + IronPython is some impressive and really useful stuff.
Re:.NET Framework Version Comparision by rbanffy on Tuesday May 01, 2012 @07:17AM (#3913782)
> 9. .NET Micro Framework – a version of the .NET Framework related to the Smart Personal Objects Technology initiative

What are those?

Re:.NET Framework Version Comparision by locusm on Tuesday May 01, 2012 @08:41AM (#3914015)
Thats their framework you run on microprocessor platforms like Netduino.
Re:.NET Framework Version Comparision by TazeTSchnitzel on Tuesday May 01, 2012 @07:18AM (#3913790)
Well Java has its Java Rings...
Re:.NET Framework Version Comparision by rbanffy on Tuesday May 01, 2012 @07:20AM (#3913799)
I think I still have one...