snopes.com  

Go Back   snopes.com > Urban Legends > Computers

Reply
 
Thread Tools Display Modes
  #1  
Old 31 May 2009, 05:23 PM
snopes's Avatar
snopes snopes is offline
 
Join Date: 18 February 2000
Location: California
Posts: 75,151
Teacher C

Comment: Ever since I was a freshman Computer Science major in college
many years ago, I have heard the rumor that the hugely popular C
programming language got its name due to the fact that one of the founders
of the language (either Kernaugh or Ritchie) submitted it as a research
project in college. Due to certain shortcomings and eccentricies of the
language, the professor gave the research project a grade of "C" and that
was the reason for the name.

For years I have heard some who swear the story is true, others who insist
it is apocryphal, and most who have no idea one way or the other.
Reply With Quote
  #2  
Old 31 May 2009, 05:33 PM
Amigone201's Avatar
Amigone201 Amigone201 is offline
 
Join Date: 11 March 2005
Location: Islip, NY
Posts: 4,526
Default

According to Wikipedia, C was so named because it derived a lot of its code from an earlier programming language, B. Dennis Richie completed it in 1973, six years after he started working at Bell Labs. A little number-playing indicates that if Richie went to college right after high school, he probably started in 1959. If he didn't have any delays, he would have graduated in 1963.

I don't see any way this legend could have merit.
__________________
The blog is back!
Reply With Quote
  #3  
Old 31 May 2009, 06:21 PM
Richard W's Avatar
Richard W Richard W is offline
 
Join Date: 19 February 2000
Location: Ipswich, UK
Posts: 15,280
Default

My nearest C textbook (Barclay) says almost the same thing:

Quote:
It was designed by Dennis Ritchie of Bell Laboratories and implemented there in 1972 on a PDP-11. ... C evolved from the programming languages B and BCPL.
I've never heard anybody tell the story above.
Reply With Quote
  #4  
Old 31 May 2009, 06:41 PM
diddy's Avatar
diddy diddy is offline
 
Join Date: 07 March 2004
Location: Plymouth, MN
Posts: 6,692
Default

Quote:
Originally Posted by Richard W View Post
I've never heard anybody tell the story above.
Neither have I - and I took several computer science courses in college (that was initial major until I realized that I sucked at programming)
__________________
Hi ho! Kermit the frog here!
Reply With Quote
  #5  
Old 31 May 2009, 06:43 PM
Astra's Avatar
Astra Astra is offline
 
Join Date: 29 September 2001
Location: Indianapolis, IN
Posts: 7,490
Default

Same as the others - former computer science major, never heard the story in the OP, only the explanation that it followed B and BCPL.
Reply With Quote
  #6  
Old 31 May 2009, 08:08 PM
Singing in the Drizzle Singing in the Drizzle is offline
 
Join Date: 24 November 2005
Location: Bellingham, WA
Posts: 2,241
Default

Quote:
Originally Posted by Astra View Post
Same as the others - former computer science major, never heard the story in the OP, only the explanation that it followed B and BCPL.
This explains a lot. I first learned assemble language on a PDP-11, the version was referred to as a macro assembler. The difference was that you could write a assemble language program/function give it a name and variable to pass and then store it library for later use. Then if you need that program/function while writing an assembly language program, you just added a line that called it from the library and passed it the variables it needed. When I first saw C it look very much like the macro assembler programs I was writing in class. The only difference is some to the time to write a library filled with useful programs and functions. It even looked like you could easy write your own program/function in assembly language and add it to the library.

I have never programed it C language only looked over the code and started reading the books for a class that was canceled. Then my career took a change of direction and I never had a need to learn programing again or time.
__________________
"If your going to have delusions, you might as well go for the really satisfying ones." Ranger Marcus Cole, Babylon 5
Reply With Quote
  #7  
Old 31 May 2009, 08:52 PM
Il-Mari Il-Mari is offline
 
Join Date: 27 January 2001
Location: Helsinki, Finland
Posts: 2,106
Default

Just out of curiosity, would creating a new programming language be a reasonable 'research project in college'?

It seems a bit too ambitious, though I don't really know about the field. Would it maybe make more sense if they created something like a proposal for a new language, with some features listed out along with benefits and disadvantages compared to earlier systems, more like the origin of this legend:

http://www.snopes.com/business/origins/fedex.asp

- Il-Mari
Reply With Quote
  #8  
Old 31 May 2009, 08:57 PM
Astra's Avatar
Astra Astra is offline
 
Join Date: 29 September 2001
Location: Indianapolis, IN
Posts: 7,490
Default

I would say it would depend on how complex the language is. Defining the rules for syntax and creating a small instruction set would definitely be possible. Creating a language equal in complexity to existing ones that have had years to expand and evolve, not likely. Sort of the difference between creating an equivalent to pig latin compared to creating the equivalent of modern English.
Reply With Quote
  #9  
