Ask HN: Examples of beautiful C code?
Hey, HN,
I hardly ever read other people's code, but I'd like to start dedicating a few hours each week to studying idiomatic C. The ultimate goal is to improve my own code.
What are some codebases that are worth studying? Bonus points for open-source projects that are looking for new contributors.
(
9 comments
| 17 points
| on HN
)
http://pdos.csail.mit.edu/6.828/2011/xv6/xv6-rev6.pdf
Also the low-level GLib core library is good:
http://git.gnome.org/browse/glib/tree/glib
- https://github.com/visionmedia/luna - https://github.com/visionmedia/libcss
I believe one of the examples they gave in C was the diff algorithm from Subversion.
* Varnish