473,327 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Language evaluation: What type of projects is C++ appropriate for?

You have higher level, lower level, and those languages in between.
Generally speaking higher level languages are considered more
productive at the cost of a slower runtime. While lower level
languages are less productive but usually produce a faster runtime. On
the low end when would you choose C++ over C. It seems that many OS's,
device drivers, and DB's are written in C. And when would you use C++
over higher level languages. Where does C++ shine? I am looking for
answers that are specific (not anything you would use C for that is
over 50,000 lines of code) either a name of an existing project or
characteristics that of a project that would make you choose C++.

Thanks for your thoughts.

Feb 17 '07 #1
3 2029
al******@gmail.com wrote:
You have higher level, lower level, and those languages in between.
Generally speaking higher level languages are considered more
productive at the cost of a slower runtime. While lower level
languages are less productive but usually produce a faster runtime. On
the low end when would you choose C++ over C. It seems that many OS's,
device drivers, and DB's are written in C. And when would you use C++
over higher level languages. Where does C++ shine? I am looking for
answers that are specific (not anything you would use C for that is
over 50,000 lines of code) either a name of an existing project or
characteristics that of a project that would make you choose C++.
In industry, the language chosen for a project is often dictated by
management rather than by logic. C++ is often imposed because it is now a
mature language and there are many C++ developers.

However, this is no longer future proof and most people are now moving away
from C++ to higher-level, more modern languages like C#:

http://www.google.com/trends?q=c%2B%...o=all&date=all

Objectively, C++ has little to offer these days. It lacks almost all modern
features in any usable high-level way (GC, first-class lexical closures,
higher-order functions, currying, type inference, sum types, tuples,
interactivity, safety, brevity, efficient exceptions, pattern matching,
list literals, functors, marshalling, hashing, macros, concurrency, web
programming, scripting etc.), it is unreliable, unnecessarily verbose and
often difficult to optimise.

--
Dr Jon D Harrop, Flying Frog Consultancy
OCaml for Scientists
http://www.ffconsultancy.com/product...ex.html?usenet
Feb 17 '07 #2
Jon Harrop wrote:
[FUD]
Please don't feed the troll.

--
Ian Collins.
Feb 17 '07 #3
Some of what different applications are written in are artifacts
from the past when C++ and Java were not so prevalent. It is
difficult to redo legacy code.

For most applications, there is little difference anymore between
the performance of low and high level languages. High level languages
are generally more productive, because there is better tool support
and you can do in a few lines of code what might require 100s of lines
in a low-level language.

Object-oriented languages like C++ and Java have good software
design support, which makes maintaining code easier. This is
especially important for

For real-time applications (not necessarily embedded apps), I think
C++ is usually the best choice. Java is also making some inroads in
this arena --- it depends on your requirements.

C# and the latest <fill-in-the-blankfad may or may not become the
next "language of choice" for some or many applications. Not everyone
is abandoning C++ and Java for the latest fad. Plus, it requires you
buy in to the whole non-standard Microsoft scene. For some
applications, this works fine. If you want cross-platform
compatibility, it is not likely the best choice.

My thoughts, Alan
Feb 18 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Ilias Lazaridis | last post by:
" A cooperation between Sun Microsystems and IBM&Co. in conjunction with liberal & high evolutive communities would result in an nearly unbeatable programming platform. My evaluation has shown:...
3
by: Hamed | last post by:
Hello Every where in .NET books is mentioned that VS.NET is a seamless cross platform environment. We have two groups of programmers that some are VB programmer but others prefer to use C#. Is it...
0
by: Thiva Charanasri | last post by:
http://www.poweroflanguage.org Track: Computer Language 1st World Congress on the Power of Language: Theory, Practice and Performance Date: March 6 - 10, 2006 Bangkok, Thailand On this...
134
by: evolnet.regular | last post by:
I've been utilising C for lots of small and a few medium-sized personal projects over the course of the past decade, and I've realised lately just how little progress it's made since then. I've...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
10
by: Immortalist | last post by:
Various aquisition devices that guide learning along particular pathways towards human biases. And as E.O. Wilson might say mental development appears to be genetically constrained. (1) Language...
6
by: AG | last post by:
I am working on a web app using both C# and VB. Yes, there is a reason for it. All the code behind is C#. In the web.config I have the following <compilation debug="true">...
46
by: ajba74 | last post by:
Hi fellows, I am reading some books to learn the C programming language, and sometimes I have the feeling that when somebody becomes a C expert, he must learn a more modern and object-oriented...
39
by: Boltar | last post by:
Why does C do lazy evaluation for logical boolean operations but not bitwise ones? Ie: the following program prints "1 2" , not "1 1" under gcc main() { int a = 1; int b = 1; 0 && ++a;
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.