Re:How can C Programs be so Reliable?
by tolmasky on Thursday September 22, 2011 @06:09AM
(#3025510)
Obviously I have no hard data on the reliability of new C programs, but things like git (which I at least find pretty reliable) may serve as counter point to this theory.
[ Parent
| on HN ]
Don't forget that only the core of Git is C, the rest is big pile of shell scripts, and (I believe) perl.
Re:How can C Programs be so Reliable?
by burgerbrain on Thursday September 22, 2011 @03:36PM
(#3027450)
This is not particularly the case. Things with git are initially implemented as shell scripts, as a way of "just getting it done", but are later migrated to C. These days a very large portion of Git is straight C.
Much of the early git scripts (e.g. git-pull) have been rewritten in C. Performance is one reason. Helping out win32 (where fork+exec is slow) is another.
$ ls -1 git-*.sh | wc -l
25
$ ls -1 git-*.perl | wc -l
9
Compare this to the built-in commands: $ ls -1 builtin/*.c | wc -l
92
or all the C files: $ git ls-files '*.c' | wc -l
306