What makes C so popular

This is a discussion on What makes C so popular within the Tech Board forums, part of the Community Boards category; What makes C so popular, compared to other programming languages ? I mean, C has been used (and still being ...

  1. #1
    TmX
    TmX is offline
    Registered User
    Join Date
    Sep 2006
    Posts
    12

    What makes C so popular

    What makes C so popular, compared to other programming languages ?
    I mean, C has been used (and still being used) to write stuffs like OS, database engine, game, etc

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    It's fast and it's flexible.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    TmX
    TmX is offline
    Registered User
    Join Date
    Sep 2006
    Posts
    12
    Quote Originally Posted by CornedBee
    It's fast and it's flexible.
    Isn't this about the compiler optimization ?
    Or probably the grammar has something to do with it's speed

  4. #4
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Or probably the grammar has something to do with it's speed
    Grammar...??? What the hell?

    As I've said many times, I've noticed that Java, C# and VB programs are much slower (which is annoying) than C and C++ ones.
    Isn't this about the compiler optimization ?
    You see, C compilers don't need to do that much optimizing than other languages' compilers, because in C, there are no such packed functions that do millions of different things together, where more than half of them are not necessary or useless.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    C's speed comes from its bare-bones approach. It does practically nothing by itself. No memory management, no resource management of any kind in fact, no hidden costs in any code.

    This means more work for the programmer, yes, but make the language very predictable (in terms of "what will be done if I write this code?"), very flexible in what you do (you can use pretty much any memory management strategy you want) and very easy to port (no complicated runtime to get running on the new platform).
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 12-23-2008, 08:39 AM
  2. Replies: 4
    Last Post: 12-23-2008, 12:23 AM
  3. pointers, structures, and malloc
    By lugnut in forum C Programming
    Replies: 24
    Last Post: 10-09-2008, 04:52 PM
  4. Replies: 7
    Last Post: 07-27-2008, 08:25 AM
  5. doubleanti's gender poll...
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 111
    Last Post: 08-04-2002, 12:15 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21