Blogs
 


  Oddworld Forums > Blogs > Spooce-aholic


Rate this Entry

Assembly Language vs. C vs. C++ vs. Java

Posted 01-25-2013 at 09:04 AM by Spooce-aholic
Which one is the fastest?

I think Java is the fastest because it's new and Assembly Language is the slowest because it's old and outdated.

Imagine how much more faster COD and BF3 would be if they were written in Java.

I certainly hope Abe HD will be written in Java so it will be as fast as possible.

The reason why Minecraft is the fastest game in the world is because it is written in Java.

Windows Vista was very slow because it was written in Assembly, C, and C++.

Does Assembly, C, and C++ still have a purpose?
Total Comments 23

Comments

RoryF's Avatar
Wasn't java the main reason why Minecraft is so slow on most computers?

Or am I just being falsely convinced by online reviews?
Posted 01-25-2013 at 09:05 AM by RoryF

Manco's Avatar
Android uses Java.

You know, the phones infamous for interface lag.
Posted 01-25-2013 at 09:17 AM by Manco

Spooce-aholic's Avatar
:
Wasn't java the main reason why Minecraft is so slow on most computers?

Or am I just being falsely convinced by online reviews?
I think it's the latter.

I get over 100 FPS in Minecraft at max settings.
Posted 01-25-2013 at 09:20 AM by Spooce-aholic

Varrok's Avatar
There is no sentence in that blog post that I agree with.
Posted 01-25-2013 at 09:21 AM by Varrok

Spooce-aholic's Avatar
I have a laptop that was purchased off the shelf. It runs Minecraft better than it runs TF2.
Posted 01-25-2013 at 09:23 AM by Spooce-aholic

RoryF's Avatar
You must be joking, Java takes up so much memory, I ran Minecraft and looked in CPU usage and it was at 98-100% on Java.
Posted 01-25-2013 at 09:29 AM by RoryF

Spooce-aholic's Avatar
:
You must be joking, Java takes up so much memory, I ran Minecraft and looked in CPU usage and it was at 98-100% on Java.
I noticed that Minecraft, which is written in Java, is faster than TF2, which is written in C++.
Posted 01-25-2013 at 10:00 AM by Spooce-aholic

Varrok's Avatar
I noticed that a pong-clone, which is written in C, is faster than Crysis, that is written in C++, therefore C is faster than C++

Also, be quiet!
Posted 01-25-2013 at 10:07 AM by Varrok

Manco's Avatar
whoa, whoa, hold the phone

a game which runs on voxels is smoother than a game that runs on polygons????
Posted 01-25-2013 at 10:45 AM by Manco

Spooce-aholic's Avatar
:
I noticed that a pong-clone, which is written in C, is faster than Crysis, that is written in C++, therefore C is faster than C++

Also, be quiet!
Not true, C++ is faster than C because C++ is newer and has OOP support, though they're about the same.

The pong-clone must have been optimized better than Crysis.

:
whoa, whoa, hold the phone

a game which runs on voxels is smoother than a game that runs on polygons????
Since Minecraft worlds generate infinitely, most Minecraft worlds have a lot of blocks and mobs. Therefore, Minecraft has more polygons than TF2, but since Minecraft is written in Java and TF2 is written in C++, Minecraft will obviously be faster.

Also, Java has garbage collecting, so it takes up less memory than Assembly, C, or C++.
Posted 01-25-2013 at 11:09 AM by Spooce-aholic
Updated 01-25-2013 at 11:11 AM by Spooce-aholic

Varrok's Avatar
Yeah, and all these polygons are on screen and being rendered at the same time.

Just stop. Don't embarrass yourself
Posted 01-25-2013 at 11:20 AM by Varrok

RoryF's Avatar
Well, I tried TF2 on an old laptop and it ran reasonably well, Minecraft, however, let's just say 10-20FPS tops will all settings down.

JAVA IS BETTER QUITE CLEARLY GUYS YOU HAVE NO IDEA WHAT YOU'RE ON ABOUT.
Posted 01-25-2013 at 12:02 PM by RoryF

Manco's Avatar
:
Not true, C++ is faster than C because C++ is newer and has OOP support, though they're about the same.

The pong-clone must have been optimized better than Crysis.
You have no idea what you’re talking about, shut up.

:
Since Minecraft worlds generate infinitely, most Minecraft worlds have a lot of blocks and mobs. Therefore, Minecraft has more polygons than TF2, but since Minecraft is written in Java and TF2 is written in C++, Minecraft will obviously be faster.

