News for hackers. Stuff that matters.
Re:Brian Kernighan on C [video] by kabdib on Tuesday August 18, 2015 @10:41PM (#10083432)
Read the V6 Unix sources. They are seriously pretty. A file system in maybe a thousand lines of code. A scheduler and swap manager, a TTY layer, and device drivers with nearly no waste. You can read the code in an afternoon and understand it and make changes to it.

Even in crusty pre-ANSI C, it's very elegant stuff.

(Then I look at the Bourne shell sources and weep. It's like the author of that was in denial of everything that made C a decent language and wanted desperately to be doing something else)

Re:Brian Kernighan on C [video] by comex on Tuesday August 18, 2015 @10:52PM (#10083464)
Re:Brian Kernighan on C [video] by rdc12 on Wednesday August 19, 2015 @12:00AM (#10083615)
How would XV6 compare to V6 for code elegance? XV6 being a reimplementation, of V6 Unix with ANSI C and targeting X86 instead. But was done by different people as far as I know.