Re: Best Programming language for Network programming (serious server application
- From: Jon Harrop <jon@xxxxxxxxxxxxxxxxx>
- Date: Tue, 29 May 2007 05:38:56 +0100
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
.
- References:
- Best Programming language for Network programming (serious server application
- From: anup . kalbalia
- Re: Best Programming language for Network programming (serious server application
- From: Matthew Hicks
- Re: 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: Data structure for fast associative array with lookup by both key and index
- Next by Date: Re: pop up... ;(
- 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
|