Why do we use C still?
1–10 of 22 posts
Re: Why do we use C still?
#2Re: Why do we use C still?
#3C is an adequate language (actually, more than adequate) with a large base of skilled programmers. There is a long history of successful development. And the developer base is aware of the warts that still remain in the language.
Re: Why do we use C still?
#4Re: Why do we use C still?
#5C is an adequate language (actually, more than adequate) with a large base of skilled programmers. There is a long history of successful development. And the developer base is aware of the warts that still remain in the language.
But why use C when there are other Systems programming languages like Go, C++, D, etc..
Re: Why do we use C still?
#6C is an adequate language (actually, more than adequate) with a large base of skilled programmers. There is a long history of successful development. And the developer base is aware of the warts that still remain in the language.
But why use C when there are other Systems programming languages like Go, C++, D, etc..
...a critical library has not been ported.
...a really useful language feature doesn't exist, or its implementation isn't appropriate for this application.
...a compiler bug appears and causes days to weeks of torment.
...it's difficult to deploy and distribute the result.
...there are fewer tools, debugging aids, etc.
Languages don't live in a "clean room" environment. All of these things add value even when the language itself is unsound. And then you weigh the cost of rolling new tools, fixing the compiler yourself, etc. against building on the old stuff, and the old stuff wins most of the time. Reaching the opposite conclusion is the exception, and to get there, the language usually has to carve out a niche use-case where it has the best library for a certain domain.
Re: Why do we use C still?
#7Earlier quoted context omitted.
But why use C when there are other Systems programming languages like Go, C++, D, etc..
One reason would be the massive existing codebases written in C (Linux kernel, anyone?)...
Re: Why do we use C still?
#8The bad reasons tend to be variations of developer inertia and the inability to decide which features of C++ ought to be used -- arguing against the STL isn't a good argument against C++ as a whole.
Re: Why do we use C still?
#9It seems like the one language that might replace C/C++ in many instances. My favorite feature is the incredible compile times.
Re: Why do we use C still?
#10Generally, the good reasons you'll see for using C are lack of C++ compiler availability and embedded programming. The bad reasons tend to be variations of developer inertia and the inability to decide which features of C++ ought to be used -- arguing against the STL isn't a good argument against C++ as a whole.