2 ms·
This C++ code is wildly modern. Very impressive. Using only the GitHub web interface, I could not find the definition for Gc::Ref. Where can I find it?
by throwaway2037 1y ago
This C++ code is wildly modern. Very impressive. Using only the GitHub web interface, I could not find the definition for Gc::Ref. Where can I find it?
- Lockal 1y agoProbably this - https://github.com/skift-org/karm/blob/main/src/libs/karm-gc/ptr.h https://github.com/skift-org/karm/blob/main/src/libs/karm-gc... And this is not a garbage collector in the traditional sense, more like arena with smart pointers.
- monax 1y agoIt's just a placeholder implementation, we will have a proper GC when we get to it
- lodovic 1y agoI had the same reading the source code - it's an interesting mix of traditional c++, while some of the projects use the latest c++20 features with modules. The GC::Ref seems to come form the karm-gc library. (according to copilot)