Re: Best Programming language for Network programming (serious server application



anup.kalbalia@xxxxxxxxx wrote:
My intention was never to start a fight between C++ and Java fans.
Apologies if it seemed to be so...

Not at all.

I correct myself in accepting that it is not a Real-Time application
in true sense. I accept i m not geek.

Matthew's post is actually wrong in several ways, so I wouldn't worry.

The phrase "real-time application" includes everything from flight control
on an aircraft to the renderer in a computer game. When real-time deadlines
must be guaranteed (e.g. people would die if the deadlines are not met),
this is referred to as "hard real-time". Most real-time applications
(primarily graphics) are soft real-time.

So you were quite correct to use the phrase "real time".

By real-time I meant real fast response time.

Exactly.

C and assembly may give me that performance but then
assembly shall be an overkill i guess.

Not really overkill, they are the wrong tools for almost every job nowadays.
Assembly is good for compiler writers and C is good for systems
programmers.

Is it really required to go to that low-level?

Absolutely not. There are many high-level tools that provide hard real-time
guarantees.

We develop professional visualization tools for scientists and engineers and
we use garbage collected languages exclusively. The arguments against the
suitability of GC for soft real-time applications and high-performance
applications have been invalid for years now. There is no reason to avoid
GC. Indeed, we are particularly interested in worst-case performance, which
we improved five fold by ditching C++ in favour of OCaml (a high-level
garbage collected language).

C++ programs typically deallocate in cascades of object destruction, leading
to significant stalls. In contrast, a modern garbage collectors are
incremental, spreading the work over several invocations and greatly
improving worst-case performance.

As I mentioned that code maintainability shall also be
an issue and that is the main reason of my confusion over the choice
Java and C/C++. Suggestions on this shall really very much appreciated.

Just from your description I would definitely choose Java for this task (of
the two languages). GC makes things simpler and Java has much better
support for databases. Java is a cleaner language, but there are much
better languages out there.

--
Dr Jon D Harrop, Flying Frog Consultancy
The F#.NET Journal
http://www.ffconsultancy.com/products/fsharp_journal/?usenet
.



Relevant Pages

  • Re: Basic inheritance question
    ... used 'this' in C++ and Java. ... but in Python it doesn't. ... you meant "in languages that has implicit instance reference available in methods"? ...
    (comp.lang.python)
  • Re: Looking for programming examples in any programming language
    ... in an in-page applet. ... do that for such a broad range of languages. ... But note even Java applets ... If you're going to separate the specific I/O environment from ...
    (comp.programming)
  • Re: parser
    ... and by no means is Java some obscure language... ... but I still feel that both C and C++ are good languages to use for ... leaving the backend interpreter/JIT as a simpler piece of machinery). ... that you believe that C lacks the ability to build parsers as masses of tiny ...
    (comp.programming)
  • Re: OO compilers and efficiency
    ... > will be difficult for a compiler to do a good job of spotting when the OO ... "simpler" languages, ... I agree that Java ... (including adding lexical closures) ...
    (comp.programming)
  • Re: Basic inheritance question
    ... Old Java habits die slowly. ... No, seriously it isn't Java habits only, most other languages wouldn't ... That's not very far from what a Python method object does - ... reference to the current instance is to pass it as an argument to the ...
    (comp.lang.python)