A new design pattern for implementing capturing closures in C

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/C_Programming

Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • libcclosure

    Thread-safe closures as first-class functions for 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts