No, he has a very valuable point. The point might be from the advice we gave him in his thread asking about programming languages and why we don't use Java, but it's still a good point. Java's socket layer is much slower than C#. There are uses for Java, and making a massive multiplayer server isn't one of them. Is it a useless project though? Well, the original programmer didn't know about NIO before posting here, and now he has something to research into and learn from. He learned Java in class and now he's going above and beyond what was taught by studying on his own, and I have no problem with that. Will the server be stable? Probably. Will the server be efficient? Probably not. Does that make the project useless? Not in my opinion.
Just so you know, there are commercial MMORPGs running their servers written in Java. Although I have to agree, the performance-critical parts are probably written with C and JNI. Still, Java is perfectly capable for this.
Just so you know, there are commercial MMORPGs running their servers written in Java. Although I have to agree, the performance-critical parts are probably written with C and JNI. Still, Java is perfectly capable for this.
I am pretty sure Runescape ran on Java and most likely still does.
It shouldn't matter if the source is one of the greatest around or not, it is about the fact that he programming and learning new things which will increase his knowledge and experience. I am pretty sure your first C# source wasn't great either, what I am simply trying to say is: one will only learn by doing and experiencing.
I'm not saying Java is useless or this project is useless. In fact, I did my best to clarify that. I also wasn't commenting on his code - Java is inefficient, that's all I was commenting on. I didn't say mine was better, I didn't say any source was better. I didn't say he should stop working on his source, I didn't say he wouldn't learn anything valuable from the project.
Quote:
Originally Posted by Super Aids
I am pretty sure Runescape ran on Java and most likely still does.
Runscape: 4 January 2001
C# .NET: 13 February 2002
Java was the only stable managed language back in the days. I don't judge them or anyone for making a server in Java. Would I use Java for a server? Probably not. That's just me though, and we have other options now.
As with all Java posts in this forum we see a lot of discussion about wether or not Java is capable for this kind of load. We see a lot of preference for C#. Spirted has given use a slight substanstation for this: Java's socket layer is slow. However, Netty, a common used NIO library for Java, is said to handle even up to 1m connections. A common example of a game server programmed in Java is RS - as SuperAids already pointed out. We see Java usage in the RS pserv community as well. They do not take C# even in concideration, so I have a feeling that things are a bit biased for both communities.
So far I have not been able to find a real good comparison/benchmark for the socket layers of Java and C#. I would really like to see such an comparison (preferably with equal workload) and I would encourage to develop such a benchmark together. But even if the socket layer of Java has less throughput, I still think that it's only part of the deal.
Obviously code quality does matter, so you will need to think about the data structures, persistency latencies, handling of the packets. There are C# sources which have problems dealing only with a few clients. With only a few (mostly immature - as this thread) Java private servers going on, this is still a hard thing to measure.
As with all Java posts in this forum we see a lot of discussion about wether or not Java is capable for this kind of load. We see a lot of preference for C#. Spirted has given use a slight substanstation for this: Java's socket layer is slow. However, Netty, a common used NIO library for Java, is said to handle even up to 1m connections. A common example of a game server programmed in Java is RS - as SuperAids already pointed out. We see Java usage in the RS pserv community as well. They do not take C# even in concideration, so I have a feeling that things are a bit biased for both communities.
So far I have not been able to find a real good comparison/benchmark for the socket layers of Java and C#. I would really like to see such an comparison (preferably with equal workload) and I would engage to develop such a benchmark together. But even if the socket layer of Java has less throughput, I still think that it's only part of the deal.
Obviously code quality does matter, so you will need to think about the data structures, persistency latencies, handling of the packets. There are C# sources which have problems dealing only with a few clients. With only a few (mostly immature - as this thread) Java private servers going on, this is still a hard thing to measure.
Actually the RS Pserver community has kinda mixed languages between Java, C# and C++. Although Java is the most used one.
Also I don't think the size of a pserver would really get to the point of showing the difference between each language's socket performance.
Let's be honest, the only real reason not to use Java is probably the lack of unsigned integers and even that isn't really a big deal, but apparently Java 8 will have support for this, and there are still 3rd party libraries for unsigned support even if you use Java 7 or lower.
I would say the reasons not to use Java are bad IDE's, being handcuffed by the JVM, poor sockets, lack of support for basic types.
I've said this in the past, just because a language is used for a specific task, doesn't mean its suited to it.
I'm sure there's at least one "high performance" 3rd party socket library for Java. I agree with the IDE part, although I never tried IntelliJ IDEA, NetBeans, or any of the other Java IDE alternatives, I just tried the horrible Eclipse IDE.
Server Development Help [Request Java help] and Base Shop Deutsch/English 04/17/2012 - Runescape Private Server - 1 Replies German:
Hallo Elitepvpers!
Mir ist aufgefallen das hier einige Hilfe mit dem programmieren oder dem entwickeln von einem RuneScape Server benötigen.
Ich seit einigen Jahren mit dem Programmieren von RuneScape beschäftigt und kann eigentlich fast alles.
Schreibt mir hier oder per PN wobei ihr hilfe benötigt oder kontaktiert mich in Skype oder schreibt mir eine E-mail.
Development of conquer p server 01/06/2012 - CO2 Private Server - 17 Replies Did it just go all the way down after hybrid and ulti? The only server I see doing good is Project X by Bauss
just wondering if there is any decent server out there
[Development] 4267 conquer server. 06/16/2010 - CO2 Private Server - 408 Replies Heya,
I've started a new development for a classic co server as I never saw one succesfull build up with a from scratch written and not leeched source.
We're currently aiming to add-in bot protection, proxy detection and various protections to prevent hacking.
So let's talk more about the source itsself, It's made from scratch and self written socket system, database handling is currently flatfile based. The loginserver is done but we're working on the gameserver now.
(Will be...
Java in server development 03/31/2010 - CO2 Private Server - 34 Replies Why? It seems that a select few have a contingency to hold Java code in contempt. To keep this topic in alignment with this forum, please answer my question with regards to a CO2 PServer.
I would like to hear anyone's thoughts or ideas either way about this.
New Conquer Server Project [Java] 02/18/2010 - CO2 Private Server - 63 Replies Here Hybris, Project CoLeader from CoEurope team if you guys remember the old staff ;)
Wishing to build a new source code for a Conquer Private Server, but in Java this time and all brand new ^^
Need to find one or two coders that knows Java very well and who can understand UML Diagrams that i'll make. I'll help coding (much) and giving infos.
Need an expert in Socket connections ^^ and someone who can use a little Sniffer with some decryption and disassembling knowledge ;) Well a bit of...