generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Video Game Central
Home Search
 

Re: why Java is so slow

Previous Thread :: Next Thread 
rotflstar is not online. rotflstar
Joined: 10 Oct 2009
Total Posts: 2371
29 Jan 2013 10:05 PM
Windows isn't programmed in Java. As per my understanding, Windows is mostly programmed in C++ if you ignore all the very old DOS and Assembly. If Windows was programmed in, or at least optimized for Java (like Android) it would run faster(?).

More importantly though, it was designed with stability (it was actually made to be used for things like cable boxes and other things you don't want crashing ever) and moderate level programming in mind. This allows for faster development, as compared to C++'s philosophy of allowing a developer to have loads of choices, even if most of them are the wrong choice and to be as easy to compile and run as possible, Java was designed to be easier to read, for example:
// C++ code:

#include iostream //iostream is surrounded by a less than and greater than symbol, but ROBLOX isn't having any of it.

using namespace std;

int main ()
{
cout "Hello World!"; //two less thans here, again, ROBLOX is trying to read it as HTML.
return 0;
} //I just pulled this from the internet, it is actually the shortest form of "Hello World!"... Be happy it didn't use classes
________________________________________________________
// Java code
class Main() {
public static void main(String args[]) {
System.out.println("Hello World!");
}
} //its been awhile, but this is how I remember it working
________________________________________________________


Oh, and I should add that Java runs fine if you have a competent computer (I get speeds on Minecraft somewhere between 50-90fps on full graphics WITHOUT optifine)
Report Abuse
GhrodinhRTCitia is not online. GhrodinhRTCitia
Joined: 18 Dec 2012
Total Posts: 502
29 Jan 2013 10:07 PM
[ Content Deleted ]
Report Abuse
SethiXzon is not online. SethiXzon
Joined: 21 Aug 2008
Total Posts: 13779
29 Jan 2013 10:09 PM
This is the most misguided post I have ever read; and you didn't even quote your facts correctly.

To begin, Windows is primarily C and assembly with a bit of C++ tossed in for the operating system utilities. If it was made in Java; it would just run slower, because Java executes code in a virtual machine or slowly translates it to bytecode.

Java was NOT designed for stability (you'll notice that it is not stable), and it is much harder to develop in than C++ if not solely for the fact that it lacks simple features universal in any C-variant-language, such as the ability to declare unsigned variables.

The fact of the matter is that Java is a slow and trash language that is vastly inferior to any and all versions of C. If readability is somehow an issue for you; then C# is an option for those less inclined in their programming skills.
Report Abuse
amazingmoney4 is not online. amazingmoney4
Joined: 26 Apr 2011
Total Posts: 244
29 Jan 2013 10:10 PM
@seth
Report Abuse
SethiXzon is not online. SethiXzon
Joined: 21 Aug 2008
Total Posts: 13779
29 Jan 2013 10:11 PM
i see
Report Abuse
amazingmoney4 is not online. amazingmoney4
Joined: 26 Apr 2011
Total Posts: 244
29 Jan 2013 10:11 PM
I award you no points
Report Abuse
SethiXzon is not online. SethiXzon
Joined: 21 Aug 2008
Total Posts: 13779
29 Jan 2013 10:11 PM
For pointing out the truth?
Report Abuse
rotflstar is not online. rotflstar
Joined: 10 Oct 2009
Total Posts: 2371
29 Jan 2013 10:18 PM
actually, Java is just as safe as C++, in fact, it's safer so long as you implement it properly.
Report Abuse
GhrodinhRTCitia is not online. GhrodinhRTCitia
Joined: 18 Dec 2012
Total Posts: 502
29 Jan 2013 10:19 PM
[ Content Deleted ]
Report Abuse
rotflstar is not online. rotflstar
Joined: 10 Oct 2009
Total Posts: 2371
29 Jan 2013 10:33 PM
Well, fine, I admit defeat, but would like to point out something
development speed.
Programs developed in Java have a far faster development cycle than those in C++ due to the plethora of APIs available from the get-go and easily extendable nature of it. Also, it will basically run fairly unchanged on nearly any OS, reducing compatibility issues almost entirely.
Report Abuse
belial52 is not online. belial52
Joined: 10 Oct 2009
Total Posts: 8074
29 Jan 2013 10:35 PM
When done correctly java is just as fast as C++ programs. It's bad optimization that slows it down.
Report Abuse
SethiXzon is not online. SethiXzon
Joined: 21 Aug 2008
Total Posts: 13779
30 Jan 2013 07:25 AM
There are more libraries and engines coded in C++ -- I challenge you to find more than a few frameworks that exist coded in pure Java.
Report Abuse
TheRealCommander is not online. TheRealCommander
Joined: 03 Dec 2011
Total Posts: 9068
30 Jan 2013 07:50 AM
Java is a high-level language AFAIK, definitely not something you want to build an OS with.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Video Game Central
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image