Earlier quoted context omitted.
timsort is full of win, and such a clever approach.
I'm sorry, but Timsort is a bit of a hack. It's a "this seems to work well" algorithm, and it shows. It took 13 years until its claimed running time was finally proven in 2015. The four (originally three) rules for merging sequences from the stack are rather arbitrary. Multiple issues were found well after it was already widely deployed. Recently, it was also shown that Timsort doesn't optimally use the information i…
Ask HN: What open source project, in your opinion, has the highest code quality?
291–294 of 294 posts
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#292Anyhow, while we await the publication of that book, John has been working at bloomberg. some of the code written there has been published to github[1]. He's also done a five hour lecture series [2] available on safari-online (paid service) that cover the topics of his book, and introduce the open source bloomberg repo as an example of code written in that style.
I can't offer you a review as I've just found this all myself, but I'll be eagerly studying it along with some of the other items mentioned here.
[1] https://github.com/bloomberg/bde [2]https://www.safaribooksonline.com/videos/large-scale-c-livel...
Re: Ask HN: What open source project, in your opinion, has the highest code quality?
#293Lua. It's has everything a good C project should have: small size, simple build system, portability by using the simplest constructs and not ifdefs, a clear and well define scope that none dares trespassing.