There is a similar thread to this, but apparently you aren't allowed to reply to it because it's too old or something.
It would be great if Minecraft could be rewritten in C and compiled. It would be much faster and use a lot less RAM. Unfortunately, Mojang shows no plans of doing this, and it would also require the nonexistent modding API to exist or else there would be no mods for the game (which would be lame). So instead, Mojang or someone else could compile the Java code straight into machine code with GCJ! This would even work with mods just fine, provided that you compile it from a modded jar.
If you don't know what GCJ is exactly, here is the brief explanation. It seems to be a component of GCC or something. It takes Java code, either as .java source code or .class files (accepts them in a jar file as well) and compiles it into native executables you can run.
Unfortunately, I have zero experience with compilers run in the command line since I normally use Xcode and Eclipse, so I can't figure out how to do this. The trouble is that it relies on all these external jars like lwjgl, and you have to link them somehow. Of course it would be great if Mojang could do this for us, but does anybody know how to do it?
They're not going to rewrite it for a very simple reason:
modding.
If they were to rewrite MC into C++, it would break every single mod ever created, forcing a mod community reset. It's not because they don't want to make MC more efficient.
As far as the GCJ goes, I don't really know if it would make anything that terribly much more efficient; but I do know that it would yield the same problem, it would break every mod and the community would have a forced restart.
It would be great if Minecraft could be rewritten in C and compiled. It would be much faster and use a lot less RAM. Unfortunately, Mojang shows no plans of doing this, and it would also require the nonexistent modding API to exist or else there would be no mods for the game (which would be lame). So instead, Mojang or someone else could compile the Java code straight into machine code with GCJ! This would even work with mods just fine, provided that you compile it from a modded jar.
If you don't know what GCJ is exactly, here is the brief explanation. It seems to be a component of GCC or something. It takes Java code, either as .java source code or .class files (accepts them in a jar file as well) and compiles it into native executables you can run.
Unfortunately, I have zero experience with compilers run in the command line since I normally use Xcode and Eclipse, so I can't figure out how to do this. The trouble is that it relies on all these external jars like lwjgl, and you have to link them somehow. Of course it would be great if Mojang could do this for us, but does anybody know how to do it?
Related links:
Gnu Compiler for Java - GCJ - Minecraft Forum
http://stackoverflow...or-foregin-jars
modding.
If they were to rewrite MC into C++, it would break every single mod ever created, forcing a mod community reset. It's not because they don't want to make MC more efficient.
As far as the GCJ goes, I don't really know if it would make anything that terribly much more efficient; but I do know that it would yield the same problem, it would break every mod and the community would have a forced restart.
OFFICIAL POSTING/REPLYING GUIDELINES
UNOFFICIAL POSTING GUIDE (PRT)
UNOFFICIAL REPLYING GUIDE (FTC)