By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!So C++ is based off C?C++ is a general-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language, or "C with Classes". Wikipedia
Its an extension.So C++ is based off C?
If you're trying to understand what Ken Thompson was saying, he was essentially saying that for a long time, as it was being developed, C++ was relatively unstable. Whenever something new was going to be written, it just wouldn't work. Soon after, Thompson stopped testing the Language,I would try out the [C++] language [at AT&T] as it was being developed and make comments on it. It was part of the work atmosphere there. And you'd write something and then the next day it wouldn't work because the language changed. It was very unstable for a very long period of time. At some point, I said, no, no more. In an interview I said exactly that, that I didn't use it because it wouldn't stay still for two days in a row. When Stroustrup read the interview he came screaming into my room about how I was undermining him and what I said mattered and I said it was a bad language.
Very interesting! You're saying that Bjarne Stroustrup didn't release it because of his programming-experience for his Ph.D thesis? Little confused on this point. Or do you mean like these are the reasons he ended up releasing the language in 1985?C++ was a Project started by Danish Computer-Scientist, Bjarne Stroustrup, while he was working at AT&T Bell Labs in 1979. It was originally titled "C with Classes" and wouldn't be released until 1985. One of the motivational reasons was because of Stroustrup's programming-experience for his Ph.D Thesis. Another one was because Stroustrup found that the Language, Simula, had really good features for large, Software-Development practices but was slow and BCPL(Predecessor to C and Go), was fast but wasn't good enough for large Software-Development practices.
So he introduced C with Classes in 1985 because he was having difficulty understanding and or analyzing the source code of the UNIX Kernel?It was around at the time that when Stroustrup began working at Bell Labs that he was having trouble trying to analyze the Source-Code of the UNIX Kernel. And so remembering his experience from his Ph.D Thesis, he then set-out to create C++(Again, at the time, called "C with Classes"), which was based off of C because it was fast, portable and a widely-used Language at the time(And to this day, C still is fast, portable and still widely-used).
Awesome! Thank you! I'm not too good at holding the theory of programming so I'm trying to learn to keep it!So, @Malcolm. There you are. A bit of history on C++. Anyways, as for your question, while C++ was designed to be an extension to C, C++ today is essentially now it's own Language but just a part of the C-Language Family, alongside C#.
What I mean is that those are the motivational reasons for releasing the Language in 1985.I f he didn't release it then there would be no C++.Very interesting! You're saying that Bjarne Stroustrup didn't release it because of his programming-experience for his Ph.D thesis? Little confused on this point. Or do you mean like these are the reasons he ended up releasing the language in 1985?
Well, according to Wikipedia....Yeah, pretty much. The entire UNIX Kernel was first written in 1969, using Assembly(C didn't exist until 1972). Then when C was released, that's when the Kernel had been re-written in C. But mind you, this was a Kernel and Stroustrup probably didn't understand it as C was a completely new Language that he had never learned before(Unless, he did learn it in his own-time or class-time while studying for his Ph.D at Cambridge University in 1979. In 1979, C was now a few years old and only in the previous year[1978], did Brian Kernighan and Dennis Ritchie[Creator of C] release the first edition of The C Programming Language[Which today, still holds up well as a reference Book and learning Book for C]). And again, C++ was designed as an Extension to C. So, since it would be an Extension to C then other Programmers at Bell Labs at the time, if C++ ever got used in the Kernel, they'd probably be able to understand it(Mind you, at the time, C++ wasn't as big as it is now in terms of features. So it'd be similar to C but with things like Classes).So he introduced C with Classes in 1985 because he was having difficulty understanding and or analyzing the source code of the UNIX Kernel?
Okay, I understand now!What I mean is that those are the motivational reasons for releasing the Language in 1985.I f he didn't release it then there would be no C++.
Interesting! Hahaha I like a good history lesson every once in a while. Thanks for sharing @William! So are you saying that Kernel is now written in C?Well, according to Wikipedia....Yeah, pretty much. The entire UNIX Kernel was first written in 1969, using Assembly(C didn't exist until 1972). Then when C was released, that's when the Kernel had been re-written in C. But mind you, this was a Kernel and Stroustrup probably didn't understand it as C was a completely new Language that he had never learned before(Unless, he did learn it in his own-time or class-time while studying for his Ph.D at Cambridge University in 1979. In 1979, C was now a few years old and only in the previous year[1978], did Brian Kernighan and Dennis Ritchie[Creator of C] release the first edition of The C Programming Language[Which today, still holds up well as a reference Book and learning Book for C]). And again, C++ was designed as an Extension to C. So, since it would be an Extension to C then other Programmers at Bell Labs at the time, if C++ ever got used in the Kernel, they'd probably be able to understand it(Mind you, at the time, C++ wasn't as big as it is now in terms of features. So it'd be similar to C but with things like Classes).
No problem. Anyways, as for your questions....Thanks for sharing @William! So are you saying that Kernel is now written in C?
Code Forum is a community platform where coding enthusiasts can connect with other developers, engage in discussions, ask for help, and share their knowledge with a supportive community. It's a perfect place to improve your coding skills and to find a community of like-minded individuals who share your passion for coding.
We use essential cookies to make this site work, and optional cookies to enhance your experience.