evec
ctl
evec | ctl | |
---|---|---|
6 | 22 | |
7 | 162 | |
- | - | |
0.0 | 5.9 | |
over 3 years ago | 2 months ago | |
C | C | |
BSD 3-clause "New" or "Revised" License | MIT 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.
evec
-
C_dictionary: A simple dynamically typed and sized hashmap in C - feedback welcome
There's a few ways to address this. This library has a good explanation of one of them here.
-
help with dynamic memory.
It's a good exercise to do this for yourself, but if you're doing this more than once, you might want to look at an existing dynamic array implementation that you can just drag in to your work. There are many of these, if you google for "dynamic array" you'll find lots of implementations. Personally I quite like this one.
-
What were some of your biggest breakthroughs while learning C?
Take a look here for an example that is relatively easy to read and understand (but not the best performance): https://github.com/mgrosvenor/evec
-
How to create an array of char pointers dynamically ??
Here’s a super easy to use dynamic array (vector). It will grow to accommodate more entries so it’s “safe” from the issues you mention: https://github.com/mgrosvenor/evec
-
Vectors
There's LOTs of libraries. I wrote one: https://github.com/mgrosvenor/evec
-
A std::vector style generic dynamic array inspired by on klib's kvec and stb's streachy_buffers.
I'm curios how evec stands up with your testing. Especially with/without pedantic mode (`#define pedantic 0` vs #define pedantic 1`).
ctl
-
A header-only C implementation of C++ <algorithm>
Well, I do like mine better, which is closer to the STL, and for all containers. https://github.com/rurban/ctl/
-
A simple hash table in C
search for htable or hashtable in thousands of open source projects. only a minority has worse hashtables than this one (clisp, perl5 e.g.).
For better ones I would point to my linked list implementation: https://github.com/rurban/ctl/blob/master/ctl/unordered_set.... (because it has various security policies, nobody else has)
-
Popular Data Structure Libraries in C ?
C Container Template Library, Rurban Variant (CTL) - The page for unordered_map reads "Implementation in work still".
-
C Template Library
There is also the rurban variant variant of CTL which is more complete.
-
Better C Generics: The Extendible _Generic
The prototype of CC used this mechanism to provide a generic API for types instantiated via templates (so basically like other container libraries, but with an extendible-_Generic-based API laid over the top of the generated types). This approach has some significant advantages over the approach CC now uses, but I got a bit obsessed with eliminating the need to manually instantiate templates.
- C_dictionary: A simple dynamically typed and sized hashmap in C - feedback welcome
-
How different is C++ from C? Contrasting simple Unix SORT programs
But the most common that I know of is this one: https://github.com/tylov/STC. There's also this one mentioned above https://rurban.github.io/ctl/
- C++ containers but in C
- STL in C
-
On HASH-TABLEs performance
I'm also working on a proper one, but got sidetracked. https://github.com/rurban/ctl/blob/hmap/ctl/swisstable.h
What are some alternatives?
plutovg - Tiny 2D vector graphics library in C
rnnoise - Recurrent neural network for audio noise reduction
CC - A small, usability-oriented generic container library.
Klib - A standalone and lightweight C library
vector - A high-performance observability data pipeline.
STC - A modern, user friendly, generic, type-safe and fast C99 container library: String, Vector, Sorted and Unordered Map and Set, Deque, Forward List, Smart Pointers, Bitset and Random numbers.
roost - Proof of Concept for Eventsourced backend
LIPS - Scheme based powerful lisp interpreter in JavaScript
covid_status
nix-home-manager - Nix to manage my computing life
libc - Raw bindings to platform APIs for Rust
ctl - The C Template Library