Re: Best Programming language for Network programming (serious server application
- From: Jon Harrop <jon@xxxxxxxxxxxxxxxxx>
- Date: Thu, 24 May 2007 18:39:34 +0100
anup.kalbalia@xxxxxxxxx wrote:
Now for my server, I am confused between java and C/C++. I have heard
that writing networking applications is easier in Java
Yes.
and even as a
whole, writing and maintaining code in Java is much easier.
Yes, although other languages are much better than Java.
Also
database interaction is a factor here. But performance-wise i m
extremely worried. Some googling told me that Java is no longer slower
than C++ but i m sceptical.
Java can be much slower than C++:
http://www.ffconsultancy.com/languages/ray_tracer/results.html
They say that JIT compilation (some
dynamic compilation funda) makes java actually faster than C++.
Java might be faster when lack of GC makes C++ prohibitively difficult to
write.
Is it
true or just a theory?
This depends entirely upon what you're doing.
I am not a geek and has been using delphi
sockets for so long. But there have been serious issues in delphi
sockets and I want to look for something else. Can anybody please
help. I am willing to go any extra mile to do the coding in C/C++ but
is it worth the effort. Will the performance difference be
significant?
C++ is not worth using anymore. A combination of high-level languages and C
works better.
I have tried creating a sample server Java app, which will spawn one
thread for each client socket connection.
Again, there are much better languages for asynchronous processing, like F#.
I tried connecting 5000
client sockets to this blocking server socket and got "Out of Heap
memory" error in Server! This was concerning as my server application
is expected to handle a much higher number of client connections.
Is it a Java's limitation or my ignorance of better java uasabilty? Is
there any other suggestion than sockets?
No idea. There will be information out there on which techniques to use when
you need massive parallelism. You might try asking in an OS-specific ng.
I know it was a very lengthy posting but any help shall be extremely
helpful as i m badly trying to battle it out in this technological
web. Thanks to anybody who cares to read this post.
Have you considered C#?
--
Dr Jon D Harrop, Flying Frog Consultancy
The F#.NET Journal
http://www.ffconsultancy.com/products/fsharp_journal/?usenet
.
- Follow-Ups:
- Re: Best Programming language for Network programming (serious server application
- From: anup . kalbalia
- Re: Best Programming language for Network programming (serious server application
- References:
- Best Programming language for Network programming (serious server application
- From: anup . kalbalia
- Best Programming language for Network programming (serious server application
- Prev by Date: Re: Best Programming language for Network programming (serious server application
- Next by Date: Re: Best Programming language for Network programming (serious server application
- Previous by thread: Re: Best Programming language for Network programming (serious server application
- Next by thread: Re: Best Programming language for Network programming (serious server application
- Index(es):
Relevant Pages
|