Why the Programming Language C Is Obsolete

Question: What is the difference between C and C++?
Bjarne Stroustrup:  C has the basic mechanisms for expressing computations.  It has iterations, it has data types, it has functions and that’s it.  It doesn’t get into the game of expressing abstractions.  So if I want a matrix in C, I would have to say, I want an array and then I want a whole bunch of arrays and when I want to get the third element I have to program my way down to the third element of the fourth row or something like that.  

In C++ you can define something, call it a matrix, you define a subscript operator. If you don’t want rectangular matrixes you can get pentadiagonal matrices, triangular matrices that’s the kind of stuff that people... the expert in that field are interested in.  And you build that set of concepts and then you program it directly.  It’s easier to program, it’s easier to debug and sometimes it’s even easier to optimize for performance when you are expressing the notions at the higher level, at the level where an expert in the field operates, rather than trying to have the expert in the field, say the physicist, also be an expert in dealing with the hardware, with the computer.  There are fields still where you have to have a physicist and a computer scientist to get the work done, but we would like to minimize those because the skill sets are not the same.  So you want to lift from the hardware towards the human level.  

Question:
Is C obsolete?

Bjarne Stroustrup: This is somewhat controversial.  I think it is obsolete.  I think the languages should have been merged into one, so that C would have been a subset of C++ instead of nearly a subset of C++. And then people could have used whatever parts of the C++ tool set they needed.  As it is now, there are still enough incompatibilities that you have to remember which language you’re writing in, and I don’t think that is necessary.  It appears to be a historical necessity, but it is not a technical necessity.  

I’ve argued for compatibility, very strong compatibility, all the time.  I mean, I started working on C++ three doors down from Dennis Ritchie and we were talking every day.  The competition and tension that has been between C and C++ over the decades certainly didn’t come from home.  

Dennis Ritchie wrote that first book that Brian Carnahan, now I’ll have dinner with Brian next week.  We’re still very good friends as we’ve always been, but sometimes the programmers of the languages don’t quite see it that way.  It should have been one language.

Recorded August 12, 2010

Interviewed by Max Miller

C should have been integrated as a subset of C++, says Stroustrup.

A brief history of human dignity

What is human dignity? Here's a primer, told through 200 years of great essays, lectures, and novels.

Credit: Benjavisa Ruangvaree / AdobeStock
Sponsored by the Institute for Humane Studies
  • Human dignity means that each of our lives have an unimpeachable value simply because we are human, and therefore we are deserving of a baseline level of respect.
  • That baseline requires more than the absence of violence, discrimination, and authoritarianism. It means giving individuals the freedom to pursue their own happiness and purpose.
  • We look at incredible writings from the last 200 years that illustrate the push for human dignity in regards to slavery, equality, communism, free speech and education.
Keep reading Show less

​'The time is now' for cryptocurrencies, PayPal CEO says

Is Bitcoin akin to 'digital gold'?

Technology & Innovation
  • In October, PayPal announced that it would begin allowing users to buy, sell, and hold cryptocurrencies.
  • Other major fintech companies—Square, Fidelity, SoFi—have also recently begun investing heavily in cryptocurrencies.
  • While prices are volatile, many investors believe cryptocurrencies are a relatively safe bet because blockchain technology will prove itself over the long term.
Keep reading Show less

"Clean meat" approved for sale in Singapore

Singapore has approved the sale of a lab-grown meat product in an effort to secure its food supplies against disease and climate change.

Credit: Adobe Stock / Big Think
Politics & Current Affairs
  • Singapore has become the first country to approve the sale of a lab-grown meat product.
  • Eat Just, the company behind the product, will have a small-scale commercial launch of its chicken bites.
  • So-called "clean meats" may reduce our reliance on livestock farming, which kills billions of animals worldwide every year.
  • Keep reading Show less

    Scientists find the "magic number" that links forces of the universe

    Researchers dramatically improve the accuracy of a number that connects fundamental forces.

    Credit: Adobe Stock / Big Think
    Surprising Science
    • A team of physicists carried out experiments to determine the precise value of the fine-structure constant.
    • This pure number describes the strength of the electromagnetic forces between elementary particles.
    • The scientists improved the accuracy of this measurement by 2.5 times.
    Keep reading Show less

    Study suggests most "dark web" users are not engaging in illicit activities

    A new study finds that some people just want privacy.

    Photo by Soumil Kumar from Pexels
    Technology & Innovation
    • Despite its reputation as a tool for criminals, only a small percentage of Tor users were actually going to the dark web.
    • The rate was higher in free countries and lower in countries with censored internet access.
    • The findings are controversial, and may be limited by their methodology to be general assumptions.
    Keep reading Show less
    Quantcast