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 |
|
|
| |
|
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 |
|
|
| |
|
SethiXzon
|
  |
| Joined: 21 Aug 2008 |
| Total Posts: 13779 |
|
| |
|
| |
|
SethiXzon
|
  |
| Joined: 21 Aug 2008 |
| Total Posts: 13779 |
|
|
| 29 Jan 2013 10:11 PM |
| For pointing out the truth? |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|