doublylinkedlist
sc
doublylinkedlist | sc | |
---|---|---|
1 | 17 | |
1 | 2,168 | |
- | - | |
5.3 | 6.3 | |
about 1 year ago | about 1 month ago | |
C | C | |
GNU Lesser General Public License v3.0 only | BSD 3-clause "New" or "Revised" License |
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.
doublylinkedlist
-
Constructive criticism about my doubly linked list implementation in C.
Hello r/cprogramming. I recently wrote an implementation of a doubly linked list in pure C and i'd need someone to sort of review it and bring constructive criticism about it. The implementation is functionning but i'm not sure whether i'm doing everything right or wrong. The source is at https://github.com/Solirs/doublylinkedlist. main.c contains driver code to test it doublylinkedlist.c contains the main source of all functions doublylinkedlist.h is simply a header to include in order to use the implementation, it also contains the structs. Info about how to build and test is in the README. I'm aware of the fact it lacks some functions that could be useful.
sc
- A simple hash table in C
- Advice for bigger c projects?
- sc - Common libraries and data structures for C
-
Hacker News top posts: May 17, 2022
Common libraries and data structures for C\ (107 comments)
-
Common libraries and data structures for C
Can someone tell me what is this line from sc_signal.c:247 in sc/signal/
If the way it is used requires the user to break the abstraction/encapsulation and manually buffer some fields in order not to break the data structure and leak memory, I would call that a bug.
There is one use of sc_array_clear() in the test code [1] which really makes it look as if it is being used in a way that I think (again, I haven't single-stepped this code, only read it) leaks memory.
I agree on the pain of everything being macros, it's more pain than it's worth I think and will likely lead to code duplication (and more pain in debugging, probably).
I would even go so far as to think that this kind of single-file design, where each file is independent of the others, makes it harder and more annoying to implement more complicated data structures.
[1]: https://github.com/tezc/sc/blob/master/array/array_test.c#L3...
-
Uthash – C macros for hash tables and more
https://github.com/tezc/sc/tree/master/map
For those who are interested in faster hashmaps, I tried bunch of hashmaps and this one performs better than others. This is for C. Maybe C++ has better hashmaps.
What are some alternatives?
HFT-Orderbook - Limit Order Book for high-frequency trading (HFT), as described by WK Selph, implemented in Python3 and C
frr - The FRRouting Protocol Suite
updog - Updog is a chat app in c
wazero - wazero: the zero dependency WebAssembly runtime for Go developers
MinecraftC - A Raytraced Minecraft Classic 0.0.30a port to C
chibicc - A small C compiler
C - Collection of various algorithms in mathematics, machine learning, computer science, physics, etc implemented in C for educational purposes.
stage0 - A set of minimal dependency bootstrap binaries
Fortress-of-Solitude - This Library has resources to solve common data structure algorithm problems like a Doubly linked list, Generic trees, Queue, Stack, and other algorithms. Each lib has an option to carry your custom data in elements. Custom data in detail, other fantastic resources.
pottery - Pottery - A container and algorithm template library in C
ll - Generic C99 Singly & Doubly Linked List Implementation with OOP, ranges, custom loops and more.
gcc