Live data from Hacker News

Ask HN: What open source project, in your opinion, has the highest code quality?

news.ycombinator.com

161–170 of 294 posts

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#162
post #27

Strictly talking about code quality, I will nominate RCP100, which is a small, virtually unknown, now-abandoned routing software written in C [0]. I started programming with C way back in the 90s, and this is one of only two projects I can recall being immediately struck by the beauty of the code (Redis being the other). I know almost nothing about the author but he seems not to want to be known by name. You can brow…

Maybe you just send the guys an email ;)

I actually did send fan mail to the author, heh, thinly-disguised as a courtesy to let them know that I mirrored their project on Github.

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#164
post #158

Earlier quoted context omitted.

Depends on the design goals. If you want secure code, you'll make it readable. Here's true(1): : A single "noop" in a 755 file. A C true would be: https://cvsweb.openbsd.org/src/usr.bin/true/true.c?rev=1.1&c... Here's a much faster true(1) if you need it: https://github.com/coreutils/coreutils/blob/master/src/true....

How is the coreutils true faster? I would expect the openbsd true to be the fastest, it doesn't need to spawn a subshell and it doesn't do more than the posix specification requires (afaik --help/--version should be ignored).

Experience shows it's faster. It's just weird, but it's like that.

  time { for i in $(seq 1 10000); do /path/to/true; done; }

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#165

Earlier quoted context omitted.

SQlite is very high quality software, but they use DO-178b "inspired" testing process. As far as I know they don't have version of software that is or can be used in safety critical parts despite their boasting. They say in their site that: > Airbus confirms that SQLite is being used in the flight software for the A350 XWB family of aircraft. Flight software does not imply safety critical parts of avionics. It can be…

Yeah DO-178B gives several levels for software from DALA (highest) to DALE (lowest). If DALA software fails the results are catastrophic if DALE fails there is no effect on the aircraft. Since DALE is usually just test equipment and such they might be at a DALD level. So still requires a lot of testing but not nearly to the level that DALA requires. https://en.wikipedia.org/wiki/DO-178B

I think it's possible that parts of SQLite, for example file format in read only mode and few constant queries are certified as part of some safety critical software.

Hipp's Hwaci consulting company would probably help to do the work, but it has no relation to the SQLite as a library.

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#166
I'd like to suggest;

1. Don't simply list projects.

2. Give some notion of why you're nominating code.

3. A sense of what you consider to be quality.

Enough to spark discussion, inquiry, or comparison. Doesn't have to be much.

This is rudimentay. But affords purchase; https://news.ycombinator.com/item?id=18037815

This does not: https://news.ycombinator.com/item?id=18038047

(Both reference the same project.)

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#167

Earlier quoted context omitted.

Shouldn’t good performance be one of the goals of good code?

Depends on the design goals. If you want secure code, you'll make it readable. Here's true(1): : A single "noop" in a 755 file. A C true would be: https://cvsweb.openbsd.org/src/usr.bin/true/true.c?rev=1.1&c... Here's a much faster true(1) if you need it: https://github.com/coreutils/coreutils/blob/master/src/true....

Is the gnu-coreutils true much faster? I have a hard time seeing how return 0 can be so slow.

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#168
Actually, I think early versions (like from pre-1.0 through maybe 1.5 or so) of Docker had some very high quality code and was also very pleasing to look at. It was very clean and super approachable and readable, and I felt sort of like how the NetBSD commenter felt as described in their comment.

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#169
post #146

Its older than some HN posters, but the GPLed DOOM source code was one I liked. The performance reached by the game was considered impossible until Carmack did show us otherwise. So I expected lots of ASM and weird hacks, especially as compiler optimization wasnt as good as it is today. Surprise, surprise, the thing was easy to read, easy to get going, easy to port, reasonablye documented . It has shown me what a goo…

These 666 forks can't be a coincidence, right?

667

+1

Re: Ask HN: What open source project, in your opinion, has the highest code quality?

#170

Earlier quoted context omitted.

And all that is public domain: https://www.sqlite.org/copyright.html

Not all of the test suite is public domain. That's how the authors maintain a monopoly on improvements to the code.

As a point of information, I wasn't using monopoly in a particularly pejorative sense, but more just to explain the situation. Feel free to replace with a less loaded word in your head.
Post reply on HN