Meanwhile, most C++ apps made using Visual Studio need to install a 12 to 32 MB Visual Studio runtime package...
It's a 4.8 MB Download, which is hardly significant...
Posted 24 January 2012 - 03:03 PM
Meanwhile, most C++ apps made using Visual Studio need to install a 12 to 32 MB Visual Studio runtime package...
Posted 24 January 2012 - 03:45 PM
Posted 24 January 2012 - 04:19 PM
Posted 24 January 2012 - 04:21 PM
If Windows doesn't ship with VC++ runtime by default, then that's kind of Windows fault.
...
then that's Windows fault, which is obvious since they are promoting .NET.
Posted 24 January 2012 - 04:29 PM
If Windows doesn't ship with a JRE, then that's Windows fault, which is obvious since they are promoting .NET.
Posted 24 January 2012 - 05:51 PM
Uh, [citation needed]C is best if you're going for speed.
C++ has many of the same slowdowns as Java does now. In fact today Java7 is about as fast as C++.
Posted 24 January 2012 - 05:52 PM
If Windows doesn't ship with a JRE, then that's Windows fault, which is obvious since they are promoting .NET.
No Microsoft is forbidden from bundling a Java Virtual Machine with Windows due to being caught being evil. http://en.wikipedia....Virtual_Machine
Posted 24 January 2012 - 05:53 PM
Interesting, especially the embrace, extend, extinguish strategy.
If Windows doesn't ship with a JRE, then that's Windows fault, which is obvious since they are promoting .NET.
No Microsoft is forbidden from bundling a Java Virtual Machine with Windows due to being caught being evil. http://en.wikipedia....Virtual_Machine
Posted 24 January 2012 - 07:44 PM
Uh, [citation needed]
C is best if you're going for speed.
C++ has many of the same slowdowns as Java does now. In fact today Java7 is about as fast as C++.
I'd like to see a benchmark proving this, where it wasn't simply because someone had written crappy C++ code.
You should be able to get the same assembly out of a C and C++ solution to a problem...
Posted 24 January 2012 - 09:00 PM
Yeah the C/C++ ones are almost the same, and Java is generally much more RAM heavy...Here: http://shootout.alioth.debian.org/
If you don't like the crappy C++ code of any of the implementations, I think there are ways for you to submit a better one. But C and C++ are pretty much the same in that comparison.
Posted 24 January 2012 - 11:08 PM
Posted 25 January 2012 - 12:34 AM
Posted 25 January 2012 - 12:49 AM
This should satisfy your benchmark source request, and it should give you an ample number of languages to do additional comparisons.
http://shootout.alio...rg/u32/java.php
First Java7 has vastly improved from Java6 but that's 5 years of updated given in 1 version.
Java 7 beats C++ and C in the the K-Nucliotide benchmark by 4 to 5 seconds.
http://shootout.alio...=java&lang2=gcc
Java 7 beats C++ in the fasta benchmark by ~1 second but loses to C by .1 seconds
http://shootout.alio...=java&lang2=gpp
C flat out wins or nearly ties vs C++ in everything except the K-Nucliotide test
http://shootout.alio...g=gcc&lang2=gpp
C when written properly beats C++ hands down.
The drawback of C is really that some more complex tasks are a pain to write without objects.
Java's main drawback is usually memory, but it's not as bad as most people think. Sure you have some where the Binary-Tree test ends up with Java taking nearly 5x the amount of memory C does, and on even small tests it still has to load a 10-15 meg virtual machine. However, somethings like the reverse complement test it takes nearly the same amount of memory as C does.
Java also attracted every programmer who was incapable of managing memory properly in C and C++ so there are a lot of bad memory structures out their in Java because at least it doesn't do the delayed crash thing C and C++ does when you mess with the memory the wrong way. Just because java has a garbage collector doesn't mean you can ignore memory, but that's what a lot of Java programmers do.