- https://netsurf-browser.org/
- https://source.netsurf-browser.org/netsurf.git/tree/
Including the sub projects, for instance:
- https://source.netsurf-browser.org/libcss.git/tree/
- https://source.netsurf-browser.org/libdom.git/tree/
It feels immediately obvious and understandable, which is quite impressive for a browser. Everything is well documented, well separated, the code is clean and seems simple, functions are small, etc. I am really impressed. I'd want to work on such code. I have never worked on it though, and I am not connected in any way to this project.
https://github.com/sqlite/sqlite
The tests in particular are very impressive.
Some other notable C codebases: Redis, LuaJIT, FreeBSD, Memcached -->
https://github.com/antirez/redis
https://github.com/LuaDist/luajit
Varnish --> https://github.com/varnishcache/varnish-cache
Linux Kernel --> https://github.com/torvalds/linux
also plan9, its nice to read some kernel code that hasn't been tortured by practical requirements for decades.
>To read great C code will help tremendously.
But then he just gives examples of games I don't know and am not really interested in. Anyone know some non-game C that is, I suppose, well-known and wonderfully-written?
Also, am learning about writing APIs, any good books or talks about that people could recommend, or examples of particularly good ones in C? (I'm particularly interested in maths/graphics-type stuff.) Thanks!