I built a modern C multitask engine (GC + Arena) in a single header — looking for technical feedback #1560
ALightbolt4G
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey C Devs,⚠️ Modern Error Handling: Actual cmTry/cmCatch blocks because goto is not always the answer.
I’ve been spending my free time building a toolkit to make C development less of a manual memory nightmare. It's called CM Library (v4.2.1).
I’m tired of choosing between the safety of a Garbage Collector and the raw speed of Manual Management, so I combined both into one engine.
🔗 Repository: https://github.com/ALightbolt4G/CM---C-Multitask-Runtime-Engine
Why bother?
🚀 Dual-Memory System: Use an Arena Allocator for high-performance, short-lived tasks (O(1) allocation) and a Garbage Collector for long-lived complex objects.
🧩 OOP in C: Simple macros to handle classes, properties, and methods without the boilerplate.
🔒 Thread-Safe: Mutex-protected core, ready for multi-threaded applications.
📦 Zero Dependencies: Just one .h file. Drop it in and you're good to go.
I built this primarily for my own use cases (Game engines / CLI tools), but I’d love to get some feedback on the memory alignment and the GC’s mark-and-sweep implementation from this community.
Check it out, and if you find it useful, a star on GitHub would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions