Ask HN: Which Opens Source Software have the sexiest code?

8 points by milkoolong 3 months ago | 10 comments
I heard reading well-written code can improve my skills. Instead of reading top-rated projects on GitHub, which I do, I thought to ask the community to share their favorite OSS they believe to have examplary code.
  • 0xCE0 3 months ago
    Many Freedesktop-projects have very beautiful/elegant/professional/clear C code, e.g.: https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/amd...

    Also Blender, Chrome, FFmpeg, LLVM are examples for large and long scale projects codebases, that are almost like old vs. new brain, meaning there are old low-level codelines and on top of those cumulates all kinds of abstractions.

    Geohot's tinygrad is great example of booting up codebase from scratch: set conscious goal for small max lines of code (e.g. 1k), then code the next state of working implementation, then clean and refactor it to cut the fat off. It feels that code wants to shape to specific form and size depending on goal.

    • markus_zhang 3 months ago
      Linux? I don't understand anything about it so it's sexy. Like girls, I never understood them.
      • worldsavior 3 months ago
        You and me same.
        • markus_zhang 2 months ago
          Man, girls are the biggest mystery in the world. I'm gonna wait until the next life to figure them out. Cheers!
      • palata 3 months ago
        In C++, I find Cap'n Proto very impressive: https://github.com/capnproto/capnproto
        • bjourne 3 months ago
          Anything created by the Pallets team: https://github.com/pallets
          • BobbyTables2 3 months ago
            All OSS code is exemplary.

            Of course, some of it fits one meaning of the word and some fits the other meaning.

            • cpach 3 months ago
              Is well-written code “sexy”? I’m not so sure about that.
              • hiAndrewQuinn 3 months ago
                OpenBSD
                • jlcases 3 months ago
                  Code readability is directly related to the quality of its contextual documentation. I've been experimenting with documentation following MECE principles, which has greatly improved the maintainability of my projects.
                  • sexyman48 3 months ago
                    [dead]