Old 31 May 2009, 09:01 PM
htonl's Avatar
htonl htonl is offline
 
Join Date: 20 July 2006
Location: Cape Town, South Africa
Posts: 735
Computer

Quote:
Originally Posted by Il-Mari View Post
Just out of curiosity, would creating a new programming language be a reasonable 'research project in college'?
It depends. I don't think that just creating a new language on its own would be a common research project; but you might create a language as a demonstration of some result or some new concept you've thought up.

As to the size of the project, in the Computer Science degree at my university we spent the last semester (so about four months) on a large research project. Certainly it's feasible to create a new programming language as part of such a project. One of my friends did exactly that; it was to demonstrate the feasibility of a particular technique.

ETA: I agree with Astra that it would likely be a "toy" language in such a project. Admittedly, C was a pretty simple language when Ritchie first came up with it. (Not that I'm suggesting he did do it at college; it's pretty clear he came up with it at Bell Labs when they were creating UNIX.)
__________________
"Many that live deserve death. And some that die deserve life. Can you give it to them? Then do not be too eager to deal out death in judgement. For even the very wise cannot see all ends."
- Gandalf, in LotR I.2
Reply With Quote
  #10  
Old 31 May 2009, 11:20 PM
jimmy101_again jimmy101_again is offline
 
Join Date: 29 December 2005
Location: Greenwood, IN
Posts: 2,159
Default

Quote:
Originally Posted by Il-Mari View Post
Just out of curiosity, would creating a new programming language be a reasonable 'research project in college'?

It seems a bit too ambitious, though I don't really know about the field.
You would be surprised just how easily a good programmer could do it. IIRC, that's pretty much how Perl got started. One guy wanting to do one particular type of problem and finding that it's a PITA in existing languages.

C is actually an incredibly simple language. A computer science grad student really shouldn't have any trouble creating a language like C. Heck, a talented undergrad should be able to do it. Folks often forget that the "language" is just the syntax and structure. After the language is written there is often thousands, perhaps millions, of person-hours going into creating the various libraries the language uses. C is small and simple. A useable version of C requires libraries that are much bigger and more complex than the language itself.
Reply With Quote
  #11  
Old 01 June 2009, 07:16 AM
Troberg's Avatar
Troberg Troberg is offline
 
 
Join Date: 04 November 2005
Location: Borlänge, Sweden
Posts: 9,234
Default

Quote:
Originally Posted by Il-Mari View Post
Just out of curiosity, would creating a new programming language be a reasonable 'research project in college'?
I did it at university, as a part of a project that also involved crating a simple FPGA micro processor. I've also done some script languages later. None of them as popular as C, though...

Really, making a programming language isn't very hard, if you grasp the basic principles. The next language I make will probably be based on RPN (Reverse Polish Notation), as it makes the syntax much clearer and the parsing ridiculously simple. Once you get used to RPN, you don't understand whatever got into the heads of people to make them use any other notation, it's simply superior.

Quote:
Originally Posted by jimmy101_again View Post
You would be surprised just how easily a good programmer could do it.
Exactly, and most good programmers has done it at some point in their career.

