ctl
C Template Library (by Equationist)
sort
Sorting routine implementations in "template" C (by swenson)
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ctl
Posts with mentions or reviews of ctl.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2020-12-29.
-
C Template Library
I recall a few years back doing something like this implementing a binary heap just as a hobby project (https://github.com/Equationist/ctl/blob/master/pqueue.h). I was curious to see how unoptimized it was vis a vis the STL, and ran compiled equivalent test code for both my priority queue and the STL's C++ implementation, with just integers. I was kind of shocked to find that my implementation was like 30% faster when both were compiled at -O3 levels. Seeing this backport I guess there isn't anything fancy in the STL implementations, so it's less surprising that my naive implementation could be just as fast (or happen to be faster).
sort
Posts with mentions or reviews of sort.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-06.
-
Qsort.h – Quicksort as a C macro (2019)
Along the same lines, I use Christopher Swenson's sort.h at https://github.com/swenson/sort/
You get the choice of many sorting routines, including:
-
C Template Library
FWIW, for sorting in a template-like C package I use https://github.com/swenson/sort/ .
What are some alternatives?
When comparing ctl and sort you can also consider the following projects:
frr - The FRRouting Protocol Suite
src - Read-only git conversion of OpenBSD's official CVS src repository. Pull requests not accepted - send diffs to the tech@ mailing list.
notes - Assorted notes
ctl - The C Template Library
nusort - Japanese direct-to-kanji input system with 2-key codes
nlutils - Nitrogen Logic C Utility Library
Klib - A standalone and lightweight C library