libcclosure
Thread-safe closures as first-class functions for C (by Foxbud)
cclosures
Simple closures for C (by naasking)
libcclosure | cclosures | |
---|---|---|
5 | 2 | |
13 | 3 | |
- | - | |
5.3 | 0.0 | |
8 months ago | over 4 years ago | |
C | C | |
Apache License 2.0 | GNU Lesser General Public License v3.0 only |
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.
libcclosure
Posts with mentions or reviews of libcclosure.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-06.
-
Best alternative to closure in C?
That said, I wrote a closure library for C that generates thunks at runtime to implicitly pass closures their environments. This is more meant to make hooking into software easier when doing reverse engineering, but it could theoretical be used for general purpose development.
-
What are you working on?
Right now I'm tweaking a small closure library I wrote a while ago to help out with an RE project. The idea is to have something sort of like C++'s std::bind, but where the argument is actually properly bound using a thunk generated at runtime rather than just hiding stuff away with syntactic sugar.
-
A new design pattern for implementing capturing closures in C
Here's my GCC/Clang-locked, ultra-non-portable take on implementing closures that dynamically and implicitly pass a bound context to the closure using runtime thunk generation. The disadvantages are numerous, but if you only work on fairly modern GNU/Linux systems, it's quite a QoL improvement.
- First Class, Thread-Safe Closures for C (Apache 2.0)
cclosures
Posts with mentions or reviews of cclosures.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-25.
-
First Class, Thread-Safe Closures for C (Apache 2.0)
Closures in C typically have some limitations, like requiring that all values fit into a universal type of known size, or they require some platform-specific code generation of some kind to handle dispatching according to C's ABI.
What are some alternatives?
When comparing libcclosure and cclosures you can also consider the following projects:
pubsub-c - Pub/Sub library for C
FreeRDP - FreeRDP is a free remote desktop protocol library and clients
synchronized-queue - A thread synchonized queue made for PThreads
adventure-rpg - Game in development for the Sega Genesis utilizing SGDK. Project started as a text based adventure RPG and has now evolved into a sprite based game. More details to come.