Quote:
Originally Posted by jimmy101_again View Post
C is actually an incredibly simple language. A computer science grad student really shouldn't have any trouble creating a language like C. Heck, a talented undergrad should be able to do it. Folks often forget that the "language" is just the syntax and structure. After the language is written there is often thousands, perhaps millions, of person-hours going into creating the various libraries the language uses. C is small and simple. A useable version of C requires libraries that are much bigger and more complex than the language itself.
Once again, exactly. The language is just the basic framework that controls execution, manages memory (except that in C, it doesn't manage memory) and some other book keeping tasks. Everything else is libraries. Even better, when you make a language, it's perfectly possible to use libraries designed for another language, at least as a way to get started.
__________________
/Troberg
Reply With Quote
  #12  
Old 01 June 2009, 08:07 AM
ganzfeld's Avatar
ganzfeld ganzfeld is offline
 
Join Date: 05 September 2005
Location: Kyoto, Japan
Posts: 10,193
Teacher

Brin and Page got a googol out of googol points on their project. That's why they named their company... never mind.
Reply With Quote
  #13  
Old 01 June 2009, 08:24 AM
Floater's Avatar
Floater Floater is offline
 
Join Date: 24 February 2000
Location: Stockholm, Sweden
Posts: 4,313
Computer

Bah! Everyone knows that C, together with Unix, is just a very elaborate hoax.
__________________
“If you can keep your head when all about you are losing theirs, it's just possible you haven't grasped the situation. ” / Jean Kerr
Reply With Quote
  #14  
Old 01 June 2009, 08:42 AM
Der Induktionator's Avatar
Der Induktionator Der Induktionator is offline
 
Join Date: 18 April 2005
Location: Luzern, Switzerland
Posts: 679
Default

Certainly untrue. Ritchie (Who created of the language with Ken Thompson at Bell labs) studied math and physics. Kernighan (who co-authored K&R) studied physics and electrical engineering.

So C is a language created by mathematicians, physicists and engineers, none of which would have such a college research project. Not by CS majors.

Last edited by Der Induktionator; 01 June 2009 at 08:46 AM. Reason: (
Reply With Quote
  #15  
Old 01 June 2009, 09:55 AM
ganzfeld's Avatar
ganzfeld ganzfeld is offline
 
Join Date: 05 September 2005
Location: Kyoto, Japan
Posts: 10,193
Psychic

Quote:
Originally Posted by Der Induktionator View Post
Certainly untrue. Ritchie (Who created of the language with Ken Thompson at Bell labs) studied math and physics. Kernighan (who co-authored K&R) studied physics and electrical engineering.

So C is a language created by mathematicians, physicists and engineers, none of which would have such a college research project. Not by CS majors.
Well, I don't know about that. A lot of work done in computer science at the time was done under a different academic umbrella. Even many of the best known schools in the field didn't have a department by that name until around the time C and Unix emerged and many more didn't until much later. So there really were very few "CS majors" at that time. (Far fewer when they were in college?)
Reply With Quote
  #16  
Old 01 June 2009, 12:27 PM
Der Induktionator's Avatar
Der Induktionator Der Induktionator is offline
 
Join Date: 18 April 2005
Location: Luzern, Switzerland
Posts: 679
Default

Quote:
Originally Posted by ganzfeld View Post
Well, I don't know about that....
An article by Dennis Ritchie himself describes the origin of the language.

Of all people, I think he would know the origin of the language that he created, and can be counted on as a reliable source. His own article references a large number of further sources as the basis of his work.
Reply With Quote
  #17  
Old 01 June 2009, 12:50 PM
ganzfeld's Avatar
ganzfeld ganzfeld is offline
 
Join Date: 05 September 2005
Location: Kyoto, Japan
Posts: 10,193
Computer

Quote:
Originally Posted by Der Induktionator View Post
An article by Dennis Ritchie himself describes the origin of the language.
Yes, I do know about that. (And if I didn't I could just read the thread.)

My "I don't know about that" referred to your objection that he and Kernighan weren't "CS majors". Most computer science majors at the time majored in two of several subjects K&R majored in: math and electrical engineering. Few places even offered a degree in "computer science". So it doesn't make any sense to say, "They couldn't have done it in college; they weren't even CS majors." That's all.
Reply With Quote
  #18  
Old 01 June 2009, 12:51 PM
Troberg's Avatar
Troberg Troberg is offline
 
 
Join Date: 04 November 2005
Location: Borlänge, Sweden
Posts: 9,234
Default

Quote:
Originally Posted by Der Induktionator View Post
An article by Dennis Ritchie himself describes the origin of the language.

Of all people, I think he would know the origin of the language that he created, and can be counted on as a reliable source. His own article references a large number of further sources as the basis of his work.
On the other hand, over the time, he has given various stories on that subject, including that it started as a joke, so I think we should take it with a pinch of salt.

But one can't deny that he has an impressive beard. :-E <impressive beard smiley
__________________
/Troberg
Reply With Quote
  #19  
Old 01 June 2009, 01:34 PM
Der Induktionator's Avatar
Der Induktionator Der Induktionator is offline
 
Join Date: 18 April 2005
Location: Luzern, Switzerland
Posts: 679
Default

Sorry, but I refuse to continue this into an argument.
Reply With Quote
  #20  
Old 01 June 2009, 03:04 PM
ganzfeld's Avatar
ganzfeld ganzfeld is offline
 
Join Date: 05 September 2005
Location: Kyoto, Japan
Posts: 10,193
Default

Quote:
Originally Posted by Der Induktionator View Post
Sorry, but I refuse to continue this into an argument.
I don't understand why there would be one. I just want to point out that it's not true that they weren't computer science students.

Princeton, where Kernighan studied computer science, didn't have a computer science major until at least the mid 70's (and didn't have a computer science department until the mid 80's). Ritchie studied computer science at Harvard. They offered degrees in computer science under Applied Mathematics and other departments in the Division of Engineering and Applied Physics. (It is now the School of Engineering and Applied Sciences, and there is a Computer Science Department.) C was created by computer scientists who had been computer scientists since their college days. Their degrees were in things that don't sound like "computer science" simply because that phrase was only just beginning to emerge as its own "major" (but not at their schools yet).
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:56 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.