 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
nb Guest
|
Posted: Mon Dec 29, 2003 6:31 pm Post subject: What kind of problems is c++ best at solving? |
|
|
What kind of problems is c++ best at solving?
|
|
| Back to top |
|
 |
Rolf Magnus Guest
|
Posted: Mon Dec 29, 2003 6:50 pm Post subject: Re: What kind of problems is c++ best at solving? |
|
|
nb wrote:
| Quote: | What kind of problems is c++ best at solving?
|
Problems in the computer domain.
|
|
| Back to top |
|
 |
Jeff Schwab Guest
|
Posted: Mon Dec 29, 2003 7:04 pm Post subject: Re: What kind of problems is c++ best at solving? |
|
|
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
|
Posted: Mon Dec 29, 2003 7:57 pm Post subject: Re: What kind of problems is c++ best at solving? |
|
|
"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
|
Posted: Mon Dec 29, 2003 7:59 pm Post subject: Re: What kind of problems is c++ best at solving? |
|
|
"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
|
Posted: Mon Dec 29, 2003 8:07 pm Post subject: Re: What kind of problems is c++ best at solving? |
|
|
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. 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
|
Posted: Mon Dec 29, 2003 8:08 pm Post subject: Re: What kind of problems is c++ best at solving? |
|
|
Jeff Schwab wrote:
| Quote: | It would be difficult to right code
... |
:(
*Write* code.
|
|
| Back to top |
|
 |
Ray Gardener Guest
|
Posted: Tue Dec 30, 2003 6:01 am Post subject: Re: What kind of problems is c++ best at solving? |
|
|
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 |
|
 |
|
|
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
|
|