Bukkit + C++ = ???

Discussion in 'Bukkit Discussion' started by scout109, Jul 21, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    scout109

    My questions is Bukkit + C++ = ???

    What possibilities would become of this?
     
  2. Offline

    mooman219

    99.9% this will never happen.
    1. Minecraft is in Java.
    2. MinecraftServer is in Java.
    3. CraftBukkit is in Java.
    4. Bukkit is in Java.
    I guess huge compatibility issues will arise if Bukkit ever goes C++.
    On the other end​
    Possible some performance gains if it does happen, C++ is better speed wise.
     
  3. Offline

    MCManager

    there are c++ minecraft servers, also in c# and such
     
  4. Offline

    NuclearW

    Mineserver is in C++

    Good luck getting them to use a JNI to support Bukkit plugins though. Last I heard they don't want to.
     
  5. why everybody thinks C++ would be nicer than java ?

    just think about the work to maintain 3 hardware architecture and cry.
    java is a fine plateform for a game such as minecraft.
     
  6. Offline

    Trollkemada

    I still can't believe someone think so... You're not hosting a server, right? Wait, are you even playing??
     
    CreepersGonnaCreep likes this.
  7. Offline

    andret

    And why should he not think that Java is fine? Please, tell us...

    Even though java often takes longer to start its processes I would say that overall performance is close to c++ applications. And Java got tons of headways over c++ when it comes to server software: Buildt in Multithread support, forced object orientated. Garbage collectors, when those memory holes happens, java is designed for networking and internet. There are other improvements over c++ as well. oh, and by the way, most android apps is written in java. If c++ was that much better, I belive c++ would have been used instead...

    Yea, you can do it all with c++ and c++ got lots of more libraries when it comes to gaming, but for Minecraft, well, java is fine.
     
  8. Offline

    cyberdude

    Say what again??????? You got to be kidding? There is a very good reason so few games have ever been released in Java. Especially the size of minecraft (which isn't even a big game, compared to many other games). You think all the games you see on steam and in the shops was written in Java. Think again.
    Java is in no way even close to performance of what you would get writing this game in c++.
    This game lags more and uses more resources than most high end games does.
    Java is slow by nature, its running in a "virtual machine" environment. Adding way more steps before going to the hardware. c++ is compiled to native machine code, Java is NOT.
    In what universe are you living in?
    End of Discussion!
     
  9. Offline

    NuclearW

    I don't the the problem is entirely with the fact that the minecraft server is java, it is more that it is java done wrong.

    Take a look at @SpaceManiac 's Glowstone project, it's very interesting to see how it out-preforms the minecraft server, even though it is java as well.
     
  10. Offline

    Trollkemada

    Well, I will start by the end :-P

    For Minecraft java is fine? Again, have you even play Minecraft? Have you look how many RAM it uses? Have you try to open 3 or 4 Minecrafts?

    "Most android apps are written in java". I don't know if that's even true, but: so? What does that have to do with Minecraft using java??

    About the performance of Java is close to c++ let me say something:
    Java is a language very friendly, in my opinion, you can write on java an is less painful than c++, maybe.
    But Java is waay far that C++, for example, let's have an array. Let's read the first componente:
    C++ goes, oh, right, i just get this memory adresss here, let's sum one to it, and just go to that direction.
    Java goes, oh wait, maybe the guy which program this was a fool, i'd better check that the componente is whitin the bounds of that array.
    What happens here? Well, Java maybe did make Notch easier to write this "game" but the work that Notch may save, is being doing by your CPU !!
    That was just a example, Java also checks in runtime the type of each variable and have to deal with virtual funtions

    Im not gonna tell you lots of thinks, because, honestly, i don't know too much. But i know i can run World of Warcraft (for example) smoothy and even two of then, and running two Minecrafts just make my CPU and memory just for it.
     
  11. Offline

    tha d0ctor

    I love java, especially when my servers idle at 2GB ram sometimes.... :(
     
  12. Offline

    vlado2portos

    I think there is a typo, should be where instead of when, unfortunatelly java is leaking memmory a lot, its getting better every new release but still..
     
  13. Offline

    Kainzo

    Recoding a project allows you to find several things that you did wrong, that you otherwise wouldn't be able to catch.

    The minecraft server has done, SEVERAL things wrong. A recode would give you insight on other things that you could patch up in java, ultimately an entire rewrite is needed but the actual player base wouldn't notice too much of a difference.
     
    Qix likes this.
  14. Offline

    Kodfod

    Java is just fine for a game like minecraft. If you don't like java, don't try to code it, don't try to support it, just leave it alone. There are c++ and c# minecraft servers that you can take yourself to. If you don't like them then start to code a minecraft server yourself and see how hard it would be to port it to c++.
     
  15. Offline

    Sushi

    Java is not ideal for a video game such as Minecraft. There's a reason why most video games are written in C/C++. The Java Garbage Collector likes to butt in at random times to free memory, and can sometimes impede performance. In addition, the Garbage Collector is not always through and systematic, and can cause massive memory leaks (as have happened often with Minecraft and Bukkit in the past).

    Also, the fact that it is running in a VM makes it have an obvious performance difference.
     
  16. Offline

    TnT

    Interesting year old debate we've dragged up.
     
    evilmidget38 likes this.
  17. Offline

    Sushi

    Wow I didn't even notice this was a year old. :D
     
  18. Offline

    TheBeast808

    This point is completely invalid. You never have a use to open 3 or 4 Minecraft processes, so if that's what you need to do to see the performance difference, then Java is fine. Also, I don't think you know how RAM allocation works. Minecraft 'reserves' 1gb of RAM, but rarely uses everything it reserves. Usually, my client is using 10-25% of the 1gb reserved.
     
  19. Offline

    chaseoes

    According to http://forums.bukkit.org/pages/about-us/:
     
  20. Offline

    Milkywayz

    Minecraft on the client end for me never uses more then 256mb of ram on low settings, however CPU wise it's quite bad. I limit my minecraft so my processor doesn't heat up, (it makes it really hot in my room with all the stuff running + a overheating computer).
     
Thread Status:
Not open for further replies.

Share This Page