Also, Java has garbage collecting, so it takes up less memory than Assembly, C, or C++.
You have no idea what you’re talking about, shut up.
Posted 01-25-2013 at 12:42 PM by Manco

Spooce-aholic's Avatar
:
Yeah, and all these polygons are on screen and being rendered at the same time.

Just stop. Don't embarrass yourself
I don't think I'm the one that's embarrassing him/her self.

:
Well, I tried TF2 on an old laptop and it ran reasonably well, Minecraft, however, let's just say 10-20FPS tops will all settings down.

JAVA IS BETTER QUITE CLEARLY GUYS YOU HAVE NO IDEA WHAT YOU'RE ON ABOUT.
On my new laptop, TF2 is laggy even at recommended settings. Minecraft is smooth though.

:
You have no idea what you’re talking about, shut up.
I don't think I'm the one that has no idea what (s)he's talking about.
Posted 01-25-2013 at 12:43 PM by Spooce-aholic
Updated 01-25-2013 at 12:52 PM by Spooce-aholic

Varrok's Avatar
You should think that, because obviously you're wrong.
Posted 01-25-2013 at 01:12 PM by Varrok

Manco's Avatar
:
I don't think I'm the one that has no idea what (s)he's talking about.
THEN EXPLAIN TO US HOW THIS IS WRONG:
:
Yeah, and all these polygons are on screen and being rendered at the same time.

Just stop. Don't embarrass yourself
Posted 01-25-2013 at 01:53 PM by Manco

Phylum's Avatar
:
Also, Java has garbage collecting, so it takes up less memory than Assembly, C, or C++.
So troll or what?

If not, there's a metaphor about tradesmen and tools that's appropriate here.
Posted 01-25-2013 at 03:13 PM by Phylum

Nate's Avatar
Java code runs in a virtual machine rather than actual machine code, so it's very inefficient. Better than it used to be, but still slow.

The difference between C and C++ is arguable. It used to be that C++ code was actually compiled into C code, which was then compiled in to machine code. The conversion wasn't very good, so C was regarded as faster. These days I'd say that the compilers have gotten to the point where it's much of a muchness. You're comparing apples and oranges though; the choice between C and C++ should come from how you want to use the language, not how fast they are.

Well-written assembly code will always be fastest. But producing well-written assembly code for anything but the simplest program is way too difficult to be bothering with.

:
Also, Java has garbage collecting, so it takes up less memory than Assembly, C, or C++.
If you write your C/C++ code well, you don't need garbage collecting. And it will take up a hell of a lot less memory.
Posted 01-25-2013 at 03:41 PM by Nate
Updated 01-25-2013 at 03:44 PM by Nate

Spooce-aholic's Avatar
:
So troll or what?
About time someone figured it out!

:
These days I'd say that the compilers have gotten to the point where it's much of a muchness.
After looking up benchmarks, C is actually slightly faster than C++.

Also, Java is actually faster than most languages, I heard that it is actually as fast as non-optimized C++ code.

According to the Benchmark, Mozart/Oz is the slowest.

The benchmark I was using can be found here, more benchmarks can be found here.
Posted 01-25-2013 at 08:16 PM by Spooce-aholic
Updated 01-25-2013 at 08:23 PM by Spooce-aholic

Phylum's Avatar
Like Nate said. Much of a muchness.

Java is much faster than it used to be, but it still runs through a VM. If it's as fast as C++ code that's a fault of the C++ coder.
Posted 01-25-2013 at 10:59 PM by Phylum
Updated 01-26-2013 at 12:06 AM by Phylum

Crashpunk's Avatar
Minecraft is terrible on my PC. I have to install some mods to make it even playable.
Posted 01-26-2013 at 02:54 AM by Crashpunk

Nate's Avatar
:
Also, Java is actually faster than most languages, I heard that it is actually as fast as non-optimized C++ code.
But only if the Java code is incredibly well optimised.

That's like saying if I did nothing but train for the next five years, I could beat Usain Bolt in a race if his legs were broken.
Posted 01-26-2013 at 04:02 AM by Nate

AvengingGibbons's Avatar
Nate's first post in this blog is the first that actually makes any sense in relation to the original blog post.
Posted 01-29-2013 at 03:08 PM by AvengingGibbons

 

Recent Blog Entries by Spooce-aholic





 
 
- Oddworld Forums - -