C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What kind of problems is c++ best at solving?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
nb
Guest





PostPosted: Mon Dec 29, 2003 6:31 pm    Post subject: What kind of problems is c++ best at solving? Reply with quote



What kind of problems is c++ best at solving?
Back to top
Rolf Magnus
Guest





PostPosted: Mon Dec 29, 2003 6:50 pm    Post subject: Re: What kind of problems is c++ best at solving? Reply with quote



nb wrote:

Quote:
What kind of problems is c++ best at solving?

Problems in the computer domain.


Back to top
Jeff Schwab
Guest





PostPosted: Mon Dec 29, 2003 7:04 pm    Post subject: Re: What kind of problems is c++ best at solving? Reply with quote



nb wrote:
Quote:
What kind of problems is c++ best at solving?

Complicated ones. The more broadly defined the problem, the more
advantage you get from using C++.

In D&E, Stroustrup says C++ never was intended to be "best" at any
particular task. However, it should be at least second-best at almost
anything. For string manipulation, you might want a particular
scripting language, e.g. Perl. For frequent calculations involving
large arrays of numbers, Fortran may be your first choice. However, if
you have to tackle a problem that involves both string manipulation and
vector mathematics, I don't know of a more appropriate language than C++.

-Jeff


Back to top
Wouter Lievens
Guest





PostPosted: Mon Dec 29, 2003 7:57 pm    Post subject: Re: What kind of problems is c++ best at solving? Reply with quote

"nb" <nb (AT) ned (DOT) net> schreef in bericht
news:64p0vv4nasi1qsvpf05l26sb1anoisk72g (AT) 4ax (DOT) com...
Quote:
What kind of problems is c++ best at solving?


The ones that make you go oooooh




Back to top
Wouter Lievens
Guest





PostPosted: Mon Dec 29, 2003 7:59 pm    Post subject: Re: What kind of problems is c++ best at solving? Reply with quote

"Jeff Schwab" <jeffplus (AT) comcast (DOT) net> schreef in bericht
news:ktedncwbgfVz5m2iRVn-ig (AT) comcast (DOT) com...
Quote:
nb wrote:
What kind of problems is c++ best at solving?

Complicated ones. The more broadly defined the problem, the more
advantage you get from using C++.

In D&E, Stroustrup says C++ never was intended to be "best" at any
particular task. However, it should be at least second-best at almost
anything. For string manipulation, you might want a particular
scripting language, e.g. Perl.

Are you considering expressiveness or performance?
I don't know why C++ would score less in string manipulation performance
than Perl would...

Quote:
For frequent calculations involving
large arrays of numbers, Fortran may be your first choice. However, if
you have to tackle a problem that involves both string manipulation and
vector mathematics, I don't know of a more appropriate language than C++.

-Jeff

Microsoft Visual Basic tends to be better!




(I hope it is realised that I am kidding)




Back to top
Jeff Schwab
Guest





PostPosted: Mon Dec 29, 2003 8:07 pm    Post subject: Re: What kind of problems is c++ best at solving? Reply with quote

Wouter Lievens wrote:
Quote:
"Jeff Schwab" <jeffplus (AT) comcast (DOT) net> schreef in bericht
news:ktedncwbgfVz5m2iRVn-ig (AT) comcast (DOT) com...

nb wrote:

What kind of problems is c++ best at solving?

Complicated ones. The more broadly defined the problem, the more
advantage you get from using C++.

In D&E, Stroustrup says C++ never was intended to be "best" at any
particular task. However, it should be at least second-best at almost
anything. For string manipulation, you might want a particular
scripting language, e.g. Perl.


Are you considering expressiveness or performance?

Expressiveness, assuming performance to be roughly equal.

Quote:
I don't know why C++ would score less in string manipulation performance
than Perl would...

Then you don't really know Perl. Smile Seriously, as the quality of C++
regex libraries improves, they certainly have the potential to become
faster than Perl. For the time being, though, I'm not sure. It would
be difficult to right code optimized for pattern-searching the way Perl is.

Quote:
For frequent calculations involving
large arrays of numbers, Fortran may be your first choice. However, if
you have to tackle a problem that involves both string manipulation and
vector mathematics, I don't know of a more appropriate language than C++.

-Jeff


Microsoft Visual Basic tends to be better!




(I hope it is realised that I am kidding)

You almost gave me a heart-attack. I was about to go on a rant the
likes of which have not been seen in many a year.

-Jeff


Back to top
Jeff Schwab
Guest





PostPosted: Mon Dec 29, 2003 8:08 pm    Post subject: Re: What kind of problems is c++ best at solving? Reply with quote

Jeff Schwab wrote:

Quote:
It would be difficult to right code
...


:(

*Write* code.


Back to top
Ray Gardener
Guest





PostPosted: Tue Dec 30, 2003 6:01 am    Post subject: Re: What kind of problems is c++ best at solving? Reply with quote

I believe Stroustrup said that C++ was more suited
(than C, anyway) for systems programming, or
for programming "in the large".

fwiw, I have certainly found that to be the case
in my own experience transitioning from C to C++.

Ray


"nb" <nb (AT) ned (DOT) net> wrote

Quote:
What kind of problems is c++ best at solving?



Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.