C Miscellaneous

Open-source C projects categorized as Miscellaneous

Top 15 C Miscellaneou Projects

  • Redis

    Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.

    Project mention: Handling Multiple requests with Redis and Bullmq | dev.to | 2024-04-13

    Redis

  • stb

    stb single-file public domain libraries for C/C++

    Project mention: Lessons learned about how to make a header-file library (2013) | news.ycombinator.com | 2024-02-28
  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • SDS

    Simple Dynamic Strings library for C

    Project mention: Strlcpy and strlcat added to glibc 2.38 | news.ycombinator.com | 2023-07-18

    Let me reframe this. What we're saying to do is stop using C string manipulation such as strcat, strcpy, etc. Particularly, I'm saying simply don't use C-style null terminated strings until you actually go to call a C ABI interface where it is necessary.

    The argument against this is that you might call something that already does this. Yes, sure, that IS true, but what this betrays is the fact that you have to deal with that regardless of whether or not you add additional error-prone C string manipulation code on top of having to worry about memory ownership, mutation, etc. when passing blobs of memory to "untrusted" APIs.

    It's not about passing the buck. Passing a blob of memory to an API that might do horrible things not defined by an API contract is not safe if you do strcat to construct the string or you clone it out of an std::string or you marshal it from Go or Rust. It's about not creating a bigger mess than you already have.

    Okay fine, but what if someone hates C++ and Rust and Go and Zig? No problem. There are a slew of options for C that can all handle safer, less error-prone string manipulation, including interoperability with null-terminated C strings. Like this one used in Redis:

    https://github.com/antirez/sds

    And on top of everything else, it's quite ergonomic, so it seems silly to not consider it.

    This entire line of thinking deeply reminds me of Technology Connection's video The LED Traffic Light and the Danger of "But Sometimes!".

    https://youtube.com/watch?v=GiYO1TObNz8

    I think hypothetically you can construct some scenarios where not using C strings for string manipulation requires more care, but justifying error prone C string manipulation with "well, I might call something that might do something unreasonable" as if that isn't still your problem regardless of how you get there makes zero sense to me.

    And besides, these hypothetical incorrect APIs would crash horrifically on the DS9K anyways.

  • Klib

    A standalone and lightweight C library

    Project mention: Factor is faster than Zig | news.ycombinator.com | 2023-11-10

    In my example the table stores the hash codes themselves instead of the keys (because the hash function is invertible)

    Oh, I see, right. If determining the home bucket is trivial, then the back-shifting method is great. The issue is just that it’s not as much of a general-purpose solution as it may initially seem.

    “With a different algorithm (Robin Hood or bidirectional linear probing), the load factor can be kept well over 90% with good performance, as the benchmarks in the same repo demonstrate.”

    I’ve seen the 90% claim made several times in literature on Robin Hood hash tables. In my experience, the claim is a bit exaggerated, although I suppose it depends on what our idea of “good performance” is. See these benchmarks, which again go up to a maximum load factor of 0.95 (Although boost and Absl forcibly grow/rehash at 0.85-0.9):

    https://strong-starlight-4ea0ed.netlify.app/

    Tsl, Martinus, and CC are all Robin Hood tables (https://github.com/Tessil/robin-map, https://github.com/martinus/robin-hood-hashing, and https://github.com/JacksonAllan/CC, respectively). Absl and Boost are the well-known SIMD-based hash tables. Khash (https://github.com/attractivechaos/klib/blob/master/khash.h) is, I think, an ordinary open-addressing table using quadratic probing. Fastmap is a new, yet-to-be-published design that is fundamentally similar to bytell (https://www.youtube.com/watch?v=M2fKMP47slQ) but also incorporates some aspects of the aforementioned SIMD maps (it caches a 4-bit fragment of the hash code to avoid most key comparisons).

    As you can see, all the Robin Hood maps spike upwards dramatically as the load factor gets high, becoming as much as 5-6 times slower at 0.95 vs 0.5 in one of the benchmarks (uint64_t key, 256-bit struct value: Total time to erase 1000 existing elements with N elements in map). Only the SIMD maps (with Boost being the better performer) and Fastmap appear mostly immune to load factor in all benchmarks, although the SIMD maps do - I believe - use tombstones for deletion.

    I’ve only read briefly about bi-directional linear probing – never experimented with it.

  • ZBar

    Clone of the mercurial repository http://zbar.hg.sourceforge.net:8000/hgroot/zbar/zbar

    Project mention: What route should I go for moving long links you find on the phone to a PC? | /r/PrivacyGuides | 2023-05-17
  • AtomVM

    Tiny Erlang VM

    Project mention: Firefly – A new compiler and runtime for BEAM languages | news.ycombinator.com | 2023-04-18

    Check out the existing AtomVM if you've not for that use case.

    https://github.com/atomvm/AtomVM

  • libssh2

    the SSH library

    Project mention: SSH Port Forwarding in Rust | /r/learnrust | 2023-06-07

    You'll likely need to make use of the `ssh` or `ssh2` crate, depending on whether you want to use `libssh` or `libssh2` (two different libraries) for the SSH protocol. Then, if you choose `libssh`, you'll need to port https://github.com/codinn/libssh/blob/master/examples/sshnetcat.c and if you choose `libssh` you'll need to port https://github.com/libssh2/libssh2/blob/master/example/tcpip-forward.c to Rust.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • SLRE

    Super Light Regexp engine for C/C++

  • Better String

    The Better String Library

  • libcpuid

    a small C library for x86 CPU detection and feature extraction

  • semver.c

    Semantic version in ANSI C

  • ub-canaries

    collection of C/C++ programs that try to get compilers to exploit undefined behavior

  • libnih

    NIH Utility Library

  • libevil

    The Evil License Manager

  • ptldd

    Tracks dependencies for Windows EXE and DLL (forked and modified from LRN/ntldd)

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-04-13.

C Miscellaneous related posts

Index

What are some of the best open-source Miscellaneou projects in C? This list will help you:

Project Stars
1 Redis 64,705
2 stb 25,008
3 SDS 4,773
4 Klib 4,010
5 ZBar 2,460
6 AtomVM 1,390
7 libssh2 1,252
8 SLRE 514
9 Better String 471
10 libcpuid 417
11 semver.c 184
12 ub-canaries 169
13 libnih 92
14 libevil 29
15 ptldd 2
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com