News for hackers. Stuff that matters.
Re:How can C Programs be so Reliable? by rkangel on Thursday September 22, 2011 @07:03AM (#3025610)
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.
Re:How can C Programs be so Reliable? by davvid on Thursday September 22, 2011 @06:13PM (#3028030)
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