What kind of problems is c++ best at solving? 7 1451
nb wrote: What kind of problems is c++ best at solving?
Problems in the computer domain.
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. 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
"nb" <nb@ned.net> schreef in bericht
news:64******** *************** *********@4ax.c om... What kind of problems is c++ best at solving?
The ones that make you go oooooh
"Jeff Schwab" <je******@comca st.net> schreef in bericht
news:kt******** ************@co mcast.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?
I don't know why C++ would score less in string manipulation performance
than Perl would...
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)
Wouter Lievens wrote: "Jeff Schwab" <je******@comca st.net> schreef in bericht news:kt******** ************@co mcast.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.
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. 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
Jeff Schwab wrote: It would be difficult to right code
...
:(
*Write* code.
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@ned.net> wrote in message
news:64******** *************** *********@4ax.c om... What kind of problems is c++ best at solving? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: nib |
last post by:
What kind of problems is visual basic best at solving?
|
by: nib |
last post by:
What kind of problems is Java best at solving?
|
by: nb |
last post by:
What kind of problems is Perl best at solving?
|
by: Sarah Tanembaum |
last post by:
Beside its an opensource and supported by community, what's the fundamental
differences between PostgreSQL and those high-price commercial database (and
some are bloated such as Oracle) from software giant such as Microsoft SQL
Server, Oracle, and Sybase?
Is PostgreSQL reliable enough to be used for high-end commercial
application? Thanks
|
by: nib |
last post by:
What kind of problems is c best at solving?
| |
by: nb |
last post by:
What kind of problems is c# best at solving?
|
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 paper written on this
subject.
On the Expressive Power of Programming Languages, by Matthias
Felleisen, 1990.
http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |