Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualTelastyn

Posted 19 July 2012 - 06:31 AM

Telastyn, on 18 July 2012 - 11:03 AM, said:

Java's faster than C#.


This is taken out of context. If you re-read, you'll see that I said that Java's relative popularity will decrease faster than C#'s.

Nope.
In Windows, the .Net Framework is closer tied to the Operating System. A Windows Computer should generally execute a C# Program faster than a Java Program. Especially Window programming has less overhead for its operations in C#.



This is entirely incorrect. The .NET windowing API is closer to windows, meaning less adaptation overhead (maybe). That's the standard library, not the runtime. Java could've made (essentially) the same windowing API to get the same level of overhead.

Now to make things more complex, Java has a badass runtime optimisation. Compare the calculation times of a simple algorithm like Selection sort, after the third run or so your algorithm will run at least *2 faster.
I saw benchmarks on Linux machines, Java was there a bit faster than C# Mono. On a Windows computer, my money would be on C# for most applications.


.NET has the same sort of runtime optimizations (except on system types, which are pre-compiled in Microsoft's implementation).


Quit spreading misinformation.

#1Telastyn

Posted 19 July 2012 - 06:30 AM

Telastyn, on 18 July 2012 - 11:03 AM, said:

Java's faster than C#.


Please point out where I said this.

Nope.
In Windows, the .Net Framework is closer tied to the Operating System. A Windows Computer should generally execute a C# Program faster than a Java Program. Especially Window programming has less overhead for its operations in C#.



This is entirely incorrect. The .NET windowing API is closer to windows, meaning less adaptation overhead (maybe). That's the standard library, not the runtime. Java could've made (essentially) the same windowing API to get the same level of overhead.

Now to make things more complex, Java has a badass runtime optimisation. Compare the calculation times of a simple algorithm like Selection sort, after the third run or so your algorithm will run at least *2 faster.
I saw benchmarks on Linux machines, Java was there a bit faster than C# Mono. On a Windows computer, my money would be on C# for most applications.


.NET has the same sort of runtime optimizations (except on system types, which are pre-compiled in Microsoft's implementation).


Quit spreading misinformation.

PARTNERS