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
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
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
Isn't this about the compiler optimization ?Originally Posted by CornedBee
Or probably the grammar has something to do with it's speed
Grammar...??? What the hell?Or probably the grammar has something to do with it's speed
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.
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.Isn't this about the compiler optimization ?
"The Internet treats censorship as damage and routes around it." - John Gilmore
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