[prog] Sample implementations of UNIX utilities.

Robert J. Hansen rjhansen at inav.net
Mon Dec 23 11:08:52 EST 2002


> The GNU implementations of most utilities is much too complex for my
> purposes (teaching C).

First--no, I don't know of any simple implementations.  I imagine you'll
have a very hard time finding them.  Most production code is infamously
hairy, to handle infamously hairy problems that only exist in production
environments.

That said--if you have any discretion in what language you're teaching, have
you considered Python, Java or LISP?  C has its place, usually for hard
realtime systems or kernel hacking, but other than that... the bottleneck in
most systems nowadays is in memory/network latencies and bandwidth; we
stopped being primarily processor-bound some time ago.  Given that, it seems
only rational to move away from portable assembler language as our systems
language.  :)

A rant on C and its relevance:
http://home.earthlink.net/~cortana/c_relevance.html .  Feel free to read it
and flame me into oblivion.  :)




More information about the Programming mailing list