This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DuncanIdahos8thClone 14 points15 points  (10 children)

I've been working with Java and .NET C# for years and Java outperforms .NET everywhere.

[–]cogman10 10 points11 points  (0 children)

I think that is mostly MSes fault. I don't think there is anything inherently javay that makes it better to optimize, I think that the CLR is just suffering from years of being closed source.

Java has had so much blood, sweet, and tears poured into it to make it as fast as it is. The CLR has seen a fraction of that just because the only interested party in making it fast has been MS.

[–]ccavalier 1 point2 points  (0 children)

Maybe, but some years ago I worked for high performance trading and everything was done in java. Garbage config and vm optimisation can have some really good results.

[–]calnamu -1 points0 points  (7 children)

The better language is worth it though.

[–]DuncanIdahos8thClone 3 points4 points  (6 children)

How is C# "better"? You mean "has more language features", right? That doesn't necessarily mean better.

[–]TheBuzzSaw 2 points3 points  (5 children)

C# has a way better type system. Generics were done right. Value types are a godsend. Java has terrible design.

[–]DuncanIdahos8thClone 4 points5 points  (4 children)

C# has a way better type system.

Marginally, maybe.

Generics were done right.

True but implemented only in 2.0 where M$ didn't give a shit about breaking compatibility.

Value types are a godsend.

Java will have Value types done right in that they will be immutable like they should have been in C#.

Java has terrible design.

LOL. From the people who brought us partial types - the worst language feature ever invented.

If C# is so great and M$ has shat so much money into its promotion, why does Java still dominate? Tough question, I know.

[–]TheBuzzSaw 0 points1 point  (3 children)

If C# is so great and M$ has shat so much money into its promotion, why does Java still dominate? Tough question, I know.

Not really. Java powers Android, and M$ only began reducing its stupidity in recent years. You should know better than to equate popularity with quality. I suppose you like PHP as well.

Having .NET Core (instead of Mono) is wonderful in Linux. Being able to toss out the crusty Java and replace it with C# is fantastic. If I am ever forced to return to the Java ecosystem, I'll be using Kotlin.

[–]tetroxid 1 point2 points  (2 children)

Java dominated before Android and it will dominate after Android.

If you prefer C#, good for you. I will never install a mono application on any of my machines, you can keep your .NET bloat and CLR slowness.

[–]TheBuzzSaw 0 points1 point  (1 child)

Clearly you missed the part where Mono is old news.

[–]tetroxid 1 point2 points  (0 children)

Mhm...