Quote:
|
Originally Posted by Derrek
Digital, I don't think it's a good idea to try to rebuild L2servers in different languages.
|
Maybe the right language for the job should be used in the first place? L2J is great for a "toy" server, but for doing things on the scale the larger communities are used to...l2j will never work.
Quote:
|
Originally Posted by Derrek
I suppose it would be better to rebuild L2J code. There're too many things to optimize. Building new server on C++ will take much time , there will be many bugs etc. And I almost sure it'll be very close to l2j code (like l2cs first proj.)
|
I agree Java is a great language for certain jobs. However, use the right language for the job at hand. Java has yet to present a decent IOCP offering that operates at the kernel level. The one-thread-per-client model that L2J uses will never work for a large number of long term sustained network connections. Not to mention, the one-thread-per-client model only scales so far. You run into limitations with the OS's scheduler and memory issues. Why use 1200 threads to handle 1200 clients when you can use 10 to accomplish the same thing far faster?
Quote:
|
Originally Posted by Derrek
I don't believe that changing Java lang to C++ will let someone improve perfomance more than 20-30%. I mean that , for example, if l2j can hold on some server 700 ppl online, C++ with l2j-structured code won't hold 2k.
|
I am not sure if torune is planning on doing "native" win32 C++ or using the .net framework, either way the performance boost over java will be noticeable. I am sure the .net framework "hooks" into the windows kernel far more efficently than the jvm does. Once again, one of the problems mentioned already with l2j is its one-thread-per-client model due to the fact Java lacks a true IOCP implementation.
Quote:
|
Originally Posted by Derrek
And building l2server in C++ is twice more difficult than in Java I think. imho 
|
Why settle for something that already doesent work? I see no tool available in the java language to acheive the network concurency kernel level IOCP brings.
Once again, nothing against java, but we should use the right language for the right job. Various languages have various tools available that other languages do not have. This is not a "l2j sucks" reply...just a reply pointing out a lack of certain features Java provides that can be found in c++ on win32.
Anyway, best of luck torune. I hope your project succeeds where others have fallen apart.