barrust / set Goto Github PK
View Code? Open in Web Editor NEWSimple Set implementation in C
License: MIT License
Simple Set implementation in C
License: MIT License
Adding thread safety when using this library with openmp would be great
Add a full suite of unittests using [minunit]https://github.com/barrust/c-utils/blob/master/src/minunit.h) from the c-utils library.
Bonus: add code coverage and continuous integration
Look into replacing strncpy with memcpy since all lengths are predefined and are known to not overlap.
Only use of booleans at this point is the while(true) clause. We can replace with a more generic call to reduce a dependency.
Make it usable with C++
Due to this being used with other, similar, libraries the HashFunction type should be made unique.
change the make file to use better parameterization
The test suite is pretty robust, but should be easier to find errors if/when they occur.
Following on from #7 ... the idea to have a set of ints, doubles or any other type would certainly be interesting.
Do you have any idea how to achieve that? I'm looking at this article for some ideas:
https://levelup.gitconnected.com/using-templates-and-generics-in-c-968da223154d
and wonder if the technique could be applied to the the C code.
Code that has char *key
would need adaptation, which occurs in a few places.
Hi, sir, I wonder is there any way to iterate the Simpleset?
It should be faster to cast instead of multiplying by 1.0 to convert to a float
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.